pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/p5-Math-BigInt



Module Name:    pkgsrc
Committed By:   wen
Date:           Mon May 27 08:47:47 UTC 2024

Modified Files:
        pkgsrc/math/p5-Math-BigInt: Makefile distinfo

Log Message:
Update to 2.003002

Upstream changes:
2.003002 2024-01-05

 * Improved interaction between Math::BigInt and the backend libraries.

 * Much faster versions of _ilog2() and _clog2() implemented in the
   Math::BigInt::Calc backend library. This should speed up bilog2() and
   bclog2() in Math::BigInt when "Calc" is used as the backend liberary.

2.003001 2023-12-26

 * Add configuration methods trap_inf() and trap_nan(). Previously it was only
   possible to modify these properties by using the config() method.

 * Fix CPAN RT #150796 so that config() no longer modifies the input when it is
   a hash ref.

 * Fix CPAN RT #150797 so that both accuracy and precision can be set
   simultaneously with config().

 * Add the following methods to Math::BigInt

   - bilog2()   base 2 logarithm rounded downwards, i.e., int(log2(x))
   - bilog10()  base 10 logarithm rounded downwards, i.e., int(log10(x))
   - bclog2()   base 2 logarithm rounded upwards, i.e., ceil(log2(x))
   - bclog10()  base 10 logarithm rounded upwards, i.e., ceil(log10(x))

 * Add the following backend library methods to Math::BigInt::Lib. These
   methods do the core computations for the corresponding methods in
   Math::BigInt (see above).

   - _ilog2()   base 2 logarithm rounded downwards
   - _ilog10()  base 10 logarithm rounded downwards
   - _clog2()   base 2 logarithm rounded upwards
   - _clog10()  base 10 logarithm rounded upwards

2.002001 2023-12-09

 * Fix CPAN RT #150523

2.002000 2023-12-02

 * Fix bug in Math::BigFloat method bsin(). It can now handle any argument to
   any precision. Also improve downgrading. This fixes CPAN RT #150590 and the
   bsin() part of CPAN RT #107604.

 * Fix bug in Math::BigFloat method bexp(). Specifying precision (rather than
   accuracy) used to give a NaN. Also improve downgrading.

 * Improve upgrading in Math::BigInt methods bsin() and bcos(). They now
   upgrade only when necessary.

2.001001 2023-11-21

 * Fix CPAN RT #150469

2.001000 2023-11-13

 * Fix rounding bug in bsqrt() in Math::BigInt. Also make bsqrt() upgrade only
   when necessary.

 * Simplify and speed up bsqrt() (for computing the square root) in
   Math::BigFloat. The computation time now mainly depends on the desired
   accuracy, not the number of digits in the significand.

 * Add support for using "div_scale" as import parameter, like this

       use Math::BigFloat div_scale => 80;

 * Add better argument checking when the "div_scale" value is set by the
   user.

2.000000 2023-10-29

 * Merge the Math-BigRat distribution into the Math-BigInt distribution. This
   merge eliminates the problems that users have experienced when incompatible
   versions of the two distributions have been installed. This fixes CPAN RT
   #143228.

 * Add method from_dec() to Math::BigRat to make Math::BigRat more consistent
   with Math::BigInt and Math::BigFloat.

* To be consistent with Math::BigInt and Math::BigFloat, make it possible to
  use "require" with Math::BigRat, e.g.,

       require Math::BigRat;
       $x = Math::BigRat -> bone();

 * Fix cases where "require" doesn't work for Math::BigInt and Math::BigFloat,
   and add tests to verify that "require" works for Math::BigInt, Math::BigRat,
   and Math::BigFloat.

 * Add methods bblsft() and bbrsft() to Math::BigRat to make Math::BigRat
   consistent with Math::BigInt and Math::BigFloat. These methods do bitwise
   left and right shift, respectively.

 * Fix bug in to_oct() and to_bin() in Math::BigFloat. They called to_hex()
   when upgrading, but should have called to_oct() and to_bin(), respectively.

 * Add to_hex(), to_oct(), to_bin() to Math::BigRat.

 * Add new method binv() to Math::BigInt, Math::BigFloat, and Math::BigRat.

 * Improve as_float() and as_rat().

 * POD updates.

1.999842 2023-09-27

 * Fix a bug causing Math::BigInt and Math::BigFloat to be caught in an endless
   recursion. The bug was introduced when trying to fix
   https://github.com/pjacklam/p5-Math-BigInt/issues/8

 * Allow div_scale to be 0. It is not documented what div_scale <= 0 means, but
   there are modules that set div_scale to 0 (e.g., Astro::Units) and fail
   their tests if this is not supported.

