Constructors

public Polynomial(int n)


public Polynomial(double[] a)


public Polynomial(float[] a)


public Polynomial(long[] a)


public Polynomial(int[] a)


public Polynomial(ArrayList<Object> a)


public Polynomial(double a)


public Polynomial(double a, double b)


public Polynomial(double a, double b, double c)


public Polynomial(double a, double b, double c, double d)


Set Values

public void resetPoly(double[] aa)


public void resetPoly(ArrayList<Object> aa)


public void resetCoeff(int i, double aa)



public static Polynomial rootsToPoly(double[] roots)

Get Values

public double[] coefficientsCopy()


public double[] coefficientsReference()


public double getCoefficient(int i)


public int getDeg()


Deep Copy

public Polynomial copy()

public static Polynomial copy(Polynomial aa)

public Object clone()


Check if highest order coefficient is zero

public Polynomial reducePoly()

public static Polynomial reducePoly(Polynomial aa)

Convert Polynomial to a String

public String toString()


Convert Polynomial to a ComplexPoly

public ComplexPoly toComplexPoly()


sTransfom of a polynomial

public ArrayList<ComplexPoly> sTransform()

public static ArrayList<ComplexPoly> sTransform(Polynomial poly)


public static ArrayList<ComplexPoly> sTransform(double[] coeff)

Print to the screen

public void print()


public void println()


Write to a Text File

public void printToText(String title)


public void printToText()


Addition

public Polynomial plus(Polynomial b)

public static Polynomial plus(Polynomial a, Polynomial b)

public Polynomial plus(double b)

public static Polynomial plus(Polynomial a, double b)

public Polynomial plus(int b)

public static Polynomial plus(Polynomial a, int b)

Subtraction

public Polynomial minus(Polynomial b)

public static Polynomial minus(Polynomial a, Polynomial b)

public Polynomial minus(double b)

public static Polynomial minus(Polynomial a, double b)

public Polynomial minus(int b)

public static Polynomial minus(Polynomial a, int b)

Multiplication

public Polynomial times(Polynomial b)

public static Polynomial times(Polynomial a, Polynomial b)

public Polynomial times(double b)

public static Polynomial times(Polynomial a, double b)

public Polynomial times(int b)

public static Polynomial times(Polynomial a, int b)

nth derivative

public Polynomial nthDerivative(int n)


Evaluate Polynomial or a Derivative

public double evaluate(double x)


public double nthDerivEvaluate(int n, double x)


Equality test

public boolean equals(Polynomial cp)


public boolean isEqual(Polynomial cp)

public static boolean isEqual(Polynomial cp1, Polynomial cp2)

Roots

public Complex[] roots()


public Complex[] roots(boolean polish)


public Complex[] roots(double estx)


public Complex[] roots(Complex estx)


public Complex[] roots(boolean polish, double estx)


public Complex[] roots(boolean polish, Complex estx)



public static Complex[] quadratic(double a, double b, double c)


public static Complex[] cubic(double a, double b, double c, double d)

public Complex[] laguerreAll()


public Complex[] laguerreAll(boolean polish)


public Complex[] laguerreAll(double estx)


public Complex[] laguerreAll(Complex estx)


public Complex[] laguerreAll(boolean polish, double estx)


public Complex[] laguerreAll(boolean polish, Complex estx)



public static Complex laguerre(double estx, double[] coeff, int deg)


public static Complex laguerre(Complex estx, double[] coeff, int deg)


public static Polynomial rootsToPoly(double[] roots)
