Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.
/ mcpi Public archive

Package mcpi provides a simple interface to plot MC-Pi scatter samples.

License

Notifications You must be signed in to change notification settings

master-pfa-info/mcpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mcpi

GoDoc

mcpi provides a simple interface to draw (x,y) points for a Monte-Carlo approximation method to compute Pi.

mcpi starts a web server that will listen for plot requests.

Installation

Installation is done with go get:

$> go get github.com/master-pfa-info/mcpi

Example

func main() {
	mcpi.Wait()
	mcpi.Plot(0,0)
	mcpi.Plot(0.5, 0.5)
	mcpi.Quit()
}
$> go run ./main.go
2017/09/19 17:27:44 listening on 127.0.0.1:46191

and then direct your favorite web-browser to the indicated URL.

Sample

mc-pi

About

Package mcpi provides a simple interface to plot MC-Pi scatter samples.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages