Module utils

Module utils 

Source
Expand description

Utility functions for arbitrary precision arithmetic

Functions§

binomial
Compute binomial coefficient using arbitrary precision
e
Compute e to specified precision
factorial
Compute factorial using arbitrary precision
golden_ratio
Compute golden ratio to specified precision
is_probably_prime
Check if a large integer is probably prime
ln2
Compute ln(2) to specified precision
pi
Compute π to specified precision
sqrt2
Compute sqrt(2) to specified precision