summaryrefslogtreecommitdiff
path: root/src/elementaryFunctions/exp10/zexp10s.c
blob: 55a88cff6ecb2e71546266092d83fd42582be8d8 (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 -*-
**
** zexp10s.c
** Made by  Bruno JOFRET <bruno.jofret@inria.fr>
**
** Started on  Thu Dec  7 12:05:48 2006 jofret
** Last update Thu Sep  6 16:56:19 2007 bruno
**
** Copyright INRIA 2006
*/

#include "exp10.h"
#include "cos.h"
#include "sin.h"

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

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