diff --git a/core/src/net/sf/openrocket/util/ArrayUtils.java b/core/src/net/sf/openrocket/util/ArrayUtils.java index 8f0db5308..7d373096a 100644 --- a/core/src/net/sf/openrocket/util/ArrayUtils.java +++ b/core/src/net/sf/openrocket/util/ArrayUtils.java @@ -95,7 +95,7 @@ public class ArrayUtils { * dt is the time step between each array value */ public static double trapz(double[] y, double dt){ - double stop = y.length * dt; + double stop = (y.length -1) * dt; if (y.length <= 1 || dt <= 0) return 0;