Let Z* be the expression Zin with s replaced by -jω; Z* is the conjugate of Z.
Then |Zin(jω)| is SQRT((Z)(Z*))
Multiply the numerator of Z by the conjugate of the denominator of Z. Call this expression X. Let Im() mean Imaginary part () and Re mean Real part ().