diff options
author | jofret | 2008-06-16 15:32:15 +0000 |
---|---|---|
committer | jofret | 2008-06-16 15:32:15 +0000 |
commit | 5dcc4dcac910a4fc82d037e899f960ef2dc7cf3f (patch) | |
tree | 42f05e91adaa39275efeaa25d8dead865027a3ea /src/elementaryFunctions/exp10/testDoubleExp10.c | |
parent | 88d321a2a30f1dda7c4e3ac2db5831614ef9bbe0 (diff) | |
download | scilab2c-5dcc4dcac910a4fc82d037e899f960ef2dc7cf3f.tar.gz scilab2c-5dcc4dcac910a4fc82d037e899f960ef2dc7cf3f.tar.bz2 scilab2c-5dcc4dcac910a4fc82d037e899f960ef2dc7cf3f.zip |
10^p <=> exp(p * log(10))
Diffstat (limited to 'src/elementaryFunctions/exp10/testDoubleExp10.c')
-rw-r--r-- | src/elementaryFunctions/exp10/testDoubleExp10.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/elementaryFunctions/exp10/testDoubleExp10.c b/src/elementaryFunctions/exp10/testDoubleExp10.c index 4fdb2d07..4f59dbbb 100644 --- a/src/elementaryFunctions/exp10/testDoubleExp10.c +++ b/src/elementaryFunctions/exp10/testDoubleExp10.c @@ -27,12 +27,21 @@ void dexp10sTest(void) { printf("dexp10s(-PI/6) = %e\n", dexp10s(-DPI/6)); } +void zexp10sTest(void) { + doubleComplex result; + + printf(">> Double complex scalar\n"); + result = zexp10s(DoubleComplex(1.0, 1.0)); + printf("dexp10s(0) = %e + %e i\n", zreals(result), zimags(result)); + +} + int testExp10(void) { printf("\n>>>> Double 10-Base Exponential Tests\n"); dexp10sTest(); + zexp10sTest(); /* FIXME : Implement some test here ... */ /* - zexp10sTest(); dexp10aTest(); zexp10aTest(); */ |