summaryrefslogtreecommitdiff
path: root/src/elementaryFunctions/exp/zexps.c
blob: 91babc619066ad3290541fbaa1b1bb26adc5be5a (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 -*-
**
** zexps.c
** Made by  Bruno JOFRET <bruno.jofret@inria.fr>
**
** Started on  Thu Dec  7 12:05:48 2006 jofret
** Last update Fri Feb 23 17:08:38 2007 jofret
**
** Copyright INRIA 2006
*/

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

doubleComplex		zexps(doubleComplex z) {
  double real = zreals(z);
  double imag = zimags(z);

  return DoubleComplex(dexps(real)*dcoss(imag),
		      dexps(real)*dsins(imag));
}