diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-03-01 21:15:38 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-03-01 21:15:38 +0000 |
commit | 7b1902cb3e64d340247638a8781770c3a4d850ce (patch) | |
tree | dc06e102ffa43897515baa0d67cbb944b7a45d77 /math | |
parent | f775c276fd1f89cc9d561db0890a356e7d6e50b8 (diff) | |
download | glibc-7b1902cb3e64d340247638a8781770c3a4d850ce.tar.gz glibc-7b1902cb3e64d340247638a8781770c3a4d850ce.tar.xz glibc-7b1902cb3e64d340247638a8781770c3a4d850ce.zip |
Improve erfc accuracy.
Diffstat (limited to 'math')
-rw-r--r-- | math/libm-test.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc index 3510b61303..9f7d4896d8 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -2478,12 +2478,18 @@ erfc_test (void) TEST_f_f (erfc, 0.75L, 0.288844366346484868401062165408589223L); TEST_f_f (erfc, 1.25L, 0.0770998717435417698634765188027188596L); TEST_f_f (erfc, 2.0L, 0.00467773498104726583793074363274707139L); + TEST_f_f (erfc, 0x1.f7303cp+1L, 2.705500297238986897105236321218861842255e-8L); TEST_f_f (erfc, 4.125L, 0.542340079956506600531223408575531062e-8L); + TEST_f_f (erfc, 0x1.ffa002p+2L, 1.233585992097580296336099501489175967033e-29L); + TEST_f_f (erfc, 0x1.ffffc8p+2L, 1.122671365033056305522366683719541099329e-29L); #ifdef TEST_LDOUBLE /* The result can only be represented in long double. */ # if LDBL_MIN_10_EXP < -319 TEST_f_f (erfc, 27.0L, 0.523704892378925568501606768284954709e-318L); # endif +# if LDBL_MANT_DIG >= 106 + TEST_f_f (erfc, 0x1.ffff56789abcdef0123456789a8p+2L, 1.123161416304655390092138725253789378459e-29L); +# endif #endif END (erfc); |