Complex
Class Complex
Complex number class.
Method .root (n: number, i: number): Complex
Returns the ith nth-root of this complex number.
Name | Type | Default | Description |
---|---|---|---|
n | number | ||
i | number | 0 |
static Method .difference (c1: number|Complex, c2: number|Complex): Complex
Calculates the difference of two complex numbers c1 and c2.
Name | Type | Default | Description | |
---|---|---|---|---|
c1 | number | Complex | ||
c2 | number | Complex |
static Method .exp (c: number|Complex): Complex
Calculates e^c for a complex number c.
Name | Type | Default | Description | |
---|---|---|---|---|
c | number | Complex |
static Method .product (c1: number|Complex, c2: number|Complex): Complex
Calculates the product of two complex numbers c1 and c2.
Name | Type | Default | Description | |
---|---|---|---|---|
c1 | number | Complex | ||
c2 | number | Complex |
static Method .quotient (c1: number|Complex, c2: number|Complex): Complex
Calculates the quotient of two complex numbers c1 and c2.
Name | Type | Default | Description | |
---|---|---|---|---|
c1 | number | Complex | ||
c2 | number | Complex |