Methods
Own
(static) abs(z1) → {Number}
Absolute value of a complex number.
Parameters
| Name | Type | Description |
|---|---|---|
z1 |
JXG.Complex | Number | Complex number |
Returns
real number equal to the absolute value of the given parameter.
- Type
- Number
Details
- Source
- math/complex.js, line 348
(static) add(z1, z2) → {JXG.Complex}
Add two (complex) numbers z1 and z2 and return the result as a (complex) number.
Parameters
| Name | Type | Description |
|---|---|---|
z1 |
JXG.Complex | Number | Summand |
z2 |
JXG.Complex | Number | Summand |
Returns
A complex number equal to the sum of the given parameters.
- Type
- JXG.Complex
Details
- Source
- math/complex.js, line 290
(static) angle(z1) → {Number}
Angle of a complex number (in radians).
Parameters
| Name | Type | Description |
|---|---|---|
z1 |
JXG.Complex | Number | Complex number |
Returns
real number equal to the angle value of the given parameter.
- Type
- Number
Details
- Source
- math/complex.js, line 361
(static) conj(z1) → {JXG.Complex}
Conjugate a complex number and return the result.
Parameters
| Name | Type | Description |
|---|---|---|
z1 |
JXG.Complex | Number | Complex number |
Returns
A complex number equal to the conjugate of the given parameter.
- Type
- JXG.Complex
Details
- Source
- math/complex.js, line 337
(static) copy(z) → {JXG.Complex}
Create copy of complex number.
Parameters
| Name | Type | Description |
|---|---|---|
z |
JXG.Complex | Number |
Returns
- Type
- JXG.Complex
Details
- Source
- math/complex.js, line 372
(static) div(z1, z2) → {JXG.Complex}
Divide two (complex) numbers z1 and z2 and return the result as a (complex) number.
Parameters
| Name | Type | Description |
|---|---|---|
z1 |
JXG.Complex | Number | Dividend |
z2 |
JXG.Complex | Number | Divisor |
Returns
A complex number equal to the quotient of the given parameters.
- Type
- JXG.Complex
Details
- Source
- math/complex.js, line 326
(static) mult(z1, z2) → {JXG.Complex}
Multiply two (complex) numbers z1 and z2 and return the result as a (complex) number.
Parameters
| Name | Type | Description |
|---|---|---|
z1 |
JXG.Complex | Number | Factor |
z2 |
JXG.Complex | Number | Factor |
Returns
A complex number equal to the product of the given parameters.
- Type
- JXG.Complex
Details
- Source
- math/complex.js, line 314
(static) sub(z1, z2) → {JXG.Complex}
Subtract two (complex) numbers z1 and z2 and return the result as a (complex) number.
Parameters
| Name | Type | Description |
|---|---|---|
z1 |
JXG.Complex | Number | Minuend |
z2 |
JXG.Complex | Number | Subtrahend |
Returns
A complex number equal to the difference of the given parameters.
- Type
- JXG.Complex
Details
- Source
- math/complex.js, line 302
Inherited
none