Changes for version 0.16 - 2016-12-11
- ADDED
- Added two methods for computing the nth-Harmonic number:
- harmfrac(n)
- harmreal(n)
- Added two methods for reseeding the pseudorandom number generator:
- seed(n)
- iseed(n)
- Added two methods for computing the nth-Harmonic number:
- IMPROVEMENTS
- Extended the method digits() to accept an optional base.
- digits(4095, 16) #=> ('f', 'f', 'f')
- Extended the method digits() to accept an optional base.
- BUG FIXES
- Using threads in some parts of the program, will no longer cause a segmentation fault.
- However, Math::BigNum is not thread-safe, therefore using Math::BigNum objects inside threads, still causes a segmentation fault.
Modules
Arbitrary size precision for integers, rationals and floating-point numbers.
Represents the +/-Infinity value.
Represents the Not-a-Number value.
Examples
- examples/agm_pi.pl
- examples/arithmetic_coding.pl
- examples/bernoulli_numbers_recursive.pl
- examples/binary_arithmetic_coding.pl
- examples/binradix_arithmetic_coding.pl
- examples/closed_form_fib.pl
- examples/coin_change.pl
- examples/computing_pi.pl
- examples/faulhaber_s_formula.pl
- examples/fibonacci_validation.pl
- examples/inverse_of_factorial.pl
- examples/is_power.pl
- examples/miller_rabin_primality_test.pl
- examples/pi_machin.pl
- examples/power_pairs.pl
- examples/prime_count_approx.pl
- examples/rsa_algorithm.pl
- examples/tac-compressor.pl
- examples/zeta_2n.pl