Complex Js Versions Save

JavaScript Complex Math

v3.2.0

8 years ago

This update has improved the performance of functions generated by Complex.parseFunction() by attempting to compile sub-groups as constant expressions. For example:

(cos(0)+5i)*x

used to compile to the JavaScript

Complex.cos(Complex.ZERO).add(Complex(5,0).mult(Complex.I)).mult(x)

It now compiles simply to:

Complex(1,5).mult(x)

The compiler is now also case-sensitive, allowing differentiation between the variables a and A in an expression.

One minor update is the imaginary component of the Complex() constructor is now optional.

v3.1.2

8 years ago

Can now be more readily included in client-side environments using bower and/or requirejs.

v3.1.1

9 years ago

The compiler has been updated to provide stricter compilation with more informative errors, and a minor bug-fix involving a misinterpretation during the parsing of any group of numbers in exponential format. Other updates:

  • rDivBy and divBy renamed torDiv and div respectfully
  • symbolic operators added

v3.0.1

9 years ago

This release now runs the library in strict mode for higher performance. The real operators rAdd, rSub, rMult, rDivBy, rMod, and rPow have been added. Two changes are NOT backwards compatible:

  • pow is renamed to rPow
  • cPow is renamed to pow

v2.0.1

9 years ago

Though the previous release (1.1.1) is completely stable, this version has completely reformatted the code to be significantly more readable. One major update that is NOT backwards compatible:

  • Some Complex constants have been renamed

v1.1.1

9 years ago

Added Methods

  • Complex.prototype.equals
  • Complex.prototype.real
  • Complex.prototype.imag
  • Complex.prototype.abs
  • Complex.prototype.arg
  • Complex.norm
  • Complex.iPart

Removed with statement from Complex.parseFunction

Removed all continue statements

Added explicit block statements for all one-line if, else, for, and while statements to clarify control-flow

v1.0.16

9 years ago

Documentation has been updated in uncompressed file to more standardized format. toString method now optimizes display of cartesian output.

v1.0.11

9 years ago

Updated float parsing rules and added gamma and factorial functions to the library. Also stabilized generated function scopes in Node.js environment.

v1.0.0

9 years ago