]> www.ginac.de Git - cln.git/blob - src/float/transcendental/cl_F_tan.cc
dac0f2852d2307a1d3fe6d5e326e113061981615
[cln.git] / src / float / transcendental / cl_F_tan.cc
1 // tan().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cl_float.h"
8
9
10 // Implementation.
11
12 MAYBE_INLINE
13 const cl_F tan (const cl_F& x)
14 {
15 // Methode:
16 // (/ (sin x) (cos x))
17         var cl_cos_sin_t trig = cl_cos_sin(x);
18         return The(cl_F)(trig.sin) / The(cl_F)(trig.cos);
19 }