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

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

Introduction

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

The text is from its open source code.

Field

ComplexI
The square root of -1.
ComplexNaN
A complex number representing "NaN + NaNi"
ComplexONE
A complex number representing "1.0 + 0.0i"

Constructor

Complex(double real, double imaginary)
Create a complex number given the real and imaginary parts.

Method

doubleabs()
Return the absolute value of this complex number.
Complexadd(Complex rhs)
Return the sum of this complex number and the given 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 rhs)
Return the quotient of this complex number and the given complex number.
booleanequals(Object other)
Test for the equality of two Complex objects.
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 rhs)
Return the product of this complex number and the given complex number.
Complexmultiply(double rhs)
Return the product of this complex number and the given scalar number.
Complexpow(Complex 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 rhs)
Return the difference between this complex number and the given complex number.
Complextan()
Compute the tangent of this complex number.
Complextanh()
Compute the hyperbolic tangent of this complex number.