This repository was archived by the owner on Mar 18, 2026. It is now read-only.
Releases: keep94/sqroot
Releases · keep94/sqroot
v3.8.3
v3.8.2
v3.8.1
v3.8.0
New Features
- AsString function to replace DigitsToString
Deprecated functions
- DigitsToString in favor of AsString
- Find and FindR in favor of Matches and BackwardMatches
- FindAll, FindFirstN, FindLastN in favor of using golang iterators
- FiniteNumber.Iterator and FiniteNumber.Reverse in favor of FiniteNumber.All and FiniteNumber.Backward
- NewNumberFromBigRat in favor of NewNumberForTesting
- Positions.Ranges in favor of Positions.All
- Sequence.Iterator in favor of Sequence.All
- FiniteSequence.Reverse in favor of FiniteSequence.Backward
Deprecated structs
- Digits
v3.7.2
Bug Fixes
- Misbehaved Generator implementations cannot break the NewNumber function. It is no longer possible to trick NewNumber into returning a Number where the first digit of the mantissa is zero because NewNumber won't break even if the Generate method on Generator returns different digits and exponent with each call.
v3.7.1
v3.7.0
v3.6.1
v3.6.0
New Features
- Introduce NewFiniteNumber() function which works like NewNumberForTesting() except that it creates FiniteNumbers.
- NewNumberForTesting returns a *FiniteNumber if caller gives no repeating digits.
Bug fixes
- FiniteNumber.Exact() behaviour changed so that it behaves exactly like the String() method when there are fewer than 16 digits in the mantissa. Before FiniteNumber.Exact() would revert to scientific notation if there were very few significant digits. For example it would wrongfully give "0.12e+04" instead of "1200".
v3.5.0
New Features
- Utilise go 1.23 iterators
- Add All() method to Sequence
- Add Backward() method to FiniteSequence
- Add All() method to Positions
- Add Matches() to return all the matches of a pattern in a Sequence
- Add BackwardMatches() to return all the matches of a pattern in a FiniteSequence from end to beginning
Requirements
- This version requires go 1.23 or later. For older versions of go, use v3.4.9