]> www.ginac.de Git - cln.git/blob - src/float/transcendental/cl_F_tan.cc
* Add support for OpenBSD.
[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 "cln/float.h"
8
9
10 // Implementation.
11
12 namespace cln {
13
14 MAYBE_INLINE
15 const cl_F tan (const cl_F& x)
16 {
17 // Methode:
18 // (/ (sin x) (cos x))
19         var cos_sin_t trig = cos_sin(x);
20         return The(cl_F)(trig.sin) / The(cl_F)(trig.cos);
21 }
22
23 }  // namespace cln