summaryrefslogtreecommitdiff
path: root/src/elementaryFunctions/atanh/testAtanh.c
diff options
context:
space:
mode:
authorjofret2008-04-21 08:32:37 +0000
committerjofret2008-04-21 08:32:37 +0000
commitac3ff3769d4abdc84c9bbf507fdafa3dbc137293 (patch)
tree7ca80bef612178c18fd7cd057e781ba6889f5d30 /src/elementaryFunctions/atanh/testAtanh.c
parent68eb0059d5b46791326e4e7625604da189b86e3d (diff)
downloadscilab2c-ac3ff3769d4abdc84c9bbf507fdafa3dbc137293.tar.gz
scilab2c-ac3ff3769d4abdc84c9bbf507fdafa3dbc137293.tar.bz2
scilab2c-ac3ff3769d4abdc84c9bbf507fdafa3dbc137293.zip
Double vs Float better management. Enable psycho warnings.
Diffstat (limited to 'src/elementaryFunctions/atanh/testAtanh.c')
-rw-r--r--src/elementaryFunctions/atanh/testAtanh.c64
1 files changed, 0 insertions, 64 deletions
diff --git a/src/elementaryFunctions/atanh/testAtanh.c b/src/elementaryFunctions/atanh/testAtanh.c
deleted file mode 100644
index 97651729..00000000
--- a/src/elementaryFunctions/atanh/testAtanh.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
-** -*- C -*-
-**
-** testAtanh.c
-** Made by Bruno JOFRET <bruno.jofret@inria.fr>
-**
-** Started on Fri Dec 8 15:05:44 2006 jofret
-** Last update Thu Sep 6 15:09:45 2007 bruno
-**
-** Copyright INRIA 2006
-*/
-
-#include "testAtanh.h"
-
-void satanhsTest() {
- printf(">> Float scalar\n");
- printf("satanhs(0) = %f\n", satanhs((float) 0));
- printf("satanhs(PI) = %f\n", satanhs(PI));
- printf("satanhs(PI/2) = %f\n", satanhs(PI/2));
- printf("satanhs(PI/3) = %f\n", satanhs(PI/3));
- printf("satanhs(PI/4) = %f\n", satanhs(PI/4));
- printf("satanhs(PI/6) = %f\n", satanhs(PI/6));
- printf("satanhs(-PI) = %f\n", satanhs(-PI));
- printf("satanhs(-PI/2) = %f\n", satanhs(-PI/2));
- printf("satanhs(-PI/3) = %f\n", satanhs(-PI/3));
- printf("satanhs(-PI/4) = %f\n", satanhs(-PI/4));
- printf("satanhs(-PI/6) = %f\n", satanhs(-PI/6));
-}
-
-void datanhsTest() {
- printf(">> Double scalar\n");
- printf("datanhs(0) = %e\n", datanhs((double) 0));
- printf("datanhs(PI) = %e\n", datanhs(PI));
- printf("datanhs(PI/2) = %e\n", datanhs(PI/2));
- printf("datanhs(PI/3) = %e\n", datanhs(PI/3));
- printf("datanhs(PI/4) = %e\n", datanhs(PI/4));
- printf("datanhs(PI/6) = %e\n", datanhs(PI/6));
- printf("datanhs(-PI) = %e\n", datanhs(-PI));
- printf("datanhs(-PI/2) = %e\n", datanhs(-PI/2));
- printf("datanhs(-PI/3) = %e\n", datanhs(-PI/3));
- printf("datanhs(-PI/4) = %e\n", datanhs(-PI/4));
- printf("datanhs(-PI/6) = %e\n", datanhs(-PI/6));
-}
-
-int testAtanh() {
- printf("\n>>>> Atanhgeant Tests\n");
- satanhsTest();
- datanhsTest();
- /* FIXME : Implement some test here ... */
- /*
- catanhsTest();
- zatanhsTest();
- satanhaTest();
- datanhaTest();
- catanhaTest();
- zatanhaTest();
- */
- return 0;
-}
-
-int main() {
- assert(testAtanh() == 0);
- return 0;
-}