Function cosh [src]
Alias for std.math.complex.cosh.cosh
Returns the hyperbolic arc-cosine of z.
Prototype
pub fn cosh(z: anytype) Complex(@TypeOf(z.re, z.im))
Source
pub fn cosh(z: anytype) Complex(@TypeOf(z.re, z.im)) {
const T = @TypeOf(z.re, z.im);
return switch (T) {
f32 => cosh32(z),
f64 => cosh64(z),
else => @compileError("cosh not implemented for " ++ @typeName(z)),
};
}