Changes for version 0.18 - 2017-11-22
- Extended the `digits()` method to support arbitrary large bases.
- Additionally, it returns the digits in reverse order, matching the output of the `.digits()` method from Ruby.
- Fixed a minor issue in `rat(str)` to return NaN when `str` cannot be parsed as a fraction.
- Fixed `polygonal_root(n, NaN)` to return `NaN` instead of `n`.
- Minor optimizations for `x <=> 0`, `x == 0` and `x != 0`, when `0` is a native integer.
Modules
Arbitrary size precision for integers, rationals, floating-points and complex numbers.
Examples
- examples/agm_pi.pl
- examples/arithmetic_coding.pl
- examples/bernoulli_numbers_from_primes.pl
- examples/bernoulli_numbers_recursive.pl
- examples/bernoulli_seidel.pl
- examples/binary_arithmetic_coding.pl
- examples/binradix_arithmetic_coding.pl
- examples/computing_pi.pl
- examples/faulhaber_s_formula.pl
- examples/fibonacci.pl
- examples/fibonacci_validation.pl
- examples/halley_s_method.pl
- examples/inverse_of_factorial.pl
- examples/is_power.pl
- examples/krzysztof_reformulated_zeta_function.pl
- examples/lambert_W.pl
- examples/miller_rabin_primality_test.pl
- examples/newton_s_method.pl
- examples/pi_machin.pl
- examples/power_pairs.pl
- examples/rsa_algorithm.pl
- examples/solve_pell_equation.pl
- examples/tac-compressor.pl
- examples/tribonacci.pl
- examples/zeta_2n.pl
- examples/zeta_2n_fast.pl