]> www.ginac.de Git - cln.git/blob - src/float/transcendental/cl_F_tan.cc
Finalize CLN 1.3.7 release.
[cln.git] / src / float / transcendental / cl_F_tan.cc
1 // tan().
2
3 // General includes.
4 #include "base/cl_sysdep.h"
5
6 // Specification.
7 #include "cln/float.h"
8
9
10 // Implementation.
11
12 namespace cln {
13
14 CL_INLINE const cl_F CL_INLINE_DECL(tan) (const cl_F& x)
15 {
16 // Methode:
17 // (/ (sin x) (cos x))
18         var cos_sin_t trig = cos_sin(x);
19         return The(cl_F)(trig.sin) / The(cl_F)(trig.cos);
20 }
21
22 }  // namespace cln