We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3a9936 commit 2c67748Copy full SHA for 2c67748
gausslegendre.h
@@ -41,7 +41,7 @@ class LegendrePolynomial {
41
newtonRaphsonRatio = result.value/result.derivative;
42
root -= newtonRaphsonRatio;
43
result = calculatePolynomialValueAndDerivative(root);
44
- } while (fabs(ratio) > EPSILON);
+ } while (fabs(newtonRaphsonRatio) > EPSILON);
45
46
mRoot[step] = root;
47
mWeight[step] = 2.0/((1-root*root)*result.derivative*result.derivative);
0 commit comments