cosh function
Return the hyperbolic cosine of complex
.
Implementation
Complex<num, num> cosh(Complex complex) {
var r = _cosh(complex.real) * math.cos(complex.imaginary);
var i = _sinh(complex.imaginary) * math.sin(complex.imaginary);
return Complex<num, num>(r, i);
}