summaryrefslogtreecommitdiff
path: root/cpan/Math-BigInt-FastCalc
diff options
context:
space:
mode:
authorRichard Leach <richardleach@users.noreply.github.com>2021-11-19 21:37:48 +0000
committerRichard Leach <richardleach@users.noreply.github.com>2021-11-19 21:37:48 +0000
commit6853e8af3bcdae27c05a50e71c8ede1ab2b42822 (patch)
tree77213230b2a506aeab7d2f43f56eb5856933f5a3 /cpan/Math-BigInt-FastCalc
parent4c4a89ed9c56cf3cb024f4ed67e9be031b5960cf (diff)
downloadperl-6853e8af3bcdae27c05a50e71c8ede1ab2b42822.tar.gz
Update bignum, Math::BigInt, Math::BigInt::FastCalc, and Math::BigRat
bignum ====== 0.63 2021-10-08 * This version instroduces no changes to the Perl modules, only the tests. * Remove tests that don't work on old Perls and that were actually testing Math::Big(Int|Float|Rat) more than big(int|num|rat). * Skip tests that don't work on older versions of Perl. * Remove Perl v5.10.0 as dependency. This distribution is compatible with Perls back to at least v5.6.1, although some functionality (e.g., nesting the pragmas) requires more recent versions of Perl. 0.62 2021-10-03 * Add support for multiple options in import(), so that one can use, e.g., use bignum accuracy => 20, lib => "GMP"; * Make sure the bigrat pragma always returns Math::BigRat objects. * Make the "trace" option work as indended, or at least according to what I believe is the intention. * Improve documentation. Fix typos, improve wording, add more examples etc. 0.61 2021-10-01 * Improve documentation related to floating point literals. * Skip tests that fail due to Perl's broken handling of floating point literals before v5.32.0. 0.60 2021-09-28 * Separate the bigint, bignum, and bigrat pragmas. - The bigint pragma now converts every numeric constant that represents an integer to a Math::BigInt object. Non-integers are converted to Math::BigInt NaNs. With the previous behaviour, only some numeric constant integers were converted to a Math::BigInt. - The bignum pragma now converts every numeric constant to a Math::BigFloat object. - The bigrat pragma now converts every numeric constant to a Math::BigRat pragma. The pragmas no longer activate upgrading and downgrading. The upgrading and downgrading must now be activated explicitly. The rationale behind deactivating it by default is that can cause infinite looping where objects bounce back and forth between different classes. Explicitly requesting a specific class doesn't always work either, because the object might be automatically upgraded or downgraded to a different class. Only one pragma can be used at a time in a given scope. Enabling one pragma disables the others in the same scope. * Implementat working version of "no bigint", "no bignum", and "no bigrat". Previously, the upgrading and downgrading activated by, e.g., "use bigint" was not deactivated by "no bigint". * Sync behaviour with the Math-BigInt distribution. Math::BigInt ============ 1.999827 2021-10-03 * Improve error message for missing library argument. * Skip tests that don't work on older Perls. Also skip tests that compare floating point numbers. 1.999826 2021-10-01 * Improve documentation related to floating point literals. * Skip tests that fail due to Perl's broken handling of floating point literals before v5.32.0. 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. Math::BigInt::FastCalc ====================== 0.5012 2021-09-28 * Sync test files with Math-BigInt. 0.5011 2021-09-20 * Sync test files with Math-BigInt. * Add missing documentation. * Make the test files only print to the standard error when there is an actual error. * Miscellaneous changes and updates to author and release test files. Math::BigRat ============ 0.2620 2021-10-03 * Skip tests that don't work on older Perls. Also skip tests that compare floating point numbers. 0.2619 2021-10-01 * Correct the handling of Inf and NaN in numify(). * Improve constant overloading. When numeric constants are overloaded (with the ":constant" option) in Math::BigRat, every numeric constant is converted to an object regardless of how it is written. 0.2618 2021-09-28 * Add new method binv() for the inverse. * Add new method dparts(), which returns the integer part and fraction part of a number. For example, 9/4 is split into 2 and 1/4. This method is equivalent to the Math::BigInt and Math::BigFloat methods with the same name. * Improve blog(). Handle cases $x->blog($b) where the numerator of $x and/or $b is 1 as special. * Sync tests with Math-BigInt.
Diffstat (limited to 'cpan/Math-BigInt-FastCalc')
-rw-r--r--cpan/Math-BigInt-FastCalc/lib/Math/BigInt/FastCalc.pm4
-rw-r--r--cpan/Math-BigInt-FastCalc/t/bigintfc.t4
-rw-r--r--cpan/Math-BigInt-FastCalc/t/biglog.t2
-rw-r--r--cpan/Math-BigInt-FastCalc/t/bigroot.t2
-rw-r--r--cpan/Math-BigInt-FastCalc/t/bootstrap.t2
-rw-r--r--cpan/Math-BigInt-FastCalc/t/leak.t2
-rw-r--r--cpan/Math-BigInt-FastCalc/t/mbi_rand.t2
7 files changed, 9 insertions, 9 deletions
diff --git a/cpan/Math-BigInt-FastCalc/lib/Math/BigInt/FastCalc.pm b/cpan/Math-BigInt-FastCalc/lib/Math/BigInt/FastCalc.pm
index 62dab0465d..f20c8eb1d8 100644
--- a/cpan/Math-BigInt-FastCalc/lib/Math/BigInt/FastCalc.pm
+++ b/cpan/Math-BigInt-FastCalc/lib/Math/BigInt/FastCalc.pm
@@ -12,7 +12,7 @@ BEGIN {
our @ISA = qw< Math::BigInt::Calc >;
}
-our $VERSION = '0.5010';
+our $VERSION = '0.5012';
my $MAX_EXP_F; # the maximum possible base 10 exponent with "no integer"
my $MAX_EXP_I; # the maximum possible base 10 exponent with "use integer"
@@ -200,7 +200,7 @@ the same terms as Perl itself.
Original math code by Mark Biggar, rewritten by Tels L<http://bloodgate.com/>
in late 2000.
-Separated from BigInt and shaped API with the help of John Peacock.
+Separated from Math::BigInt and shaped API with the help of John Peacock.
Fixed, sped-up and enhanced by Tels http://bloodgate.com 2001-2003.
Further streamlining (api_version 1 etc.) by Tels 2004-2007.
diff --git a/cpan/Math-BigInt-FastCalc/t/bigintfc.t b/cpan/Math-BigInt-FastCalc/t/bigintfc.t
index f8a39fc7ba..a7f27729be 100644
--- a/cpan/Math-BigInt-FastCalc/t/bigintfc.t
+++ b/cpan/Math-BigInt-FastCalc/t/bigintfc.t
@@ -1,4 +1,4 @@
-#!perl
+# -*- mode: perl; -*-
# Test Math::BigInt::FastCalc
@@ -14,7 +14,7 @@ my ($BASE_LEN, $BASE, $AND_BITS, $XOR_BITS, $OR_BITS,
$MAX_BITS, $MAX_EXP_F, $MAX_EXP_I, $USE_INT)
= Math::BigInt::Calc -> _base_len();
-diag(<<"EOF");
+note(<<"EOF");
BASE_LEN = $BASE_LEN
BASE = $BASE
diff --git a/cpan/Math-BigInt-FastCalc/t/biglog.t b/cpan/Math-BigInt-FastCalc/t/biglog.t
index 7befc87c3d..18f959b39c 100644
--- a/cpan/Math-BigInt-FastCalc/t/biglog.t
+++ b/cpan/Math-BigInt-FastCalc/t/biglog.t
@@ -1,4 +1,4 @@
-#!perl
+# -*- mode: perl; -*-
# Test blog function (and bpow, since it uses blog), as well as bexp().
diff --git a/cpan/Math-BigInt-FastCalc/t/bigroot.t b/cpan/Math-BigInt-FastCalc/t/bigroot.t
index 076f02e7cb..2d8c8446e1 100644
--- a/cpan/Math-BigInt-FastCalc/t/bigroot.t
+++ b/cpan/Math-BigInt-FastCalc/t/bigroot.t
@@ -1,4 +1,4 @@
-#!perl
+# -*- mode: perl; -*-
# Test broot function (and bsqrt() function, since it is used by broot()).
diff --git a/cpan/Math-BigInt-FastCalc/t/bootstrap.t b/cpan/Math-BigInt-FastCalc/t/bootstrap.t
index 6f94bebc88..153dc92b91 100644
--- a/cpan/Math-BigInt-FastCalc/t/bootstrap.t
+++ b/cpan/Math-BigInt-FastCalc/t/bootstrap.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+# -*- mode: perl; -*-
use Test::More tests => 1;
diff --git a/cpan/Math-BigInt-FastCalc/t/leak.t b/cpan/Math-BigInt-FastCalc/t/leak.t
index 6d0f7464a5..58935ba759 100644
--- a/cpan/Math-BigInt-FastCalc/t/leak.t
+++ b/cpan/Math-BigInt-FastCalc/t/leak.t
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+# -*- mode: perl; -*-
# Test for memory leaks.
diff --git a/cpan/Math-BigInt-FastCalc/t/mbi_rand.t b/cpan/Math-BigInt-FastCalc/t/mbi_rand.t
index 1186e2e144..1b4599e45b 100644
--- a/cpan/Math-BigInt-FastCalc/t/mbi_rand.t
+++ b/cpan/Math-BigInt-FastCalc/t/mbi_rand.t
@@ -1,4 +1,4 @@
-#!perl
+# -*- mode: perl; -*-
use strict;
use warnings;