Log message:
Update to 1.999825
Upstream changes:
1.999825 2021-09-28
* Make Math::BigInt accept integers regardless of whether they are written as
decimal, binary, octal, or hexadecimal integers or decimal, binary, octal, or
hexadecimal floating point number.
* When numeric constants are overloaded (with the ":constant" option) in
Math::BigInt, every numeric constant that represent an integer is converted
to an object regardless of how it is written. All finite non-integers are
converted to a NaN.
* When numeric constants are overloaded (with the ":constant" option) in
Math::BigFloat, every numeric constant is converted to an object regardless
of how it is written.
* Add method from_dec() (cf. from_bin(), from_oct(), and from_hex()). It is
like new() except that it does not accept anything but a string representing a
finite decimal number.
1.999824 2021-09-20
* Don't allow mixing math libraries. Use the first backend math library that is
successfully loaded, and ignore any further attempts at loading a different
backend library. This is a solution to the re-occurring problem of using
objects using different math libraries.
* Add missing documentation.
* Miscellaneous minor improvements.
1.999823 2021-07-12
* Improve the handling of the backend libraries. Provide more useful warnings
and error messages. Update the documentation.
1.999822 2021-07-09
* Make the from_hex(), from_oct(), and from_bin() methods consistent with
CORE::oct(), which does not require a leading "0" before the letter \
("x",
"o", or "b").
* Make the from_oct() and new() methods accept octal numbers with prefix
"0o", "0O", "o" (lowercase letter o), and \
"O" (capital letter O).
* Make the from_bin() and new() methods accept binary numbers with
prefix "0b", "0B", "b", and "B".
* Make the from_hex() and new() methods accept hexadecimal numbers with
prefix "0x", "0X", "x", and "X".
* Update test files to match with the above.
1.999821 2021-07-06
* Make new() and from_hex() accept the "0X" prefix, not just the \
"0x" prefix,
but not accept just "X" or "x". Now, "0XFF" \
returns 255, not NaN.
* Make new() and from_bin() accept the "0B" prefix, not just the \
"0b" prefix, but
not accept just "B" or "b". Now, "0B1111" \
returns 255, not NaN.
* Make new() and from_oct() accept the "0o" and "0O" \
prefixes, but not accept
just "O" (capital letter O) or "o" (lowercase letter o). \
Now, "0o377" and
"0O377" return 255, not NaN. Also intepret floating point numbers with a
leading zero and a binary exponent as an octal number, so that "01.4p0"
returns 1.5, not NaN. There is still no ambiguety, since decimal floating
point numbers use "e" or "E" before the exponent, and \
binary and hexadecimal
floating point numbers use a "0b"/"0B" or \
"0x"/"0x" prefix, respectively.
1.999820 2021-07-06
* Fix bug and improve error messages in Math::BigInt::import().
1.999819 2021-07-02
* Add method btfac() (triple factorial) and bmfac() (multi-factorial),
including tests and documentation.
* Add missing and correct erroneous documentation for bfac() (factorial)
and bdfac() (double factorial). Also correct handling of special cases
and add tests for these cases.
* Fix error in bsin() and bcos() causing them to hang indefinitely if the
invocand is +/-inf.
* Make it possible for the end user to specify the base length used internally
in Math::BigInt::Calc.
|
Log message:
p5-Math-BigInt: update to 1.999813.
1.999813 2018-04-18
* Fix CPAN RT #125108. Remove test files try.pl, t/author-bpi-big-mbf.t, and
t/release-unused-vars.t, which were included in the 1.999812 distribution by
accident.
1.999812 2018-04-17
* Fix CPAN RT #120351 regarding bpow(). Add test.
* Fix CPAN RT #120717 regarding tests now that '.' is not in @INC by default.
* Fix CPAN RT #122756 regarding testing for 64 bit integer support.
* Fix case when both accuracy and precision are set, resulting in a NaN. This
closes CPAN RT #124790.
* Fix typo in one of the change log entries for version 1.999811.
* Clearify documentation of rounding modes.
* Update the documentation of configuration parameters.
* Fix rounding and accuracy in bpi(). Extra digits in intermediate computation
were not used, causing the last digits to be inaccurate. In addition, the
rounding was incorrect in some cases.
* Use config() as a method, rather than a function. Also use config("xyz")
rather than config()->{xyz}.
* Correct more of the problems with rounding in the constructors. If rounding
arguments are given as arguments to the constructor, the constructor should
assign those values to the instance. If no rounding arguments are given, and
the constructor is called as a class method, the class rounding variables
should be assigned to the instance. Added test file
t/author-constructors-a-p-r.t to replace t/author-constructors-a-p.t, but
lots of tests are failing and (for now) commented out.
* Remove statements used for debugging.
* Fix typos.
* Cleaner log/exp-related code in Math::BigFloat.
* Remove unused variables.
* Add test file t/release-portability.t.
* Add test file t/release-whitespaces.t.
* Convert test file t/02pod.t to t/release-pod.t and t/03podcov.t to
t/release-pod-coverage.t.
* Reformat CHANGES to match the specification in CPAN::Changes::Spec and
CPAN::Meta::Spec.
* Expand tabs to spaces and clean up whitepace.
* Include tests that were previously commented out.
* Use $LIB as the variable name for backend math library.
* Import "carp" and "croak" from the Carp module.
* Math::BigInt isa Exporter, so Math::BigInt should require Exporter.
Math::BigFloat has Math::BigInt in @ISA, so it doesn't need to require
Exporter.
* Don't load Test::More when it isn't really needed. This speeds up processing
of author test files when they are skipped.
|