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/cexp10s.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/cexp10s.c')
-rw-r--r-- | src/elementaryFunctions/exp10/cexp10s.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/elementaryFunctions/exp10/cexp10s.c b/src/elementaryFunctions/exp10/cexp10s.c index 340e3f4c..479909a7 100644 --- a/src/elementaryFunctions/exp10/cexp10s.c +++ b/src/elementaryFunctions/exp10/cexp10s.c @@ -11,11 +11,8 @@ */ #include "exp10.h" +#include "pow.h" floatComplex cexp10s(floatComplex z) { - float real = creals(z); - float imag = cimags(z); - - /* FIXME : Let's code... */ - return FloatComplex(real, imag); + return cpows(FloatComplex(10.0f, 0.0f), z); } |