7 #include "cl_complex.h"
15 const cl_N cosh (const cl_N& x)
19 // x = a+bi -> (complex (* (cosh a) (cos b)) (* (sinh a) (sin b)))
26 var const cl_R& a = realpart(x);
27 var const cl_R& b = imagpart(x);
28 var cl_cos_sin_t trig_b = cl_cos_sin(b); // cos(b), sin(b) errechnen
29 var cl_cosh_sinh_t hyp_a = cl_cosh_sinh(a); // cosh(a), sinh(a) errechnen
30 return complex(hyp_a.cosh * trig_b.cos, // cosh(a)*cos(b)
31 hyp_a.sinh * trig_b.sin // sinh(a)*sin(b)