From 5e310635bc9c797c44ebe54c853bde7e896bb8a5 Mon Sep 17 00:00:00 2001 From: rog13002 Date: Tue, 8 Dec 2015 21:27:11 -0400 Subject: [PATCH] we made the integral work --- .classpath | 42 +++++++++---------- .../ThreeBodyExample/ThreeBodyAPL.java | 6 ++- .../ThreeBodyExample/ThreeBodyExample.java | 2 +- 3 files changed, 27 insertions(+), 23 deletions(-) diff --git a/.classpath b/.classpath index d27e230..d02377a 100644 --- a/.classpath +++ b/.classpath @@ -1,21 +1,21 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + diff --git a/src/jat/examples/ThreeBodyExample/ThreeBodyAPL.java b/src/jat/examples/ThreeBodyExample/ThreeBodyAPL.java index aa379c1..d7cffbd 100644 --- a/src/jat/examples/ThreeBodyExample/ThreeBodyAPL.java +++ b/src/jat/examples/ThreeBodyExample/ThreeBodyAPL.java @@ -38,7 +38,11 @@ public class ThreeBodyAPL extends ThreeBody implements FirstOrderDifferentialEqu @Override public void computeDerivatives(double t, double[] y, double[] yDot) { // returns the derivatives of the ThreeBody problem - yDot = this.derivs(t, y); + double [] yDot_temp = this.derivs(t, y); + for (int i=0; i