]> www.ginac.de Git - cln.git/blob - src/real/transcendental/cl_R_tan.cc
* All Files have been modified for inclusion of namespace cln;
[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 MAYBE_INLINE
15 const cl_R tan (const cl_R& x)
16 {
17 // Methode:
18 // (/ (sin x) (cos x))
19         var cos_sin_t trig = cos_sin(x);
20         return trig.sin / trig.cos;
21 }
22
23 }  // namespace cln