cos method

Complex cos()

Calculates the cosine of this complex number.

Implementation

Complex cos() => Complex(
    math.cos(real) * _cosh(imaginary), -math.sin(real) * _sinh(imaginary));