pub fn cosh(x: anytype) @TypeOf(x)
Returns the hyperbolic cosine of x.
Special Cases:
x
19 20 21 22 23 24 25 26
pub fn cosh(x: anytype) @TypeOf(x) { const T = @TypeOf(x); return switch (T) { f32 => cosh32(x), f64 => cosh64(x), else => @compileError("cosh not implemented for " ++ @typeName(T)), }; }
Returns the hyperbolic cosine of x.
Special Cases: