summaryrefslogtreecommitdiff
path: root/src/elementaryFunctions/acosh/testDoubleAcosh.c
diff options
context:
space:
mode:
authorjofret2008-05-14 15:35:36 +0000
committerjofret2008-05-14 15:35:36 +0000
commit40729e999dcd8b0c8b4823b8381de0ec0006c9d8 (patch)
tree8b8ea4f205f272549eeccb99f20a31afed94bace /src/elementaryFunctions/acosh/testDoubleAcosh.c
parente74160538e479fc6b65b959e0203c20d57096ba5 (diff)
downloadscilab2c-40729e999dcd8b0c8b4823b8381de0ec0006c9d8.tar.gz
scilab2c-40729e999dcd8b0c8b4823b8381de0ec0006c9d8.tar.bz2
scilab2c-40729e999dcd8b0c8b4823b8381de0ec0006c9d8.zip
acosh Release
WARNING : Results may differ from scilab when calling on real values less than 1.
Diffstat (limited to 'src/elementaryFunctions/acosh/testDoubleAcosh.c')
-rw-r--r--src/elementaryFunctions/acosh/testDoubleAcosh.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/elementaryFunctions/acosh/testDoubleAcosh.c b/src/elementaryFunctions/acosh/testDoubleAcosh.c
index 89dc8784..8dabec28 100644
--- a/src/elementaryFunctions/acosh/testDoubleAcosh.c
+++ b/src/elementaryFunctions/acosh/testDoubleAcosh.c
@@ -15,6 +15,7 @@
void dacoshsTest(void) {
printf(">> Double scalar\n");
printf("dacoshs(0) = %e\n", dacoshs(0.0));
+ printf("dacoshs(0.1) = %e\n", dacoshs(0.1));
printf("dacoshs(PI) = %e\n", dacoshs(DPI));
printf("dacoshs(PI/2) = %e\n", dacoshs(DPI/2));
printf("dacoshs(PI/3) = %e\n", dacoshs(DPI/3));
@@ -28,6 +29,7 @@ void dacoshsTest(void) {
}
void zacoshsTest(void) {
+ doubleComplex dot_one = DoubleComplex(0.1, 0.0);
doubleComplex pi_pi = DoubleComplex(DPI, DPI);
doubleComplex pi_2_pi_2 = DoubleComplex(DPI/2, DPI/2);
doubleComplex pi_2_pi_3 = DoubleComplex(DPI/2, DPI/3);
@@ -35,6 +37,8 @@ void zacoshsTest(void) {
doubleComplex out;
printf(">> Double Complex scalar\n");
+ out = zacoshs(dot_one);
+ printf("zacoshs(0.1 + I*0) = %e + I * %e\n", zreals(out), zimags(out));
out = zacoshs(pi_pi);
printf("zacoshs(PI + I*PI) = %e + I * %e\n", zreals(out), zimags(out));
out = zacoshs(pi_2_pi_2);