Skip to content

Commit 2c67748

Browse files
authored
Update gausslegendre.h
1 parent a3a9936 commit 2c67748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gausslegendre.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class LegendrePolynomial {
4141
newtonRaphsonRatio = result.value/result.derivative;
4242
root -= newtonRaphsonRatio;
4343
result = calculatePolynomialValueAndDerivative(root);
44-
} while (fabs(ratio) > EPSILON);
44+
} while (fabs(newtonRaphsonRatio) > EPSILON);
4545

4646
mRoot[step] = root;
4747
mWeight[step] = 2.0/((1-root*root)*result.derivative*result.derivative);

0 commit comments

Comments
 (0)