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

#include "cosh.h"
#include "cos.h"

/** ch(z) = cos(i.z) */
floatComplex		ccoshs(floatComplex z) {
  float real = creals(z);
  float minusImag = -cimags(z);

  return (ccoss(FloatComplex(minusImag, real)));
}