aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-08-17 22:42:00 +0000
committerUlrich Drepper <drepper@redhat.com>1999-08-17 22:42:00 +0000
commit23f7e58e0da975e973c69b980e0facb0e682c664 (patch)
tree8aba795018200a7bd30c646eddfc9c389815ba62
parentf1b1085824c10bd5a8ab6aa460d2d8952199d8fe (diff)
downloadglibc-23f7e58e0da975e973c69b980e0facb0e682c664.tar
glibc-23f7e58e0da975e973c69b980e0facb0e682c664.tar.gz
glibc-23f7e58e0da975e973c69b980e0facb0e682c664.tar.bz2
glibc-23f7e58e0da975e973c69b980e0facb0e682c664.zip
Update.
1999-08-17 Andreas Jaeger <aj@arthur.rhein-neckar.de> * math/libm-test.c (erfc_test): Add test for example from PR libc/1259. (erf_test): Likewise.
-rw-r--r--ChangeLog6
-rw-r--r--math/libm-test.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5b3641da81..f92b0b8bef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-08-17 Andreas Jaeger <aj@arthur.rhein-neckar.de>
+
+ * math/libm-test.c (erfc_test): Add test for example from PR
+ libc/1259.
+ (erf_test): Likewise.
+
1999-08-17 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/ieee754/dbl-64/s_erf.c: Correct type in performance increase
diff --git a/math/libm-test.c b/math/libm-test.c
index a821c88e9b..e989b2073b 100644
--- a/math/libm-test.c
+++ b/math/libm-test.c
@@ -1113,6 +1113,9 @@ erf_test (void)
check_eps ("erf (0.7) == 0.6778011938...", FUNC(erf) (0.7),
0.67780119383741847297L, CHOOSE (0, 2e-16, 0));
+
+ check ("erf (1.2) == 0.9103139782...", FUNC(erf) (1.2),
+ 0.91031397822963538024L);
}
@@ -1132,6 +1135,9 @@ erfc_test (void)
check_eps ("erfc (0.7) == 0.3221988061...", FUNC(erfc) (0.7),
0.32219880616258152702L, CHOOSE (0, 6e-17, 0));
+
+ check_eps ("erfc (1.2) == 0.0896860218...", FUNC(erfc) (1.2),
+ 0.089686021770364619762L, CHOOSE (0, 0, 8e-9));
}