Skip to content

Commit 967b4f3

Browse files
Cleaned up Complex.formatFunction and Complex.parseFunction, renamed Complex constants for readability, and compressed minified file even further
1 parent 350911e commit 967b4f3

File tree

4 files changed

+460
-404
lines changed

4 files changed

+460
-404
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Complex-js is a lightweight module that enables complex mathematics
44
in JavaScript. It comes with every elementary function and all
55
mathematical operators. It also includes many utility functions and
6-
common non-analytical functions such as the Complex conjugate, the
6+
common non-analytical functions such as the complex conjugate, the
77
argument function, the absolute value function and many others.
88

99
Lastly, but most importantly, this module contains a compiler to
@@ -279,14 +279,14 @@ console.log(Complex(5,1).equals(five_plus_i));
279279

280280
For convenience, but also used in many of the trigonometric methods.
281281

282-
* `0` - zero
283-
* `1` - one
284-
* `I` - i
285-
* `-I` - negative i
286-
* `PI` - irrational constant "π"
287-
* `E` - irrational constant "e"
288-
* `2` - two
289-
* `2I` - two i
282+
* `Complex.ZERO` - zero
283+
* `Complex.ONE` - one
284+
* `Complex.I` - i
285+
* `Complex.NEG_I` - negative i
286+
* `Complex.PI` - irrational constant "π"
287+
* `Complex.E` - irrational constant "e"
288+
* `Complex.TWO` - two
289+
* `Complex.TWO_I` - two i
290290

291291
<a name="constructs"></a>
292292
## Constructors

0 commit comments

Comments
 (0)