MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / calculateCapAmount

Function calculateCapAmount

graphs/data/fitCapacitor/getter.py:190–192  ·  view source on GitHub ↗
(maxCapAmount, capRegenTime, capAmountT0, time)

Source from the content-addressed store, hash-verified

188
189
190def 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
195def calculateCapRegen(maxCapAmount, capRegenTime, currentCapAmount):

Callers 5

plotCapRegenMethod · 0.85
getRangeMethod · 0.85
getPointMethod · 0.85
_calculatePointMethod · 0.85
_calculatePointMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected