diff options
author | jofret | 2008-04-21 09:17:16 +0000 |
---|---|---|
committer | jofret | 2008-04-21 09:17:16 +0000 |
commit | 55d656c04e942577070c866b9c10e600bb8b352d (patch) | |
tree | 08e02d7b068c227859cb42bb241a5e28c8be41ac /src/elementaryFunctions/exp10/testExp10.c | |
parent | 734e3acf716a616781097abad96ae95ce4a9dd7c (diff) | |
download | scilab2c-55d656c04e942577070c866b9c10e600bb8b352d.tar.gz scilab2c-55d656c04e942577070c866b9c10e600bb8b352d.tar.bz2 scilab2c-55d656c04e942577070c866b9c10e600bb8b352d.zip |
Double vs Float better management. Enable psycho warnings.
Diffstat (limited to 'src/elementaryFunctions/exp10/testExp10.c')
-rw-r--r-- | src/elementaryFunctions/exp10/testExp10.c | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/src/elementaryFunctions/exp10/testExp10.c b/src/elementaryFunctions/exp10/testExp10.c deleted file mode 100644 index e6b0c9d1..00000000 --- a/src/elementaryFunctions/exp10/testExp10.c +++ /dev/null @@ -1,66 +0,0 @@ -/* -** -*- C -*- -** -** testExp10.c -** Made by Bruno JOFRET <bruno.jofret@inria.fr> -** -** Started on Fri Dec 8 15:05:44 2006 jofret -** Last update Thu Sep 6 16:56:42 2007 bruno -** -** Copyright INRIA 2006 -*/ - -#include "testExp10.h" - -#define PI 3.1415826535 - -void sexp10sTest(void) { - printf(">> Float scalar\n"); - printf("sexp10s(0) = %f\n", sexp10s((float) 0)); - printf("sexp10s(PI) = %f\n", sexp10s(PI)); - printf("sexp10s(PI/2) = %f\n", sexp10s(PI/2)); - printf("sexp10s(PI/3) = %f\n", sexp10s(PI/3)); - printf("sexp10s(PI/4) = %f\n", sexp10s(PI/4)); - printf("sexp10s(PI/6) = %f\n", sexp10s(PI/6)); - printf("sexp10s(-PI) = %f\n", sexp10s(-PI)); - printf("sexp10s(-PI/2) = %f\n", sexp10s(-PI/2)); - printf("sexp10s(-PI/3) = %f\n", sexp10s(-PI/3)); - printf("sexp10s(-PI/4) = %f\n", sexp10s(-PI/4)); - printf("sexp10s(-PI/6) = %f\n", sexp10s(-PI/6)); -} - -void dexp10sTest(void) { - printf(">> Double scalar\n"); - printf("dexp10s(0) = %e\n", dexp10s((double) 0)); - printf("dexp10s(PI) = %e\n", dexp10s(PI)); - printf("dexp10s(PI/2) = %e\n", dexp10s(PI/2)); - printf("dexp10s(PI/3) = %e\n", dexp10s(PI/3)); - printf("dexp10s(PI/4) = %e\n", dexp10s(PI/4)); - printf("dexp10s(PI/6) = %e\n", dexp10s(PI/6)); - printf("dexp10s(-PI) = %e\n", dexp10s(-PI)); - printf("dexp10s(-PI/2) = %e\n", dexp10s(-PI/2)); - printf("dexp10s(-PI/3) = %e\n", dexp10s(-PI/3)); - printf("dexp10s(-PI/4) = %e\n", dexp10s(-PI/4)); - printf("dexp10s(-PI/6) = %e\n", dexp10s(-PI/6)); -} - -int testExp10(void) { - printf("\n>>>> Exp10onential Tests\n"); - sexp10sTest(); - dexp10sTest(); - /* FIXME : Implement some test here ... */ - /* - cexp10sTest(); - zexp10sTest(); - sexp10aTest(); - dexp10aTest(); - cexp10aTest(); - zexp10aTest(); - */ - return 0; -} - -int main(void) { - assert(testExp10() == 0); - return 0; -} |