diff --git a/impedance/models/circuits/elements.py b/impedance/models/circuits/elements.py index 9bb860e..dc520a9 100644 --- a/impedance/models/circuits/elements.py +++ b/impedance/models/circuits/elements.py @@ -345,6 +345,7 @@ def T(p, f): .. math:: Z = A\\frac{\\coth{\\beta}}{\\beta} + B\\frac{1}{\\beta\\sinh{\\beta}} + + \\frac{B}{2} where @@ -377,7 +378,7 @@ def T(p, f): else: sinh.append(1e10) - Z = A / (beta * np.tanh(beta)) + B / (beta * np.array(sinh)) + Z = A / (beta * np.tanh(beta)) + B / (beta * np.array(sinh)) + B / 2 return Z diff --git a/impedance/tests/test_circuit_elements.py b/impedance/tests/test_circuit_elements.py index c481f5b..b7aa086 100644 --- a/impedance/tests/test_circuit_elements.py +++ b/impedance/tests/test_circuit_elements.py @@ -59,9 +59,9 @@ def test_each_element(): (0.35594139 - 0.16491599j), ], "T": [ - (1.00041 - 0.00837309j), - (0.0156037 - 0.114062j), - (0.00141056 - 0.00141039j), + (1.10041251-0.00837309j), + (0.11560368-0.11406217j), + (0.10141056-0.00141039j), ], "K": [ (0.099999842086579 - 0.000125663507704j),