MINT2
Mint
cexp.h
Go to the documentation of this file.
1
// author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
2
// status: Mon 9 Feb 2009 19:17:56 GMT
3
#ifndef CEXP_THE_COMPLEX_EXP
4
#define CEXP_THE_COMPLEX_EXP
5
6
#include <complex>
7
#include <cmath>
8
9
namespace
MINT
{
10
template
<
typename
T>
11
std::complex<T>
cexp
(std::complex<T> arg){
12
std::complex<T> phase(cos(arg.imag()), sin(arg.imag()));
13
return
exp(arg.real())*phase;
14
}
15
}
//namespace MINT
16
17
#endif
18
//
MINT::cexp
std::complex< T > cexp(std::complex< T > arg)
Definition:
cexp.h:11
MINT
Definition:
BasicComplex.h:7
Generated by
1.8.15