Example usage for Java org.apache.commons.math3.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 | INF A complex number representing "+INF + INFi" |
Complex | ONE A complex number representing "1.0 + 0.0i" |
Complex | ZERO A complex number representing "0.0 + 0.0i" |
boolean | isNaN Record whether this complex number is equal to NaN. |
boolean | isInfinite Record whether this complex number is infinite. |
Complex(double real, double imaginary) Create a complex number given the real and imaginary parts. | |
Complex(double real) Create a complex number given only the real part. |
double | abs() Return the absolute value of this complex number. |
Complex | acos() Compute the inverse cosine of this complex number. |
Complex | add(Complex addend) Returns a Complex whose value is (this + addend) . |
Complex | add(double addend) Returns a Complex whose value is (this + addend) , with addend interpreted as a real number. |
Complex | asin() Compute the inverse sine of this complex number. |
Complex | atan() Compute the inverse tangent of this 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 divisor) Returns a Complex whose value is (this / divisor) . |
Complex | divide(double divisor) Returns a Complex whose value is (this / divisor) , with divisor interpreted as a real number. |
boolean | equals(Object other) Test for equality with another object. |
boolean | equals(Complex x, Complex y) Returns true iff the values are equal as defined by #equals(Complex,Complex,int) equals(x, y, 1) . |
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 factor) Returns a Complex whose value is this * factor . |
Complex | multiply(final int factor) Returns a Complex whose value is this * factor , with factor interpreted as a integer number. |
Complex | multiply(double factor) Returns a Complex whose value is this * factor , with factor interpreted as a real number. |
Complex | negate() Returns a Complex whose value is (-this) . |
Complex | pow(Complex x) Returns of value of this complex number raised to the power of x . |
Complex | pow(double 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 subtrahend) Returns a Complex whose value is (this - subtrahend) . |
Complex | subtract(double subtrahend) Returns a Complex whose value is (this - subtrahend) . |
Complex | tan() Compute the tangent of this complex number. |
Complex | tanh() Compute the hyperbolic tangent of this complex number. |
String | toString() |
Complex | valueOf(double realPart, double imaginaryPart) Create a complex number given the real and imaginary parts. |
Complex | valueOf(double realPart) Create a complex number given only the real part. |