]> www.ginac.de Git - cln.git/blob - src/real/transcendental/cl_R_tanh.cc
Remove exception hooks in favor of real C++ exceptions:
[cln.git] / src / real / transcendental / cl_R_tanh.cc
1 // tanh().
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 tanh (const cl_R& x)
16 {
17 // Methode:
18 // (/ (sinh x) (cosh x))
19         var cosh_sinh_t hyp = cosh_sinh(x);
20         return hyp.sinh / hyp.cosh;
21 }
22
23 }  // namespace cln