Skip to content

Version 3.85

Compare
Choose a tag to compare
@trizen trizen released this 18 Aug 09:13
· 1098 commits to master since this release
23a6f80

Additions

  • Added several String testing methods. (814089e)
  • Added the Array .map_slice(k, {...}) method. (a285367)
  • Added the Array .cfrac2num method. (abcbcbe)
  • Added the Array .sum_2d{} and .prod_2d{} methods. (420b0cf)
  • Added the RangeNum primes method. (a4a6c6a, 5eff247)
  • Added the DirHandle .files and .dirs methods. (2485904)
  • Added the Bag .map_kv {...} and .grep_kv {...} methods. (98614cd)
  • Added the Set .sum, .sum_by{} and .sum_2d{} methods. (420b0cf)
  • Added the Set .prod, .prod_by{} and .prod_2d{} methods. (420b0cf)
  • Added the Number pn_primes(n) method. (a4815ce)
  • Added the Number .is_power_of(b), where b is a given base. (18155b3)
  • Added the Number primality_pretest(n) method. (23b911f)
  • Added the Number primorial_inflation(n) and primorial_deflation(n) methods. (6529f3e)

Improvements

  • Faster (subquadratic-time) algorithm in Number .digits(base). (4d7b666)
  • Faster (subquadratic-time) algorithm in Number .sumdigits(base). (2f98913)
  • Faster (subquadratic-time) algorithm in Array .digits2num(base). (70f6e47)
  • Better performance in Number n.trial_factor(k) for many large n and fixed k. (defdbc8)
  • Performance improvements in Number lpf(n). (66200dc)
  • Slightly faster conversion of integer strings into numbers. (9e805cf)
  • Allow numbers to be separated by commas in %n(...) and %i(...). (5068296)
  • Extended the Number .length method to accept an optional base. (19c8576)
  • Extended the Number .divisors method accept an optional argument. (668a205)
  • Extended the Number .is_prob_squarefree method to work with only one argument. (a0e6d24)
  • Added a fast primality pretest for large values of n passed to is_prime. (9ad6ed3, 384cf3e)

Bug-fixes

  • Fixed the Array .flat method to support cyclic references. (c1e7471)
  • Backtrack whitespace after parsing of an import statement. (#104) (2a9e784)
  • Fixed the position of the pointer in some parser-error messages. (890ed44, 0d1dc25)

All changes: 3.80...3.85