// Get the constant phase element impedance
public static Complex constantPhaseElementImpedance(double cpeCoeff, double alpha, double omega){
Complex jOmega = new Complex(0.0D, omega);
Complex jOmegaAlpha = Complex.pow(jOmega,-alpha);
Complex coeff = new Complex(cpeCoeff, 0.0D);
return coeff.times(jOmegaAlpha);
}
// Calculate the impedance of two impedances in series
public static Complex impedanceInSeries(Complex z1, Complex z2){
return z1.plus(z2);