Example usage for Java org.apache.commons.math.complex Complex fields, constructors, methods, implement or subclass
The text is from its open source code.
Complex | I The square root of -1. |
Complex | NaN A complex number representing "NaN + NaNi" |
Complex | ONE A complex number representing "1.0 + 0.0i" |
Complex(double real, double imaginary) Create a complex number given the real and imaginary parts. |
double | abs() Return the absolute value of this complex number. |
Complex | add(Complex rhs) Return the sum of this complex number and the given complex number. |
Complex | conjugate() Return the conjugate of this complex number. |
Complex | cos() Compute the cosine of this complex number. |
Complex | cosh() Compute the hyperbolic cosine of this complex number. |
Complex | divide(Complex rhs) Return the quotient of this complex number and the given complex number. |
boolean | equals(Object other) Test for the equality of two Complex objects. |
Complex | exp() Compute the exponential function of this complex number. |
double | getArgument() Compute the argument of this complex number. |
double | getImaginary() Access the imaginary part. |
double | getReal() Access the real part. |
Complex | log() Compute the natural logarithm of this complex number. |
Complex | multiply(Complex rhs) Return the product of this complex number and the given complex number. |
Complex | multiply(double rhs) Return the product of this complex number and the given scalar number. |
Complex | pow(Complex x) Returns of value of this complex number raised to the power of x . |
Complex | sin() Compute the sine of this complex number. |
Complex | sinh() Compute the hyperbolic sine of this complex number. |
Complex | sqrt() Compute the square root of this complex number. |
Complex | subtract(Complex rhs) Return the difference between this complex number and the given complex number. |
Complex | tan() Compute the tangent of this complex number. |
Complex | tanh() Compute the hyperbolic tangent of this complex number. |