std › math › complex › coscosReturns the cosine of z. Function parametersParameters#z:anytype Returns the cosine of z.Functions#cos Returns the cosine of z.SourceImplementation#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); }
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); }