summaryrefslogtreecommitdiff
path: root/src/elementaryFunctions/exp/cexps.c
blob: 667c29d0afd5a6fc3d553e9d8f84d9b9982554ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
**  -*- C -*-
**
** cexps.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:08:27 2007 jofret
**
** Copyright INRIA 2006
*/

#include "exp.h"
#include "cos.h"
#include "sin.h"

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

  return FloatComplex(sexps(real)*scoss(imag),
		      sexps(real)*ssins(imag));
}