Some arithmetical bcmath programs
- Simple arithmetical calculations;
- Calculating the nth power of a quadratic irrational;
- Calculating the mth root of a rational number;
- Simple modular arithmetical calculations;
- Shanks baby-steps/giant-steps algorithm for finding the discrete log;
- Prime-power factorization of factorials;
- Prime-power factorization of binomial coefficients;
- Finding the base b expansion of a non-negative integer;
- Finding the base b expansion of a positive rational;
- Calculating the rational with given base b digits;
- Calculating the gcd of n positive integers;
- Calculating the lcm of n positive integers;
- Performing John Campbell's lcm factor refinement algorithm.
Last modified 9th February 2007
Return to main page