about summary refs log tree commit diff
diff options
context:
space:
mode:
authoremile <hanemile@protonmail.com>2018-10-08 15:54:56 +0200
committeremile <hanemile@protonmail.com>2018-10-08 15:54:56 +0200
commit52ad311fb481357dad9bfd1386630be10122b215 (patch)
treebb8161a56e703d9d96f7ff5f00dc566f36222007
parent59f43b4498fc35a52eee859db07f6b15fc4e2ab3 (diff)
Using the CalcAllForces function to calculate all the forces in the starsSlice.
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index b71f38d..b6c0aeb 100644
--- a/main.go
+++ b/main.go
@@ -18,5 +18,5 @@ func main() {
 	fmt.Println(starsSlice)
 
 	// Calculate the forces acting inbetween all the stars in the starsSlice slice and star nr 0 in the starsSlice slice
-	fmt.Println(forces.Forces(starsSlice, 0))
+	fmt.Println(forces.CalcAllForces(starsSlice))
 }