Skip to content

Commit

Permalink
first attempt in trying to understand and implement the threebody
Browse files Browse the repository at this point in the history
problem. minor edits to the threebody example class
  • Loading branch information
jic13003 authored and jic13003 committed Dec 2, 2015
1 parent 36c17cd commit 9b57a20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/jat/examples/ThreeBodyExample/ThreeBodyAPL.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public void computeDerivatives(double arg0, double[] arg1, double[] arg2) {

@Override
public int getDimension() {
// TODO Auto-generated method stub
// returns a dimension of 6
return 6;
}

}
6 changes: 3 additions & 3 deletions src/jat/examples/ThreeBodyExample/ThreeBodyExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ public static void main(String[] args) {
// TODO Auto-generated method stub
ThreeBodyExample x = new ThreeBodyExample();

// create a TwoBody orbit using orbit elements
// create a ThreeBody orbit using three masses and gravitational con
ThreeBodyAPL sat = new ThreeBodyAPL(10, 0.3, 1.0, 2.0);

double[] y = sat.randv();
//initialize VectorN elements
VectorN randv = new VectorN()

ArrayRealVector v = new ArrayRealVector(y);

Expand Down

0 comments on commit 9b57a20

Please sign in to comment.