Skip to content

Commit dace7bf

Browse files
authored
changed step size in example for better precision
1 parent aa52eee commit dace7bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Maths/EulerMethod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function exampleEquation3 (x, y) {
8686
}
8787

8888
const points1 = eulerFull(0, 4, 0.1, 0, exampleEquation1)
89-
const points2 = eulerFull(0, 4, 1, 1, exampleEquation2)
89+
const points2 = eulerFull(0, 4.1, 0.1, 1, exampleEquation2)
9090
const points3 = eulerFull(0, 0.1, 0.025, 1, exampleEquation3)
9191

9292
console.log(points1)

0 commit comments

Comments
 (0)