DoxigAlpha

sinh

Returns the hyperbolic sine of x.

Special Cases:

  • sinh(+-0) = +-0
  • sinh(+-inf) = +-inf
  • sinh(nan) = nan

Function parameters

Parameters

#
x:anytype

Returns the hyperbolic sine of x.

Functions

#
sinh
Returns the hyperbolic sine of x.

Source

Implementation

#
pub fn sinh(x: anytype) @TypeOf(x) {
    const T = @TypeOf(x);
    return switch (T) {
        f32 => sinh32(x),
        f64 => sinh64(x),
        else => @compileError("sinh not implemented for " ++ @typeName(T)),
    };
}