Uses of Class
org.apache.commons.numbers.complex.Complex
Packages that use Complex
-
Uses of Complex in org.apache.commons.numbers.complex
Fields in org.apache.commons.numbers.complex declared as ComplexModifier and TypeFieldDescriptionstatic final Complex
Complex.I
A complex number representing \( i \), the square root of \( -1 \).private static final Complex
Complex.NAN
A complex number representingNaN + i NaN
.static final Complex
Complex.ONE
A complex number representing one.static final Complex
Complex.ZERO
A complex number representing zero.Methods in org.apache.commons.numbers.complex that return ComplexModifier and TypeMethodDescriptionComplex.acos()
Returns the inverse cosine of this complex number.private static Complex
Complex.acos
(double real, double imaginary, Complex.ComplexConstructor constructor) Returns the inverse cosine of the complex number.Complex.acosh()
Returns the inverse hyperbolic cosine of this complex number.Complex.add
(double addend) Returns aComplex
whose value is(this + addend)
, withaddend
interpreted as a real number.Returns aComplex
whose value is(this + addend)
.Complex.addImaginary
(double addend) Returns aComplex
whose value is(this + addend)
, withaddend
interpreted as an imaginary number.Complex.asin()
Returns the inverse sine of this complex number.private static Complex
Complex.asin
(double real, double imaginary, Complex.ComplexConstructor constructor) Returns the inverse sine of the complex number.Complex.asinh()
Returns the inverse hyperbolic sine of this complex number.Complex.atan()
Returns the inverse tangent of this complex number.Complex.atanh()
Returns the inverse hyperbolic tangent of this complex number.private static Complex
Complex.atanh
(double real, double imaginary, Complex.ComplexConstructor constructor) Returns the inverse hyperbolic tangent of this complex number.Complex.conj()
Returns the conjugate \( \overline{z} \) of this complex number \( z \).Complex.cos()
Returns the cosine of this complex number.Complex.cosh()
Returns the hyperbolic cosine of this complex number.private static Complex
Complex.cosh
(double real, double imaginary, Complex.ComplexConstructor constructor) Returns the hyperbolic cosine of the complex number.private static Complex
Complex.coshsinh
(double x, double real, double imaginary, boolean sinh, Complex.ComplexConstructor constructor) Compute cosh or sinh when the absolute real component |x| is large.Complex.ComplexConstructor.create
(double real, double imaginary) Create a complex number given the real and imaginary parts.Complex.divide
(double divisor) Returns aComplex
whose value is(this / divisor)
, withdivisor
interpreted as a real number.private static Complex
Complex.divide
(double re1, double im1, double re2, double im2) Returns aComplex
whose value is:Returns aComplex
whose value is(this / divisor)
.Complex.divideImaginary
(double divisor) Returns aComplex
whose value is(this / divisor)
, withdivisor
interpreted as an imaginary number.Complex.exp()
Returns the exponential function of this complex number.Complex.log()
Returns the natural logarithm of this complex number.private Complex
Complex.log
(DoubleUnaryOperator log, double logOfeOver2, double logOf2, Complex.ComplexConstructor constructor) Returns the logarithm of this complex number using the provided function.Complex.log10()
Returns the base 10 common logarithm of this complex number.Complex.multiply
(double factor) Returns aComplex
whose value isthis * factor
, withfactor
interpreted as a real number.private static Complex
Complex.multiply
(double re1, double im1, double re2, double im2) Returns aComplex
whose value is:Returns aComplex
whose value isthis * factor
.Complex.multiplyImaginary
(double factor) Returns aComplex
whose value isthis * factor
, withfactor
interpreted as an imaginary number.private static Complex
Complex.multiplyNegativeI
(double real, double imaginary) Create a complex number given the real and imaginary parts, then multiply by-i
.Complex.negate()
Returns aComplex
whose value is the negation of both the real and imaginary parts of complex number \( z \).static Complex
Complex.ofCartesian
(double real, double imaginary) Create a complex number given the real and imaginary parts.static Complex
Complex.ofCis
(double x) Create a complex cis number.static Complex
Complex.ofPolar
(double rho, double theta) Creates a complex number from its polar representation using modulusrho
(\( \rho \)) and phase angletheta
(\( \theta \)).static Complex
Returns aComplex
instance representing the specified strings
.Complex.pow
(double x) Returns the complex power of this complex number raised to the power ofx
, withx
interpreted as a real number.Returns the complex power of this complex number raised to the power ofx
.Complex.proj()
Returns the projection of this complex number onto the Riemann sphere.Complex.sin()
Returns the sine of this complex number.Complex.sinh()
Returns the hyperbolic sine of this complex number.private static Complex
Complex.sinh
(double real, double imaginary, Complex.ComplexConstructor constructor) Returns the hyperbolic sine of the complex number.Complex.sqrt()
Returns the square root of this complex number.private static Complex
Complex.sqrt
(double real, double imaginary) Returns the square root of the complex numbersqrt(x + i y)
.Complex.subtract
(double subtrahend) Returns aComplex
whose value is(this - subtrahend)
, withsubtrahend
interpreted as a real number.Returns aComplex
whose value is(this - subtrahend)
.Complex.subtractFrom
(double minuend) Returns aComplex
whose value is(minuend - this)
, withminuend
interpreted as a real number.Complex.subtractFromImaginary
(double minuend) Returns aComplex
whose value is(this - subtrahend)
, withminuend
interpreted as an imaginary number.Complex.subtractImaginary
(double subtrahend) Returns aComplex
whose value is(this - subtrahend)
, withsubtrahend
interpreted as an imaginary number.Complex.tan()
Returns the tangent of this complex number.Complex.tanh()
Returns the hyperbolic tangent of this complex number.private static Complex
Complex.tanh
(double real, double imaginary, Complex.ComplexConstructor constructor) Returns the hyperbolic tangent of this complex number.Methods in org.apache.commons.numbers.complex that return types with arguments of type ComplexModifier and TypeMethodDescriptionComplex.nthRoot
(int n) Returns the n-th roots of this complex number.Methods in org.apache.commons.numbers.complex with parameters of type ComplexModifier and TypeMethodDescriptionReturns aComplex
whose value is(this + addend)
.Returns aComplex
whose value is(this / divisor)
.Returns aComplex
whose value isthis * factor
.Returns the complex power of this complex number raised to the power ofx
.Returns aComplex
whose value is(this - subtrahend)
.