// ComplexPolynomial.java // A complex polynomial is represented by // an array of complex coefficients c[0], c[1], ... , c[n] // The value of a complex polynomial for some value 'z' is // P(z) = c[0] + c[1]*z + c[2]*z^2 + c[3]*z^3 + ... + c[n]*z^n // where z^3 represents pow(z,3) and P is an nth order polynomial public class ComplexPolynomial { Complex P[]; public ComplexPolynomial() { } public ComplexPolynomial(ComplexPolynomial T) { int n = T.P.length; P = new Complex[n]; for(int i=0; i