1.999841 2023-09-21

 * Remove development files that were accidentally included in the
   distribution.

1.999840 2023-09-18

 * Add methods bblsft() and bbrsft(), which do bitwise left and right shift,
   respectively. The binary operators for bitwise left and right shift, "<<"
   and ">>", now call the methods bblsft() and bbrsft(), respectively.

   While this behaviour is consistent with how "<<" and ">>" work on floating
   point numbers in core Perl, it changes how "<<" and ">>" worked on
   Math::BigFloat objects. This is a corner case, but any code currently using
   "<<" and ">>" on Math::BigFloat objects might need to be modified as follows

       $x >>= $y    should be changed to    $x -> brsft($y)
       $x <<= $y    should be changed to    $x -> blsft($y)
       $x >>  $y    should be changed to    $x -> copy() -> brsft($y)
       $x <<  $y    should be changed to    $x -> copy() -> blsft($y)

 * Improve blsft() and brsft(). They now support negative shift values, an
   arbitrarily large base, and have better handling of cases involving NaN.

1.999839 2023-07-14

 * Update documentation. Remove/update obsolete URLs.

 * Fix CPAN RT #148953 regarding loss of precision when using "log" in
   "bignum". The issue was related to broken upgrading and downgrading in
   Math::BigFloat.

1.999838 2023-03-30

 * Fix CPAN RT #146411 regarding infinite recursion in bitwise operations. This
   happened when arguments were upgraded and downgraded and upgraded again ad
   infinitum. Add tests to verify the fix.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 pkgsrc/math/p5-Math-BigInt/Makefile
cvs rdiff -u -r1.15 -r1.16 pkgsrc/math/p5-Math-BigInt/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/p5-Math-BigInt/Makefile
diff -u pkgsrc/math/p5-Math-BigInt/Makefile:1.22 pkgsrc/math/p5-Math-BigInt/Makefile:1.23
--- pkgsrc/math/p5-Math-BigInt/Makefile:1.22    Thu Jul  6 09:40:52 2023
+++ pkgsrc/math/p5-Math-BigInt/Makefile Mon May 27 08:47:47 2024
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.22 2023/07/06 09:40:52 wiz Exp $
+# $NetBSD: Makefile,v 1.23 2024/05/27 08:47:47 wen Exp $
 
-DISTNAME=              Math-BigInt-1.999837
+DISTNAME=              Math-BigInt-2.003002
 PKGNAME=               p5-${DISTNAME}
-PKGREVISION=           1
 CATEGORIES=            math perl5
 MASTER_SITES=          ${MASTER_SITE_PERL_CPAN:=Math/}
 

Index: pkgsrc/math/p5-Math-BigInt/distinfo
diff -u pkgsrc/math/p5-Math-BigInt/distinfo:1.15 pkgsrc/math/p5-Math-BigInt/distinfo:1.16
--- pkgsrc/math/p5-Math-BigInt/distinfo:1.15    Tue Aug  2 05:35:57 2022
+++ pkgsrc/math/p5-Math-BigInt/distinfo Mon May 27 08:47:47 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.15 2022/08/02 05:35:57 ast Exp $
+$NetBSD: distinfo,v 1.16 2024/05/27 08:47:47 wen Exp $
 
-BLAKE2s (Math-BigInt-1.999837.tar.gz) = f26f54b7166aecd58a6a19c321b4bc2ca20bd0baefba812091494c945db6e14e
-SHA512 (Math-BigInt-1.999837.tar.gz) = b548c94ab94fd835ec10924702208ddcf9c9fea401c852937f84421727b7bcb7fc02ffa38b677a8b472ba8039eec2e94f08ffc6199c0e59ff87654d7719610d1
-Size (Math-BigInt-1.999837.tar.gz) = 2869976 bytes
+BLAKE2s (Math-BigInt-2.003002.tar.gz) = 7c7b39c6e26cfcdfb86c526d906baad67d6453ff3ef279e768551b2ce67f12ee
+SHA512 (Math-BigInt-2.003002.tar.gz) = d52ded746a12980d3f6c4d3b694ec64d3f90d85ffd2063b0a2859a5b50e99da36c22ec12efd55885a05f2ca5433f9788d63e027ee70d72e50554d66ebe97ea00
+Size (Math-BigInt-2.003002.tar.gz) = 2978287 bytes



Home | Main Index | Thread Index | Old Index