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

#include "tanh.h"
#include "tan.h"

floatComplex		ctanhs(floatComplex z) {
  float real = creals(z);
  float imag = cimags(z);

  floatComplex result = ctans(FloatComplex(-imag, real));
  return (FloatComplex(cimags(result), -creals(result)));
}