opam install merlin ocp-indent dune utop-
Go to the Archimedes folder.
-
Enter 'dune utop lib' which should bring you into the utop interface:
dune utop lib- Once in utop, open the set of tools you need:
open Lib;;- For a naive monte-carlo approximation to the Archimedes constant(aka pi) with n samples:
Archimedes.mc_pi 10;;- For a Newton-Euler approximation to the Archimedes' constant:
Archimedes.newton_euler 20;;- Finally, for Ramanujan's approximation to the Archimedes' constant:
Archimedes.ramanujan 10;;