@staticmethod
def get_parallel_resistance(rs, x):
    """x : reactance (ohm)
rs : series resistance (ohm)
return parallel resistance Rp=1/G (ohm) if not infinite"""
    if rs == 0:
        return None
    return (rs * rs + x * x) / rs
