molssiexample.math.find_pi

molssiexample.math.find_pi(maxitr=1e+20)[source]

This function computes \(\pi\) heuristically.

Parameters:maxitr (int) – Number of random coordinates used in calculation.
Returns:pi_value – The computed value of pi according to the number of points requested.
Return type:float