Slightly adjust error bound for nonlinear tests.

This commit is contained in:
Antonio Sánchez 2024-04-25 18:04:49 +00:00
parent 1c8c734c8b
commit 42aa3d17cd
2 changed files with 2 additions and 2 deletions

View File

@ -1029,7 +1029,7 @@ void testNistLanczos1(void) {
// VERIFY_IS_EQUAL(info, 2);
LM_CHECK_N_ITERS(lm, 9, 8);
// check norm^2
VERIFY(lm.fvec.squaredNorm() <= 1.4307867721E-25);
VERIFY(lm.fvec.squaredNorm() <= 1.44E-25);
// check x
VERIFY_IS_APPROX(x[0], 9.5100000027E-02);
VERIFY_IS_APPROX(x[1], 1.0000000001E+00);

View File

@ -692,7 +692,7 @@ void testNistLanczos1(void) {
// VERIFY_IS_EQUAL(lm.nfev(), 9);
// VERIFY_IS_EQUAL(lm.njev(), 8);
// check norm^2
VERIFY(lm.fvec().squaredNorm() <= 1.4307867721E-25);
VERIFY(lm.fvec().squaredNorm() <= 1.44E-25);
// check x
VERIFY_IS_APPROX(x[0], 9.5100000027E-02);
VERIFY_IS_APPROX(x[1], 1.0000000001E+00);