pub fn exp(z: anytype) Complex(@TypeOf(z.re, z.im))
Returns e raised to the power of z (e^z).
z
16 17 18 19 20 21 22 23 24
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)), }; }
Returns e raised to the power of z (e^z).