Releases: keep94/sqroot
Releases · keep94/sqroot
Digits to work with most encodings
Enhancements
- Introduce MarshalBinary, MarshalText, UnmarshalBinary, UnmarshalText on Digits so that Digits will work with most encodings.
- Introduce GetDigits function which can be used to fetch certain digits from either a Mantissa or a Digits instance.
Breaking Changes
- DigitsBuilder gone.
- Mantissa.Digits function gone in favor of GetDigits.
Digits Instances Printable and Searchable
Enhancements
- Digits instance has PrintXXX methods
- FindXXX functions that work on both Mantissa and Digits instances
- Introduce IteratorAt, Reverse, ReverseAt, Min, Max, and Len on Digits
- Introduce DigitsBuilder
- FindXXX functions no longer copy pattern, but Find still does as it returns an iterator.
Breaking Changes
- Removed FindXXX methods off of Mantissa. These are standalone functions.
- DigitsAt and Send methods on Mantissa gone
- DigitsAtP method on Mantissa renamed to Digits.
- DigitAt method on Mantissa renamed to At.
- NewPositions function gone. Zero value of Positions ready to use.
Introduce DigitsAtP with Digits and Positions types
Enhancements
- Introduce DigitsAtP on Mantissa.
- Introduce Digits and Positions types
Introduce DigitAt, DigitsAt, FindAllSlice
Enhancements
- Introduce DigitAt, DigitsAt, and FindAllSlice on Mantissa.
Refactoring
- printers.go became consumers.go
Introduce WithSignificant
Enhancements
- Introduce WithSignificant method on Number and Mantissa.
Documentation Updates
- On Find method, note that pattern is a sequence of digits from 0 to 9.
Refactoring
- Break sqroot.go into multiple files
Introduce Iterators and new Sqrt variants
Enhancements
- On Mantissa introduce Iterator() which is iterator version of Send(), and Find() which is the iterator version of FindAll().
- Introduce Sqrt(), SqrtRat(), SqrtBigInt(), SqrtBigRat().
Documentation Updates
- Add example code for Mantissa.Find, Mantissa.FindFirstN, and Mantissa.FindAll.
Breaking Changes
- SquareRoot() function gone
- Sqrt() now takes a single int64
Introduce FindFirst, FindFirstN, and FindAll
Enhancements
- Introduce FindFirst, FindFirstN, and FindAll methods on Mantissa.
Remove Memory Allocation from SquareRoot Function
Enhancements
- Remove memory allocation from SquareRoot function
Introduce Sqrt function
Enhancements
- Introduce Sqrt function which takes the square root of any rational number.
Fix Mantissa Print methods
Bug Fixes
- Mantissa.Print methods to print "0" when maxDigits <= 0.