Skip to content

Commit

Permalink
Commenting is good
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanvamsi3 committed Oct 27, 2017
1 parent 9ec867c commit 86cc153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions math_modules/newton_raphson.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ let nthRoot = (n, a) => {
else if (n === 3)
return Math.cbrt(a).toPrecision(6);

let preResult = Math.random() % 10;
let eps = Math.pow(10, -6);
let preResult = Math.random() % 10; // Initial guess
let eps = Math.pow(10, -6); // Lesser the eps value, more the accuracy

let delX = Number.MAX_SAFE_INTEGER;
let result;
Expand Down

0 comments on commit 86cc153

Please sign in to comment.