// Calculate the impedance of a resistor and an inductor in parallel
public static Complex rInParallelWithL(double res, double ind, double omega){
Complex zL = new Complex(0.0D, ind*omega);
Complex zR = new Complex(res, 0.0D);
Complex ret = zL.times(zR);
return ret.over(zL.plus(zR));
}
// Calculate the impedance of a capacitor and an inductor in parallel
public static Complex cInParallelWithL(double cap, double ind, double omega){
Complex z1 = new Complex(0.0D, -1.0D/(cap*omega));