def ele_Q(w, q, n):
    """
    :param
        w: Angular frequency [1/s], (s:second)
        q: CPE coefficient, Constant phase element [s^n/ohm]
            or named as CPE_T
        n: Constant phase elelment exponent [-]
            or name as CPE_P
    :return:
        Zcpe: Impedance of a Constant phase element
    """
    z = 1 / (q * ((1j * w) ** n))
    return z