summaryrefslogtreecommitdiff
path: root/src/elementaryFunctions/tanh/ctanhs.c
blob: aae629569b38d4b8298f8014973fa894ff451f5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
**  -*- C -*-
**
** ctanhs.c
** Made by  Bruno JOFRET <bruno.jofret@inria.fr>
**
** Started on  Thu Dec  7 12:04:28 2006 jofret
** Last update Tue Feb 13 11:03:07 2007 jofret
**
** Copyright INRIA 2006
*/

#include "floatComplex.h"

floatComplex		ctans(floatComplex);

floatComplex		ctanhs(floatComplex z) {
  float real = creal(z);
  float imag = cimag(z);

  floatComplex result = ctans(FloatComplex(-imag, real));
  return (FloatComplex(cimag(result), -creal(result)));
  return z;
}