Uses of Class
org.apache.commons.math3.complex.Complex
-
Packages that use Complex Package Description org.apache.commons.math3.analysis.solvers Root finding algorithms, for univariate real functions.org.apache.commons.math3.complex Complex number type and implementations of complex transcendental functions.org.apache.commons.math3.linear Linear algebra support.org.apache.commons.math3.transform 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 Complex Modifier and Type Method Description ComplexLaguerreSolver.ComplexSolver. solve(Complex[] coefficients, Complex initial)Find a complex root for the polynomial with the given coefficients, starting from the given initial value.Complex[]LaguerreSolver.ComplexSolver. solveAll(Complex[] coefficients, Complex 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)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.ComplexLaguerreSolver. solveComplex(double[] coefficients, double initial)Find a complex root for the polynomial with the given coefficients, starting from the given initial value.ComplexLaguerreSolver. solveComplex(double[] coefficients, double initial, int maxEval)Find a complex root for the polynomial with the given coefficients, starting from the given initial value.Methods in org.apache.commons.math3.analysis.solvers with parameters of type Complex Modifier and Type Method Description booleanLaguerreSolver.ComplexSolver. isRoot(double min, double max, Complex z)Check whether the given complex root is actually a real zero in the given interval, within the solver tolerance level.ComplexLaguerreSolver.ComplexSolver. solve(Complex[] coefficients, Complex initial)Find a complex root for the polynomial with the given coefficients, starting from the given initial value.Complex[]LaguerreSolver.ComplexSolver. solveAll(Complex[] coefficients, Complex initial)Find all complex roots 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 Complex Modifier and Type Field Description static ComplexComplex. IThe square root of -1.static ComplexComplex. INFA complex number representing "+INF + INFi"static ComplexComplex. NaNA complex number representing "NaN + NaNi"static ComplexComplex. ONEA complex number representing "1.0 + 0.0i"static ComplexComplex. ZEROA complex number representing "0.0 + 0.0i"Methods in org.apache.commons.math3.complex that return Complex Modifier and Type Method Description ComplexComplex. acos()Compute the inverse cosine of this complex number.ComplexComplex. add(double addend)Returns aComplexwhose value is(this + addend), withaddendinterpreted as a real number.ComplexComplex. add(Complex addend)Returns aComplexwhose value is(this + addend).ComplexComplex. asin()Compute the inverse sine of this complex number.ComplexComplex. atan()Compute the inverse tangent of this complex number.ComplexComplex. conjugate()Returns the conjugate of this complex number.static Complex[]ComplexUtils. convertToComplex(double[] real)Convert an array of primitive doubles to an array ofComplexobjects.ComplexComplex. cos()Compute the cosine of this complex number.ComplexComplex. 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.ComplexComplex. divide(double divisor)Returns aComplexwhose value is(this / divisor), withdivisorinterpreted as a real number.ComplexComplex. divide(Complex divisor)Returns aComplexwhose value is(this / divisor).ComplexComplex. exp()Compute the exponential function of this complex number.ComplexComplexField. getOne()Get the multiplicative identity of the field.ComplexComplexField. getZero()Get the additive identity of the field.ComplexComplex. log()Compute the natural logarithm of this complex number.ComplexComplex. multiply(double factor)Returns aComplexwhose value isthis * factor, withfactorinterpreted as a real number.ComplexComplex. multiply(int factor)Returns aComplexwhose value isthis * factor, withfactorinterpreted as a integer number.ComplexComplex. multiply(Complex factor)Returns aComplexwhose value isthis * factor.ComplexComplex. negate()Returns aComplexwhose value is(-this).ComplexComplexFormat. parse(java.lang.String source)Parses a string to produce aComplexobject.ComplexComplexFormat. parse(java.lang.String source, java.text.ParsePosition pos)Parses a string to produce aComplexobject.static ComplexComplexUtils. polar2Complex(double r, double theta)Creates a complex number from the given polar representation.ComplexComplex. pow(double x)Returns of value of this complex number raised to the power ofx.ComplexComplex. pow(Complex x)Returns of value of this complex number raised to the power ofx.ComplexComplex. reciprocal()Returns the multiplicative inverse ofthiselement.ComplexComplex. sin()Compute the sine of this complex number.ComplexComplex. sinh()Compute the hyperbolic sine of this complex number.ComplexComplex. sqrt()Compute the square root of this complex number.ComplexComplex. sqrt1z()Compute the square root of1 - this2for this complex number.ComplexComplex. subtract(double subtrahend)Returns aComplexwhose value is(this - subtrahend).ComplexComplex. subtract(Complex subtrahend)Returns aComplexwhose value is(this - subtrahend).ComplexComplex. tan()Compute the tangent of this complex number.ComplexComplex. 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 Complex Modifier and Type Method Description java.lang.Class<? extends FieldElement<Complex>>ComplexField. getRuntimeClass()Returns the runtime class of the FieldElement.java.util.List<Complex>Complex. nthRoot(int n)Computes the n-th roots of this complex number.Methods in org.apache.commons.math3.complex with parameters of type Complex Modifier and Type Method Description ComplexComplex. add(Complex addend)Returns aComplexwhose value is(this + addend).ComplexComplex. divide(Complex divisor)Returns aComplexwhose value is(this / divisor).static booleanComplex. equals(Complex x, Complex y)Returnstrueiff the values are equal as defined byequals(x, y, 1).static booleanComplex. equals(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 difference between them is within the range of allowed error (inclusive).static booleanComplex. equals(Complex x, Complex y, int maxUlps)Test 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.java.lang.StringComplexFormat. format(Complex c)This method callsComplexFormat.format(Object,StringBuffer,FieldPosition).java.lang.StringBufferComplexFormat. format(Complex complex, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)Formats aComplexobject to produce a string.ComplexComplex. multiply(Complex factor)Returns aComplexwhose value isthis * factor.ComplexComplex. pow(Complex x)Returns of value of this complex number raised to the power ofx.ComplexComplex. subtract(Complex subtrahend)Returns aComplexwhose value is(this - subtrahend). -
Uses of Complex in org.apache.commons.math3.linear
Methods in org.apache.commons.math3.linear that return Complex Modifier and Type Method Description private ComplexEigenDecomposition. cdiv(double xr, double xi, double yr, double yi)Performs a division of two complex numbers. -
Uses of Complex in org.apache.commons.math3.transform
Methods in org.apache.commons.math3.transform that return Complex Modifier and Type Method Description static Complex[]TransformUtils. createComplexArray(double[][] dataRI)Builds a new array ofComplexfrom the specified two dimensional array of real and imaginary parts.ComplexFastFourierTransformer.MultiDimensionalComplexMatrix. get(int... vector)Deprecated.Get a matrix element.static Complex[]TransformUtils. scaleArray(Complex[] f, double d)Multiply every component in the given complex array by the given real number.ComplexFastFourierTransformer.MultiDimensionalComplexMatrix. set(Complex magnitude, int... vector)Deprecated.Set a matrix element.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 Complex Modifier and Type Method Description static 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.ComplexFastFourierTransformer.MultiDimensionalComplexMatrix. set(Complex magnitude, int... vector)Deprecated.Set a matrix element.Complex[]FastFourierTransformer. transform(Complex[] f, TransformType type)Returns the (forward, inverse) transform of the specified complex data set.
-