Skip to content

2.0.0

Latest
Compare
Choose a tag to compare
@babiabeo babiabeo released this 11 Jan 16:44
146d350

Breaking changes

  • ⚠ Rename Complex class to complex
  • ⚠ Rename ComplexMath to cmath
  • ⚠ Rename complex.phase() to complex.arg()
  • ⚠ Rename complex.mult() to complex.mul()
  • ❌ Remove static functions complex.Inf(), complex.NaN()
  • ❌ Remove static functions complex.fromReal(), complex.fromImag()
  • ❌ Remove complex.IsInf(), complex.IsNaN(), complex.IsZero()

Features

  • ✨ Add static function complex.fromPolar() to create a new complex number from its polar coordinates
  • ✨ Add complex.polar() which returns the polar coordinates
  • ✨ Add complex.neg() which returns the negation of the complex number

Updates

  • 🔧 Update handling for special cases in some mathematic functions

Docs

  • 📚 Improve and add "Special cases" sections with a table to some mathematic functions

Miscellaneous changes

  • Update ci.yml
  • Update LICENSE copyright year

Full Changelog: 1.1.1...2.0.0