org.apache.commons.math3.complex.Complex utilities functions.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Complex[] | Returns: an array ofComplex objects.Array of numbers to be converted to their real)Complex
equivalent.Convert an array of primitive doubles to an array of |
| public static Complex | Returns: r·ei·thetathe modulus of the complex number to create r, double the argument of the complex number to create theta)Creates a complex number from the given polar representation. |
| ComplexUtils | back to summary |
|---|---|
| private ComplexUtils() Default constructor. | |
| convertToComplex | back to summary |
|---|---|
| public static Complex[] convertToComplex(double[] real) Convert an array of primitive doubles to an array of
| |
| polar2Complex | back to summary |
|---|---|
| public static Complex polar2Complex(double r, double theta) throws MathIllegalArgumentException Creates a complex number from the given polar representation.
The value returned is
If either
If
Examples:
| |