DoxigAlpha

sinh

Returns the hyperbolic sine of z.

Function parameters

Parameters

#
z:anytype

Returns the hyperbolic sine of z.

Functions

#
sinh
Returns the hyperbolic sine of z.

Source

Implementation

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