Java org.apache.commons.math3.complex Complex fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.math3.complex Complex fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.math3.complex Complex.

The text is from its open source code.

Subclass

org.apache.commons.math3.complex.Complex has subclasses.
Click this link to see all its subclasses.

Field

ComplexI
The square root of -1.
ComplexNaN
A complex number representing "NaN + NaNi"
ComplexINF
A complex number representing "+INF + INFi"
ComplexONE
A complex number representing "1.0 + 0.0i"
ComplexZERO
A complex number representing "0.0 + 0.0i"
booleanisNaN
Record whether this complex number is equal to NaN.
booleanisInfinite
Record whether this complex number is infinite.

Constructor

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.

Method

doubleabs()
Return the absolute value of this complex number.
Complexacos()
Compute the inverse cosine of this complex number.
Complexadd(Complex addend)
Returns a Complex whose value is (this + addend) .
Complexadd(double addend)
Returns a Complex whose value is (this + addend) , with addend interpreted as a real number.
Complexasin()
Compute the inverse sine of this complex number.
Complexatan()
Compute the inverse tangent of this complex number.
Complexconjugate()
Return the conjugate of this complex number.
Complexcos()
Compute the cosine of this complex number.
Complexcosh()
Compute the hyperbolic cosine of this complex number.
Complexdivide(Complex divisor)
Returns a Complex whose value is (this / divisor) .
Complexdivide(double divisor)
Returns a Complex whose value is (this / divisor) , with divisor interpreted as a real number.
booleanequals(Object other)
Test for equality with another object.
booleanequals(Complex x, Complex y)
Returns true iff the values are equal as defined by #equals(Complex,Complex,int) equals(x, y, 1) .
Complexexp()
Compute the exponential function of this complex number.
doublegetArgument()
Compute the argument of this complex number.
doublegetImaginary()
Access the imaginary part.
doublegetReal()
Access the real part.
Complexlog()
Compute the natural logarithm of this complex number.
Complexmultiply(Complex factor)
Returns a Complex whose value is this * factor .
Complexmultiply(final int factor)
Returns a Complex whose value is this * factor , with factor interpreted as a integer number.
Complexmultiply(double factor)
Returns a Complex whose value is this * factor , with factor interpreted as a real number.
Complexnegate()
Returns a Complex whose value is (-this) .
Complexpow(Complex x)
Returns of value of this complex number raised to the power of x .
Complexpow(double x)
Returns of value of this complex number raised to the power of x .
Complexsin()
Compute the sine of this complex number.
Complexsinh()
Compute the hyperbolic sine of this complex number.
Complexsqrt()
Compute the square root of this complex number.
Complexsubtract(Complex subtrahend)
Returns a Complex whose value is (this - subtrahend) .
Complexsubtract(double subtrahend)
Returns a Complex whose value is (this - subtrahend) .
Complextan()
Compute the tangent of this complex number.
Complextanh()
Compute the hyperbolic tangent of this complex number.
StringtoString()
ComplexvalueOf(double realPart, double imaginaryPart)
Create a complex number given the real and imaginary parts.
ComplexvalueOf(double realPart)
Create a complex number given only the real part.