pi_calc/1 is an Erlang function exported by "age_math" module. Calculates the PI number. It takes measurable computation time to calculate PI with particular precision. Take into consideration that the precision of the calculated value is approximated - less precision, faster calculation. This function is more or less for lab purpose. Practically it is much faster to invoke directly pi/0. |
|
|