(t, b, c, d)
| 80 | |
| 81 | |
| 82 | def INOUT_EXP(t, b, c, d): |
| 83 | t = float(t) |
| 84 | b = float(b) |
| 85 | c = float(c) |
| 86 | d = float(d) |
| 87 | |
| 88 | t1 = t / (d / 2) |
| 89 | |
| 90 | if t == 0: |
| 91 | return b |
| 92 | elif t == d: |
| 93 | return b + c |
| 94 | elif t1 < 1: |
| 95 | return c / 2 * math.pow(2, 10 * (t1 - 1)) + b - c * 0.0005 |
| 96 | else: |
| 97 | return c / 2 * 1.0005 * (-math.pow(2, -10 * (t1 - 1)) + 2) + b |
nothing calls this directly
no outgoing calls
no test coverage detected