From d17e6d08d8324bebae18fa562c35b7be338117a7 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Mon, 13 May 2019 10:03:19 +0300 Subject: [PATCH] Fix definite integral calculation for distance traveled graph --- eos/graph/fitDistanceTime.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eos/graph/fitDistanceTime.py b/eos/graph/fitDistanceTime.py index 253c37e08..30ac1f0ae 100644 --- a/eos/graph/fitDistanceTime.py +++ b/eos/graph/fitDistanceTime.py @@ -22,5 +22,7 @@ class FitDistanceTimeGraph(Graph): agility = self.fit.ship.getModifiedItemAttr('agility') # Definite integral of: # https://wiki.eveuniversity.org/Acceleration#Mathematics_and_formulae - distance = maxSpeed * time + (maxSpeed * agility * mass * math.exp((-time * 1000000) / (agility * mass)) / 1000000) + distance_t = maxSpeed * time + (maxSpeed * agility * mass * math.exp((-time * 1000000) / (agility * mass)) / 1000000) + distance_0 = maxSpeed * 0 + (maxSpeed * agility * mass * math.exp((-0 * 1000000) / (agility * mass)) / 1000000) + distance = distance_t - distance_0 return distance