Uses of Class
edu.neu.ccs.XComplex

Packages that use XComplex
edu.neu.ccs Provides the Stringable interface and data models that implement the interface. 
 

Uses of XComplex in edu.neu.ccs
 

Fields in edu.neu.ccs declared as XComplex
protected  XComplex[] XPolynomialComplex.coefficients
          The polynomial coefficients or null if no storage has been allocated.
 

Methods in edu.neu.ccs that return XComplex
 XComplex[] XPolynomialComplex.getCoefficients()
          Returns a copy of the polynomial coefficients.
 XComplex XPolynomialComplex.getCoefficient(int index)
          Returns a copy of the coefficient at the given index.
 XComplex XPolynomialComplex.evaluate(XComplex x)
          Returns the value of the polynomial at the given x.
static XComplex XComplex.copy(XComplex z)
          If z is null returns null otherwise returns a new copy of z via the constructor call new XComplex(z).
static XComplex XComplex.copyData(double[] data)
          If data is null returns null otherwise returns a new XComplex via the constructor call new XComplex(data).
static XComplex XComplex.copyData(float[] data)
          If data is null returns null otherwise returns a new XComplex via the constructor call new XComplex(data).
static XComplex[] XComplex.copy(XComplex[] array)
          If array is null returns null otherwise returns a new XComplex[] that uses the method copy(XComplex) to copy the array items.
static XComplex[] XComplex.copyData(double[][] array)
          If array is null returns null otherwise returns a new XComplex[] that uses the method copyData(double[]) to copy the array items.
static XComplex[] XComplex.copyData(float[][] array)
          If array is null returns null otherwise returns a new XComplex[] that uses the method copyData(float[]) to copy the array items.
static XComplex XComplex.negate(XComplex z)
          Returns a new XComplex whose value is the negation of the given z.
static XComplex XComplex.scale(double s, XComplex z)
          Returns a new XComplex whose value is s * z.
static XComplex XComplex.conjugate(XComplex z)
          Returns a new XComplex whose value is the complex conjugate of the given z: in coordinates, if z is [x;y], then the new value returned is [x;-y].
static XComplex XComplex.invert(XComplex z)
          Returns a new XComplex whose value is the the multiplicative inverse of the given z.
static XComplex XComplex.add(XComplex z, XComplex w)
          Returns a new XComplex whose value is z + w.
static XComplex XComplex.add(double x1, double y1, double x2, double y2)
          Returns a new XComplex whose value is z + w where z is the complex with coordinates x1,y1 and w is the complex with coordinates x2,y2.
static XComplex XComplex.subtract(XComplex z, XComplex w)
          Returns a new XComplex whose value is z - w.
static XComplex XComplex.subtract(double x1, double y1, double x2, double y2)
          Returns a new XComplex whose value is z - w where z is the complex with coordinates x1,y1 and w is the complex with coordinates x2,y2.
static XComplex XComplex.multiply(XComplex z, XComplex w)
          Returns a new XComplex whose value is z * w.
static XComplex XComplex.multiply(double x1, double y1, double x2, double y2)
          Returns a new XComplex whose value is z * w where z is the complex with coordinates x1,y1 and w is the complex with coordinates x2,y2.
static XComplex XComplex.divide(XComplex z, XComplex w)
          Returns a new XComplex whose value is z / w.
static XComplex XComplex.divide(double x1, double y1, double x2, double y2)
          Returns a new XComplex whose value is z / w where z is the complex with coordinates x1,y1 and w is the complex with coordinates x2,y2.
static XComplex XComplex.makeUsingRadiusAndRadians(double radius, double radians)
          Returns the complex number whose coordinates are x=radius*Math.cos(radians) and y=radius*Math.sin(radians).
static XComplex XComplex.makeUsingRadiusAndDegrees(double radius, double degrees)
          Returns the complex number whose coordinates are x=radius*MathUtilities.cosdeg(degrees) and y=radius*MathUtilities.sindeg(degrees).
static XComplex XComplex.exp(XComplex z)
          Returns the complex exponential of the given z.
static XComplex XComplex.log(XComplex z)
          Returns the branch of the logarithm of z that is determined by the constraint that the imaginary part is between 0 and 2*pi, that is, 0<=Im(log(z))<2*pi.
static XComplex XComplex.sqrt(XComplex z)
          Returns one of the two complex square roots of z, specifically, the one whose angle in radians is between 0 and pi.
static XComplex XComplex.power(XComplex z, int n)
          Returns the n-th power of z, zn, using the given integer exponent n.
static XComplex XComplex.generalPower(XComplex z, double d)
          Returns the d-th power of z, zd, using the given double exponent d.
static XComplex XComplex.generalPower(XComplex z, XComplex w)
          Returns the w-th power of z, zw, using the given complex exponent w.
static XComplex XComplex.rootOfUnity(int n, int k)
          Returns the k-th root among the n-th roots of unity for 0<=k<n.
static XComplex[] XComplex.rootsOfUnity(int n)
          Returns an array of size n with the n-th roots of unity.
static XComplex[] Strings.stringsToXComplexValues(String[] data)
          Returns an array of XComplex values corresponding to the given array of strings.
 XComplex FunctionComplex.NoArg.evaluate()
           
 XComplex FunctionComplex.OneArg.evaluate(XComplex x)
           
 XComplex FunctionComplex.TwoArg.evaluate(XComplex x, XComplex y)
           
 XComplex FunctionComplex.ThreeArg.evaluate(XComplex x, XComplex y, XComplex z)
           
 XComplex FunctionComplex.FourArg.evaluate(XComplex x, XComplex y, XComplex z, XComplex w)
           
 XComplex FunctionComplex.ArrayArg.evaluate(XComplex[] args)
           
 XComplex FunctionComplex.TwoArrayArg.evaluate(XComplex[] args1, XComplex[] args2)
           
 XComplex FunctionComplex.ArrayOfArrayArg.evaluate(XComplex[][] args)
           
 

Methods in edu.neu.ccs with parameters of type XComplex
 void XPolynomialComplex.setCoefficients(XComplex[] params)
          Sets the coefficients of the polynomial to a copy of the data in the given params array.
 void XPolynomialComplex.setCoefficient(int index, XComplex value)
          Sets the coefficient at the given index to a copy of the given value.
 XComplex XPolynomialComplex.evaluate(XComplex x)
          Returns the value of the polynomial at the given x.
 void XPolynomialComplex.setParam(XComplex[] params)
          Sets the coefficients of the polynomial to a copy of the data in the given params array.
static XPolynomialComplex XPolynomialComplex.scale(XComplex f, XPolynomialComplex p)
          Returns a new polynomial equivalent mathematically to (f * p), that is, the polynomial obtained by multipying each coefficient of p by the complex scale factor f.
static String XComplex.toString(XComplex z)
          Returns a human readable String representing the data state of the complex number z as an annotated string.
static String XComplex.toStringData(XComplex z)
          Returns a human readable String representing the data state of the complex number z as a simple string.
static XComplex XComplex.copy(XComplex z)
          If z is null returns null otherwise returns a new copy of z via the constructor call new XComplex(z).
static double[] XComplex.toData(XComplex z)
          If z is null returns null otherwise returns a new double[] whose elements are x and y components of z.
static XComplex[] XComplex.copy(XComplex[] array)
          If array is null returns null otherwise returns a new XComplex[] that uses the method copy(XComplex) to copy the array items.
static double[][] XComplex.toData(XComplex[] array)
          If array is null returns null otherwise returns a new double[][] whose elements are obtained by using toData(XComplex) on the array items.
static XComplex XComplex.negate(XComplex z)
          Returns a new XComplex whose value is the negation of the given z.
static XComplex XComplex.scale(double s, XComplex z)
          Returns a new XComplex whose value is s * z.
static XComplex XComplex.conjugate(XComplex z)
          Returns a new XComplex whose value is the complex conjugate of the given z: in coordinates, if z is [x;y], then the new value returned is [x;-y].
static XComplex XComplex.invert(XComplex z)
          Returns a new XComplex whose value is the the multiplicative inverse of the given z.
 void XComplex.add(XComplex w)
          Sets this to (this + w).
static XComplex XComplex.add(XComplex z, XComplex w)
          Returns a new XComplex whose value is z + w.
 void XComplex.subtract(XComplex w)
          Sets this to (this - w).
static XComplex XComplex.subtract(XComplex z, XComplex w)
          Returns a new XComplex whose value is z - w.
 void XComplex.multiply(XComplex w)
          Sets this to (this * w).
static XComplex XComplex.multiply(XComplex z, XComplex w)
          Returns a new XComplex whose value is z * w.
 void XComplex.divide(XComplex w)
          Sets this to (this / w).
static XComplex XComplex.divide(XComplex z, XComplex w)
          Returns a new XComplex whose value is z / w.
 void XComplex.addProduct(XComplex z, XComplex w)
          Sets this to (this + z * w).
 void XComplex.subtractProduct(XComplex z, XComplex w)
          Sets this to (this - z * w).
static double XComplex.Re(XComplex z)
          Returns the real part of the complex number z using notation familiar to mathematicians.
static double XComplex.Im(XComplex z)
          Returns the imaginary part of the complex number z using notation familiar to mathematicians.
static double XComplex.abs(XComplex z)
          Returns the absolute value of the complex number z.
static double XComplex.maxabs(XComplex z)
          Returns the maximum of the absolute value of the x,y coordinates of the complex number z.
