Skip to content

Releases: babiabeo/complex

2.0.0

11 Jan 16:44
146d350
Compare
Choose a tag to compare

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

1.1.1

11 Jun 14:14
4b23a12
Compare
Choose a tag to compare

What's Changed

  • docs: improve documentation (#4)
  • BREAKING(complex/math): remove powCmplx function (#5)

Full Changelog: 1.1.0...1.1.1

1.1.0

05 Jun 04:19
716c9da
Compare
Choose a tag to compare

What's Changed

  • BREAKING(complex): remove Complex.fromRealNum() and Complex.fromImagNum() by @babiabeo
  • deprecation(complex/math): deprecate powCmplx by @babiabeo
  • feat(complex): cmplx function by @babiabeo

Full Changelog: https://github.com/babiabeo/complex/commits/1.1.0