2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Coverage: logaddexp test case.

This commit is contained in:
jzmaddock
2025-05-05 13:12:50 +01:00
parent c0a97eda31
commit aa1f9979d0

View File

@@ -41,8 +41,10 @@ void test()
Real spot1 = static_cast<Real>(exp(x1));
Real spot2 = static_cast<Real>(exp(x2));
Real spot12 = logaddexp(x1, x2);
Real spot21 = logaddexp(x2, x1);
CHECK_ULP_CLOSE(log(spot1 + spot2), spot12, 1);
CHECK_ULP_CLOSE(log(spot1 + spot2), spot21, 1);
}
int main (void)