Function exp [src]

Alias for std.math.complex.exp.exp

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

Prototype

pub fn exp(z: anytype) Complex(@TypeOf(z.re, z.im))

Source

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