# HG changeset patch # User Rik # Date 1652296448 25200 # Node ID 4298af839d2025c192bdaa726095a4f1903b86bb # Parent 1fcfe94439179e8137e0a0c8bc9ead3c8abc262a quadgk.m: Change stopping criterion to "<=" from just "<". * NEWS.8.md: Announce change in Matlab Compatibility section. * quadgk.m: Change stopping criterion to use "<=". diff -r 1fcfe9443917 -r 4298af839d20 etc/NEWS.8.md --- a/etc/NEWS.8.md Wed May 11 11:54:57 2022 -0700 +++ b/etc/NEWS.8.md Wed May 11 12:14:08 2022 -0700 @@ -36,6 +36,10 @@ - `format` now accepts the option "default", which is equivalent to calling `format` without any options to reset the default state. + +- `quadgk` now stops iterating when `error <= tolerance` while the previous + condition was `error < tolerance`. + ### Alphabetical list of new functions added in Octave 8 diff -r 1fcfe9443917 -r 4298af839d20 scripts/general/quadgk.m --- a/scripts/general/quadgk.m Wed May 11 11:54:57 2022 -0700 +++ b/scripts/general/quadgk.m Wed May 11 12:14:08 2022 -0700 @@ -359,7 +359,7 @@ tol = max (abstol, reltol .* abs (q0)); ## If the global error estimate is met then exit - if (err0 < tol) + if (err0 <= tol) q = q0; err = err0; break;