Version 24.05
Additions
- Added the Number
fibonorial(n)
method. (b811901) - Added the Number
is_primitive_abundant(n)
method. (eb11b34) - Added several aliases for trigonometric functions. (4aa0032)
Improvements
- Several minor optimizations in the Number class. (40c23f8)
- Slightly better performance in Number
powerful_count
. (387da41) - Slightly faster generation of k-powerful numbers in a given range. (100f7d8)
- No longer do trial division for small
n
inis_carmichael(n)
. (02b1ab3) - Slightly less overhead in RangeNumber
iter
for native integers andstep=1
. (5521bbf) - Number
_primality_pretest()
: whenn > 10^50_000
, try gcd withprimorial(10^9)
(on 64-bit systems). (2e99031)
Changes
- Parse 'ZERO WIDTH SPACE' (
U+200B
) as whitespace. (2f6a1f8) - Return false from Number
is_strong_psp(n, b)
whengcd(n,b) != 1
. (f72e891, 9b833eb) - Reimplemented Number
is_pseudoprime(n,b)
for better consistency. (f72e891)
Bug-fixes
- No longer
use VERSION
ineval()
(ready for Perl 5.40). (acdaf87) - Fixed
gcd(-n)
andlcm(-n)
to returnn
instead of-n
. (5d478d9) - Fixed the deparsing of an empty array that contains empty expressions, under
-O1
. (9547182)
All changes: 24.01...24.05
P.S.: This is a minor release, preparing Sidef for Perl 5.40.