diff options
Diffstat (limited to 'src/elementaryFunctions/tanh/ztanhs.c')
-rw-r--r-- | src/elementaryFunctions/tanh/ztanhs.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/elementaryFunctions/tanh/ztanhs.c b/src/elementaryFunctions/tanh/ztanhs.c index 3c2498a7..0cc3e64c 100644 --- a/src/elementaryFunctions/tanh/ztanhs.c +++ b/src/elementaryFunctions/tanh/ztanhs.c @@ -5,20 +5,18 @@ ** Made by Bruno JOFRET <bruno.jofret@inria.fr> ** ** Started on Thu Dec 7 12:05:48 2006 jofret -** Last update Tue Feb 13 10:47:24 2007 jofret +** Last update Fri Feb 23 17:30:25 2007 jofret ** ** Copyright INRIA 2006 */ -#include "doubleComplex.h" - -doubleComplex ztans(doubleComplex); +#include "tanh.h" +#include "tan.h" doubleComplex ztanhs(doubleComplex z) { - double real = creal(z); - double imag = cimag(z); + double real = zreals(z); + double imag = zimags(z); doubleComplex result = ztans(DoubleComplex(-imag, real)); - return (DoubleComplex(cimag(result), -creal(result))); - return (DoubleComplex(0,1)); + return (DoubleComplex(zimags(result), -zreals(result))); } |