Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
latest working version
  • Loading branch information
jic13003 committed Dec 7, 2015
1 parent 47dd6e6 commit cdf88d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/jat/coreNOSA/cm/ThreeBody.java
Expand Up @@ -34,9 +34,9 @@ import jat.coreNOSA.math.MatrixVector.data.VectorN;

public class ThreeBody implements Derivatives //, Printable
{

private double G; // Gravitational constant
private double m1, m2, m3; // masses
protected double steps = 500.;
protected double G; // Gravitational constant
protected double m1, m2, m3; // masses

/**
* Method ThreeBody.
Expand Down
4 changes: 2 additions & 2 deletions src/jat/examples/ThreeBodyExample/ThreeBodyAPL.java
Expand Up @@ -17,9 +17,10 @@ public class ThreeBodyAPL extends ThreeBody implements FirstOrderDifferentialEqu
public ArrayList<Double> xsol = new ArrayList<Double>();
public ArrayList<Double> ysol = new ArrayList<Double>();
public ArrayList<Double> zsol = new ArrayList<Double>();

protected double[] randv[];
public ThreeBodyAPL(double G, double m1, double m2, double m3) {
super(G, m1, m2, m3);
this.randv();
}

@Override
Expand Down Expand Up @@ -77,5 +78,4 @@ public class ThreeBodyAPL extends ThreeBody implements FirstOrderDifferentialEqu
zsol.add(y[2]);
}
};

}

0 comments on commit cdf88d4

Please sign in to comment.