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