Uses of Class
org.apache.commons.math3.complex.Complex
Packages that use Complex
Package
Description
Root finding algorithms, for univariate real functions.
Complex number type and implementations of complex transcendental
functions.
Implementations of transform methods, including Fast Fourier transforms.
-
Uses of Complex in org.apache.commons.math3.analysis.solvers
Methods in org.apache.commons.math3.analysis.solvers that return ComplexModifier and TypeMethodDescriptionComplex[]LaguerreSolver.solveAllComplex(double[] coefficients, double initial) Find all complex roots for the polynomial with the given coefficients, starting from the given initial value.Complex[]LaguerreSolver.solveAllComplex(double[] coefficients, double initial, int maxEval) Find all complex roots for the polynomial with the given coefficients, starting from the given initial value.LaguerreSolver.solveComplex(double[] coefficients, double initial) Find a complex root for the polynomial with the given coefficients, starting from the given initial value.LaguerreSolver.solveComplex(double[] coefficients, double initial, int maxEval) Find a complex root for the polynomial with the given coefficients, starting from the given initial value. -
Uses of Complex in org.apache.commons.math3.complex
Fields in org.apache.commons.math3.complex declared as ComplexModifier and TypeFieldDescriptionstatic final ComplexComplex.IThe square root of -1.static final ComplexComplex.INFA complex number representing "+INF + INFi"static final ComplexComplex.NaNA complex number representing "NaN + NaNi"static final ComplexComplex.ONEA complex number representing "1.0 + 0.0i"static final ComplexComplex.ZEROA complex number representing "0.0 + 0.0i"Methods in org.apache.commons.math3.complex that return ComplexModifier and TypeMethodDescriptionComplex.acos()Compute the inverse 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.asin()Compute the inverse sine of this complex number.Complex.atan()Compute the inverse tangent of this complex number.Complex.conjugate()Returns the conjugate of this complex number.static Complex[]ComplexUtils.convertToComplex(double[] real) Convert an array of primitive doubles to an array ofComplexobjects.Complex.cos()Compute the cosine of this complex number.Complex.cosh()Compute the hyperbolic cosine of this complex number.protected ComplexComplex.createComplex(double realPart, double imaginaryPart) 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.Returns aComplexwhose value is(this / divisor).Complex.exp()Compute the exponential function of this complex number.ComplexField.getOne()Get the multiplicative identity of the field.ComplexField.getZero()Get the additive identity of the field.Complex.log()Compute the natural logarithm of this complex number.Complex.multiply(double factor) Returns aComplexwhose value isthis * factor, withfactorinterpreted as a real number.Complex.multiply(int factor) Returns aComplexwhose value isthis * factor, withfactorinterpreted as a integer number.Returns aComplexwhose value isthis * factor.Complex.negate()Returns aComplexwhose value is(-this).Parses a string to produce aComplexobject.ComplexFormat.parse(String source, ParsePosition pos) Parses a string to produce aComplexobject.static ComplexComplexUtils.polar2Complex(double r, double theta) Creates a complex number from the given polar representation.Complex.pow(double x) Returns of value of this complex number raised to the power ofx.Returns of value of this complex number raised to the power ofx.Complex.reciprocal()Returns the multiplicative inverse ofthiselement.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.sqrt1z()Compute the square root of1 - this2for this complex number.Complex.subtract(double subtrahend) Returns aComplexwhose value is(this - subtrahend).Returns aComplexwhose value is(this - subtrahend).Complex.tan()Compute the tangent of this complex number.Complex.tanh()Compute the hyperbolic tangent of this complex number.static ComplexComplex.valueOf(double realPart) Create a complex number given only the real part.static ComplexComplex.valueOf(double realPart, double imaginaryPart) Create a complex number given the real and imaginary parts.Methods in org.apache.commons.math3.complex that return types with arguments of type ComplexModifier and TypeMethodDescriptionClass<? extends FieldElement<Complex>> ComplexField.getRuntimeClass()Returns the runtime class of the FieldElement.Complex.nthRoot(int n) Computes the n-th roots of this complex number.Methods in org.apache.commons.math3.complex with parameters of type ComplexModifier and TypeMethodDescriptionReturns aComplexwhose value is(this + addend).Returns aComplexwhose value is(this / divisor).static booleanReturnstrueiff the values are equal as defined byequals(x, y, 1).static booleanReturnstrueif, both for the real part and for the imaginary part, there is no double value strictly between the arguments or the difference between them is within the range of allowed error (inclusive).static booleanTest for the floating-point equality between Complex objects.static booleanComplex.equalsWithRelativeTolerance(Complex x, Complex y, double eps) Returnstrueif, both for the real part and for the imaginary part, there is no double value strictly between the arguments or the relative difference between them is smaller or equal to the given tolerance.This method callsComplexFormat.format(Object,StringBuffer,FieldPosition).ComplexFormat.format(Complex complex, StringBuffer toAppendTo, FieldPosition pos) Formats aComplexobject to produce a string.Returns aComplexwhose value isthis * factor.Returns of value of this complex number raised to the power ofx.Returns aComplexwhose value is(this - subtrahend). -
Uses of Complex in org.apache.commons.math3.transform
Methods in org.apache.commons.math3.transform that return ComplexModifier and TypeMethodDescriptionstatic Complex[]TransformUtils.createComplexArray(double[][] dataRI) Builds a new array ofComplexfrom the specified two dimensional array of real and imaginary parts.static Complex[]TransformUtils.scaleArray(Complex[] f, double d) Multiply every component in the given complex array by the given real number.Complex[]FastFourierTransformer.transform(double[] f, TransformType type) Returns the (forward, inverse) transform of the specified real data set.Complex[]FastFourierTransformer.transform(UnivariateFunction f, double min, double max, int n, TransformType type) Returns the (forward, inverse) transform of the specified real function, sampled on the specified interval.Complex[]FastFourierTransformer.transform(Complex[] f, TransformType type) Returns the (forward, inverse) transform of the specified complex data set.Methods in org.apache.commons.math3.transform with parameters of type ComplexModifier and TypeMethodDescriptionstatic double[][]TransformUtils.createRealImaginaryArray(Complex[] dataC) Builds a new two dimensional array ofdoublefilled with the real and imaginary parts of the specifiedComplexnumbers.static Complex[]TransformUtils.scaleArray(Complex[] f, double d) Multiply every component in the given complex array by the given real number.Complex[]FastFourierTransformer.transform(Complex[] f, TransformType type) Returns the (forward, inverse) transform of the specified complex data set.