Skip to content

This example uses channels in Golang to parallel compute the area under the curve ( integral ) using chunks of rectangles. n indicates # of rectangles and np indicates number of chunks, the parallelism.

Notifications You must be signed in to change notification settings

raj-chak/golang_parallel_compute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

You can download, build, and run the programs with the following commands:

$ export GOPATH=$HOME/yourdir # choose workspace directory
// change to above directory
$ go get github.com/raj-chak/golang_parallel_compute        # fetch
$ go build github.com/raj-chak/golang_parallel_compute/parallel  # build
$ ./parallel
3.141592654423124

About

This example uses channels in Golang to parallel compute the area under the curve ( integral ) using chunks of rectangles. n indicates # of rectangles and np indicates number of chunks, the parallelism.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages