DoxigAlpha

exp

Returns e raised to the power of z (e^z).

Function parameters

Parameters

#
z:anytype

Returns e raised to the power of z (e^z).

Functions

#
exp
Returns e raised to the power of z (e^z).

Source

Implementation

#
pub fn exp(z: anytype) Complex(@TypeOf(z.re, z.im)) {
    const T = @TypeOf(z.re, z.im);

    return switch (T) {
        f32 => exp32(z),
        f64 => exp64(z),
        else => @compileError("exp not implemented for " ++ @typeName(z)),
    };
}