Skip to content

Version 24.05

Compare
Choose a tag to compare
@trizen trizen released this 12 May 07:38
· 30 commits to master since this release
24.05
e7e1203

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 in is_carmichael(n). (02b1ab3)
  • Slightly less overhead in RangeNumber iter for native integers and step=1. (5521bbf)
  • Number _primality_pretest(): when n > 10^50_000, try gcd with primorial(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) when gcd(n,b) != 1. (f72e891, 9b833eb)
  • Reimplemented Number is_pseudoprime(n,b) for better consistency. (f72e891)

Bug-fixes

  • No longer use VERSION in eval() (ready for Perl 5.40). (acdaf87)
  • Fixed gcd(-n) and lcm(-n) to return n 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.