]> www.ginac.de Git - cln.git/blob - src/real/transcendental/cl_R_tan.cc
Fix linking problems on some platforms caused by inline/non-inline versions
[cln.git] / src / real / transcendental / cl_R_tan.cc
1 // tan().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/real.h"
8
9
10 // Implementation.
11
12 namespace cln {
13
14 CL_INLINE const cl_R CL_INLINE_DECL(tan) (const cl_R& x)
15 {
16 // Methode:
17 // (/ (sin x) (cos x))
18         var cos_sin_t trig = cos_sin(x);
19         return trig.sin / trig.cos;
20 }
21
22 }  // namespace cln