ComplexMath Class
This collection of functions provides the complex number equivalent of the built-in JavaScript Math namespace, along with the basic arithmetic operations (since JavaScript does not support operator overloading).
Item Index
Methods
- abs static
- acosh static
- add static
- addReciprocals static
- asinh static
- atanh static
- conjugate static
- cos static
- cosh static
- divide static
- exp static
- isComplexNumber static
- log static
- multiply static
- negative static
- parallel static
- phase static
- pow static
- rotate static
- sin static
- sinh static
- sqrt static
- subtract static
- tan static
- tanh static
Methods
abs
(
Number
static
-
v
Parameters:
-
v
Number
Returns:
Number:
absolute value (magnitude) of the argument
acosh
(
Number
static
-
v
Parameters:
-
v
Number
Returns:
Number:
inverse hyperbolic cosine of the argument
add
()
Number
static
Returns:
Number:
sum of all the arguments (either passed separately or as an array)
addReciprocals
()
Number
static
Returns:
Number:
sum of the reciprocals of all the arguments (either passed separately or as an array)
asinh
(
Number
static
-
v
Parameters:
-
v
Number
Returns:
Number:
inverse hyperbolic sine of the argument
atanh
(
Number
static
-
v
Parameters:
-
v
Number
Returns:
Number:
inverse hyperbolic tangent of the argument
conjugate
(
Number
static
-
v
Parameters:
-
v
Number
Returns:
Number:
complex conjugate of the argument
isComplexNumber
()
Boolean
static
Returns:
Boolean:
true if the argument is a ComplexNumber
multiply
()
Number
static
Returns:
Number:
product of all the arguments (either passed separately or as an array)
parallel
()
Number
static
Returns:
Number:
net value of N impedances in parallel (either passed separately or as an array)