Function asinh [src]

Alias for std.math.asinh.asinh

Returns the hyperbolic arc-sin of x. Special Cases: asinh(+-0) = +-0 asinh(+-inf) = +-inf asinh(nan) = nan

Prototype

pub fn asinh(x: anytype) @TypeOf(x)

Example

test asinh { try expect(asinh(@as(f32, 0.0)) == asinh32(0.0)); try expect(asinh(@as(f64, 0.0)) == asinh64(0.0)); }

Source

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)), }; }