Skip to content

Releases: keep94/sqroot

Digits to work with most encodings

23 Oct 20:27
Compare
Choose a tag to compare

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

17 Oct 13:31
Compare
Choose a tag to compare

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

05 Oct 11:08
Compare
Choose a tag to compare

Enhancements

  • Introduce DigitsAtP on Mantissa.
  • Introduce Digits and Positions types

Introduce DigitAt, DigitsAt, FindAllSlice

29 Sep 09:42
Compare
Choose a tag to compare

Enhancements

  • Introduce DigitAt, DigitsAt, and FindAllSlice on Mantissa.

Refactoring

  • printers.go became consumers.go

Introduce WithSignificant

25 Sep 16:00
Compare
Choose a tag to compare

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

17 Sep 12:39
Compare
Choose a tag to compare

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

10 Sep 10:37
Compare
Choose a tag to compare

Enhancements

  • Introduce FindFirst, FindFirstN, and FindAll methods on Mantissa.

Remove Memory Allocation from SquareRoot Function

02 Sep 13:26
Compare
Choose a tag to compare

Enhancements

  • Remove memory allocation from SquareRoot function

Introduce Sqrt function

28 Aug 18:39
Compare
Choose a tag to compare

Enhancements

  • Introduce Sqrt function which takes the square root of any rational number.

Fix Mantissa Print methods

20 Aug 04:08
Compare
Choose a tag to compare

Bug Fixes

  • Mantissa.Print methods to print "0" when maxDigits <= 0.