]> www.ginac.de Git - cln.git/blob - src/complex/transcendental/cl_R_cis.cc
Finalize CLN 1.3.7 release.
[cln.git] / src / complex / transcendental / cl_R_cis.cc
1 // cis().
2
3 // General includes.
4 #include "base/cl_sysdep.h"
5
6 // Specification.
7 #include "cln/complex.h"
8
9
10 // Implementation.
11
12 #include "complex/cl_C.h"
13 #include "cln/real.h"
14
15 namespace cln {
16
17 const cl_N cis (const cl_R& x)
18 {
19 // Methode:
20 // (complex (cos x) (sin x))
21         var cos_sin_t trig = cos_sin(x);
22         return complex(trig.cos, trig.sin);
23 }
24
25 }  // namespace cln