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 ComplexComplex.IA complex number representing \( i \), the square root of \( -1 \).private static final ComplexComplex.NANA complex number representingNaN + i NaN.static final ComplexComplex.ONEA complex number representing one.static final ComplexComplex.ZEROA 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 ComplexComplex.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 aComplexwhose value is(this + addend), withaddendinterpreted as a real number.Returns aComplexwhose value is(this + addend).Complex.addImaginary(double addend) Returns aComplexwhose value is(this + addend), withaddendinterpreted as an imaginary number.Complex.asin()Returns the inverse sine of this complex number.private static ComplexComplex.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 ComplexComplex.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 ComplexComplex.cosh(double real, double imaginary, Complex.ComplexConstructor constructor) Returns the hyperbolic cosine of the complex number.private static ComplexComplex.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 aComplexwhose value is(this / divisor), withdivisorinterpreted as a real number.private static ComplexComplex.divide(double re1, double im1, double re2, double im2) Returns aComplexwhose value is:Returns aComplexwhose value is(this / divisor).Complex.divideImaginary(double divisor) Returns aComplexwhose value is(this / divisor), withdivisorinterpreted 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 ComplexComplex.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 aComplexwhose value isthis * factor, withfactorinterpreted as a real number.private static ComplexComplex.multiply(double re1, double im1, double re2, double im2) Returns aComplexwhose value is:Returns aComplexwhose value isthis * factor.Complex.multiplyImaginary(double factor) Returns aComplexwhose value isthis * factor, withfactorinterpreted as an imaginary number.private static ComplexComplex.multiplyNegativeI(double real, double imaginary) Create a complex number given the real and imaginary parts, then multiply by-i.Complex.negate()Returns aComplexwhose value is the negation of both the real and imaginary parts of complex number \( z \).static ComplexComplex.ofCartesian(double real, double imaginary) Create a complex number given the real and imaginary parts.static ComplexComplex.ofCis(double x) Create a complex cis number.static ComplexComplex.ofPolar(double rho, double theta) Creates a complex number from its polar representation using modulusrho(\( \rho \)) and phase angletheta(\( \theta \)).static ComplexReturns aComplexinstance representing the specified strings.Complex.pow(double x) Returns the complex power of this complex number raised to the power ofx, withxinterpreted 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 ComplexComplex.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 ComplexComplex.sqrt(double real, double imaginary) Returns the square root of the complex numbersqrt(x + i y).Complex.subtract(double subtrahend) Returns aComplexwhose value is(this - subtrahend), withsubtrahendinterpreted as a real number.Returns aComplexwhose value is(this - subtrahend).Complex.subtractFrom(double minuend) Returns aComplexwhose value is(minuend - this), withminuendinterpreted as a real number.Complex.subtractFromImaginary(double minuend) Returns aComplexwhose value is(this - subtrahend), withminuendinterpreted as an imaginary number.Complex.subtractImaginary(double subtrahend) Returns aComplexwhose value is(this - subtrahend), withsubtrahendinterpreted 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 ComplexComplex.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 aComplexwhose value is(this + addend).Returns aComplexwhose value is(this / divisor).Returns aComplexwhose value isthis * factor.Returns the complex power of this complex number raised to the power ofx.Returns aComplexwhose value is(this - subtrahend).