(maxCapAmount, capRegenTime, capAmountT0, time)
| 188 | |
| 189 | |
| 190 | def calculateCapAmount(maxCapAmount, capRegenTime, capAmountT0, time): |
| 191 | # https://wiki.eveuniversity.org/Capacitor#Capacitor_recharge_rate |
| 192 | return maxCapAmount * (1 + math.exp(5 * -time / capRegenTime) * (math.sqrt(capAmountT0 / maxCapAmount) - 1)) ** 2 |
| 193 | |
| 194 | |
| 195 | def calculateCapRegen(maxCapAmount, capRegenTime, currentCapAmount): |
no outgoing calls
no test coverage detected