static boolean XComplex.isZero(XComplex z)
          Returns true if the given complex number z is null or zero.
static boolean XComplex.isAlmostZero(XComplex z, double epsilon)
          Returns true if the given complex number z is null or is almost zero relative to epsilon.
 boolean XComplex.isEqualTo(XComplex w)
          Returns true if the given complex number w is null and this is zero or if the given complex number w is non-null and this and w have equal x,y coordinates.
static boolean XComplex.isEqualTo(XComplex z, XComplex w)
          Returns true if both arguments are null, or if one argument is null and the other is zero, or if the two arguments have equal x,y coordinates.
 boolean XComplex.isAlmostEqualTo(XComplex w, double epsilon)
          Returns true if the given complex number w is null and this is almost zero relative to epsilon or if the given complex number w is non-null and the maximum of the absolute value of the differences in the x,y coordinates of w and this is less than or equal to epsilon.
static boolean XComplex.isAlmostEqualTo(XComplex z, XComplex w, double epsilon)
          Returns true if both arguments are null, or if one argument is null and the other is almost zero, or if the two arguments have almost equal x,y coordinates.
static XComplex XComplex.exp(XComplex z)
          Returns the complex exponential of the given z.
static XComplex XComplex.log(XComplex z)
          Returns the branch of the logarithm of z that is determined by the constraint that the imaginary part is between 0 and 2*pi, that is, 0<=Im(log(z))<2*pi.
static XComplex XComplex.sqrt(XComplex z)
          Returns one of the two complex square roots of z, specifically, the one whose angle in radians is between 0 and pi.
static XComplex XComplex.power(XComplex z, int n)
          Returns the n-th power of z, zn, using the given integer exponent n.
static XComplex XComplex.generalPower(XComplex z, double d)
          Returns the d-th power of z, zd, using the given double exponent d.
static XComplex XComplex.generalPower(XComplex z, XComplex w)
          Returns the w-th power of z, zw, using the given complex exponent w.
static String[] Strings.XComplexValuesToStrings(XComplex[] data)
          Returns an array of strings corresponding to the given array of XComplex.
 void ParameterComplex.OneParam.setParam(XComplex a)
           
 void ParameterComplex.TwoParam.setParam(XComplex a, XComplex b)
           
 void ParameterComplex.ThreeParam.setParam(XComplex a, XComplex b, XComplex c)
           
 void ParameterComplex.FourParam.setParam(XComplex a, XComplex b, XComplex c, XComplex d)
           
 void ParameterComplex.ArrayParam.setParam(XComplex[] params)
           
 void ParameterComplex.TwoArrayParam.setParam(XComplex[] params1, XComplex[] params2)
           
 void ParameterComplex.ArrayOfArrayParam.setParam(XComplex[][] params)
           
 XComplex FunctionComplex.OneArg.evaluate(XComplex x)
           
 XComplex FunctionComplex.TwoArg.evaluate(XComplex x, XComplex y)
           
 XComplex FunctionComplex.ThreeArg.evaluate(XComplex x, XComplex y, XComplex z)
           
 XComplex FunctionComplex.FourArg.evaluate(XComplex x, XComplex y, XComplex z, XComplex w)
           
 XComplex FunctionComplex.ArrayArg.evaluate(XComplex[] args)
           
 XComplex FunctionComplex.TwoArrayArg.evaluate(XComplex[] args1, XComplex[] args2)
           
 XComplex FunctionComplex.ArrayOfArrayArg.evaluate(XComplex[][] args)
           
static FunctionComplex.OneArg FC.constant(XComplex c)
          The constant function x --> c.
static FunctionComplex.OneArg FC.scale(XComplex a)
          The scale function x --> a * x.
static FunctionComplex.OneArg FC.translate(XComplex b)
          The translate function x --> x + b.
static FunctionComplex.OneArg FC.linear(XComplex a, XComplex b)
          The linear function x --> a * x + b.
static FunctionComplex.OneArg FC.xToPowerA(XComplex a)
          The function x --> x-to-the-power-a = XComplex.generalPower(x,a).
static FunctionComplex.OneArg FC.aToPowerX(XComplex a)
          The function x --> a-to-the-power-x = XComplex.generalPower(a,x).
static FunctionComplex.OneArg FC.generalPower(FunctionComplex.OneArg f, XComplex z)
          The function to compute the function f-to-the-power-z.
static FunctionComplex.OneArg FC.generalPower(XComplex z, FunctionComplex.OneArg f)
          The function to compute the function z-to-the-power-f.
 

Constructors in edu.neu.ccs with parameters of type XComplex
XPolynomialComplex(XComplex[] params)
          The constructor that sets the polynomial coefficients to a copy of the given params array.