7.0.0
Complete rewrite of complex math library using TDD.
Functions removed:
andequalsorsalsarshlshrxorceilcubefloornegnotrandomroundsignsquare
Functions planned to be re-implemented:
ceilfloorroundrandom
Breaking changes:
compile no longer accepts a reviver function. Return value must manually be wrapped with a reviver if necessary.
// before
import Complex from 'complex-js';
const f = Complex.compile('a+b', (a, b) => ({ a, b }));
f(Complex.E, Complex.I);
// after
import { compile, E, I } from 'complex-js';
const f = compile('a+b');
f({ a: E, b: I });