]> www.ginac.de Git - cln.git/blob - src/complex/transcendental/cl_R_cis.cc
* Removed internal gmp/ directory and other traces of it like $GMP_INCLUDES.
[cln.git] / src / complex / transcendental / cl_R_cis.cc
1 // cis().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cl_complex.h"
8
9
10 // Implementation.
11
12 #include "cl_C.h"
13 #include "cl_real.h"
14
15 const cl_N cis (const cl_R& x)
16 {
17 // Methode:
18 // (complex (cos x) (sin x))
19         var cl_cos_sin_t trig = cl_cos_sin(x);
20         return complex(trig.cos, trig.sin);
21 }