sfragis / akka-pi-tutorial

A tutorial that shows how to use Akka to calculate PI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Akka PI Tutorial

A tutorial that shows how to use Akka to calculate PI.

PI can be approximated by generating a uniformly distributed number of x,y coordinates between 0 and 1 and then calculating:

equation

Requirements

Uncompress the toools somewhere.

Make sure these paths are in your PATH environment variable:

  • /path/to/jdk/bin
  • /path/to/sbt/bin

Build

sbt compile

Run

sbt "run 100 2000"

Test

sbt test

About

A tutorial that shows how to use Akka to calculate PI

License:MIT License


Languages

Language:Scala 100.0%