Returns the cosine of z.
pub fn cos(z: anytype) Complex(@TypeOf(z.re, z.im))
pub fn cos(z: anytype) Complex(@TypeOf(z.re, z.im)) { const T = @TypeOf(z.re, z.im); const p = Complex(T).init(-z.im, z.re); return cmath.cosh(p); }