diff options
author | jofret | 2007-02-13 16:14:33 +0000 |
---|---|---|
committer | jofret | 2007-02-13 16:14:33 +0000 |
commit | 85c7a2e39d24c29a079a47e5c75e88c468756e5d (patch) | |
tree | 9c117457508ef57ffbca9d1a02aab2c2af65976d /src/elementaryFunctions/tanh/ctanhs.c | |
parent | cd57b12f621082f87255daf100a66eb01e5ae1d7 (diff) | |
download | scilab2c-85c7a2e39d24c29a079a47e5c75e88c468756e5d.tar.gz scilab2c-85c7a2e39d24c29a079a47e5c75e88c468756e5d.tar.bz2 scilab2c-85c7a2e39d24c29a079a47e5c75e88c468756e5d.zip |
* src/elementaryFunctions/tanh/ztanhs.c :
Fixed with C99 Complex but Scilab computation.
* src/elementaryFunctions/tanh/ctanhs.c :
Fixed with C99 Complex but Scilab computation.
* src/auxiliaryFunctions/find :
Find not null element in list.
* src/auxiliaryFunctions/find/{sdcz}finda.c :
Implementation : s(float) d(double)
c(floatComplex) z(doubleComplex)
* src/auxiliaryFunctions/find/find.h :
Interface.
* src/auxiliaryFunctions/find/notFound.h :
Constant if all elements are not null.
Adding some other functions.
Diffstat (limited to 'src/elementaryFunctions/tanh/ctanhs.c')
-rw-r--r-- | src/elementaryFunctions/tanh/ctanhs.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/elementaryFunctions/tanh/ctanhs.c b/src/elementaryFunctions/tanh/ctanhs.c index 6eb84827..aae62956 100644 --- a/src/elementaryFunctions/tanh/ctanhs.c +++ b/src/elementaryFunctions/tanh/ctanhs.c @@ -5,14 +5,20 @@ ** Made by Bruno JOFRET <bruno.jofret@inria.fr> ** ** Started on Thu Dec 7 12:04:28 2006 jofret -** Last update Wed Jan 31 10:56:39 2007 jofret +** Last update Tue Feb 13 11:03:07 2007 jofret ** ** Copyright INRIA 2006 */ #include "floatComplex.h" +floatComplex ctans(floatComplex); + floatComplex ctanhs(floatComplex z) { - /* FIXME: Dummy... */ + float real = creal(z); + float imag = cimag(z); + + floatComplex result = ctans(FloatComplex(-imag, real)); + return (FloatComplex(cimag(result), -creal(result))); return z; } |