From dace7bf652c663a19e4ec8c0801502094f22138b Mon Sep 17 00:00:00 2001 From: algobytewise Date: Fri, 5 Mar 2021 21:14:35 +0530 Subject: [PATCH] changed step size in example for better precision --- Maths/EulerMethod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Maths/EulerMethod.js b/Maths/EulerMethod.js index 7f292d777..6cb077b4f 100644 --- a/Maths/EulerMethod.js +++ b/Maths/EulerMethod.js @@ -86,7 +86,7 @@ function exampleEquation3 (x, y) { } const points1 = eulerFull(0, 4, 0.1, 0, exampleEquation1) -const points2 = eulerFull(0, 4, 1, 1, exampleEquation2) +const points2 = eulerFull(0, 4.1, 0.1, 1, exampleEquation2) const points3 = eulerFull(0, 0.1, 0.025, 1, exampleEquation3) console.log(points1)