summaryrefslogtreecommitdiff
path: root/src/elementaryFunctions/atanh
diff options
context:
space:
mode:
authortorset2009-02-03 08:59:23 +0000
committertorset2009-02-03 08:59:23 +0000
commit690c37203144bce5cbfa77897a7302497affa6c5 (patch)
treec5ac0e384e5740593d83ce75296b27aedf19334c /src/elementaryFunctions/atanh
parentf34494b429d07006a7ba64b59e5f6be339990ee4 (diff)
downloadscilab2c-690c37203144bce5cbfa77897a7302497affa6c5.tar.gz
scilab2c-690c37203144bce5cbfa77897a7302497affa6c5.tar.bz2
scilab2c-690c37203144bce5cbfa77897a7302497affa6c5.zip
Update
Diffstat (limited to 'src/elementaryFunctions/atanh')
-rw-r--r--src/elementaryFunctions/atanh/testDoubleAtanh.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/elementaryFunctions/atanh/testDoubleAtanh.c b/src/elementaryFunctions/atanh/testDoubleAtanh.c
index a876ed33..62f383fe 100644
--- a/src/elementaryFunctions/atanh/testDoubleAtanh.c
+++ b/src/elementaryFunctions/atanh/testDoubleAtanh.c
@@ -550,6 +550,10 @@ void zatanhsTest() {
assert( ( (fabs(zreals(out)-resR[i])) / (fabs(zreals(out))) ) <1e-15);
assert( ( (fabs(zimags(out)-resI[i])) / (fabs(zimags(out))) ) <1e-15);
}
+ out=zatanhs((DoubleComplex(2.0/10.0,11.0/10.0)));
+ assert( ( (fabs(zreals(out)-0.0898435002269743487879)) / (fabs(zreals(out))) ) <1e-15);
+ assert( ( (fabs(zimags(out)-0.8419736541926906570055)) / (fabs(zimags(out))) ) <1e-16);
+
}
void datanhaTest(void) {