arithmoi v0.6.0.0 Release Notes
Release Date: 2017-09-16 // over 6 years ago-
โ Added
Brand new
Math.NumberTheory.Moduli.Class
(#56), providing flexible and type safe modular arithmetic. Due to use of GMP built-ins it is also significantly faster.๐ New function
divisorsList
, which is lazier thandivisors
and does not requireOrd
constraint (#64). Thus, it can be used forGaussianInteger
.
๐ Changed
Math.NumberTheory.Moduli
was split intoMath.NumberTheory.Moduli.{Chinese,Class,Jacobi,Sqrt}
.Functions
jacobi
andjacobi'
returnJacobiSymbol
instead ofInt
.Speed up factorisation over elliptic curve up to 15x (#65).
Polymorphic
fibonacci
andlucas
functions, which previously were restricted toInteger
only (#63). This is especially useful for modular computations, e. g.,map fibonacci [1..10] :: [Mod 7]
.๐ Make
totientSum
more robust and idiomatic (#58).
โ Removed
- ๐ Functions
invertMod
,powerMod
andpowerModInteger
were removed, as well as their unchecked counterparts. Use new interface to modular computations, provided byMath.NumberTheory.Moduli.Class
.