cos method

Complex cos()

Computes the cosine of this complex number.

Implementation

Complex cos() => Complex(a.cos() * b.cosh(), -a.sin() * b.sinh());