DoxigAlpha

asinh

Returns the hyperbolic arc-sin of x.

Special Cases:

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

Function parameters

Parameters

#
x:anytype

Returns the hyperbolic arc-sin of x.

Functions

#
asinh
Returns the hyperbolic arc-sin of x.

Source

Implementation

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