pub fn ldexp_cexp(z: anytype, expt: i32) Complex(@TypeOf(z.re, z.im))
Returns exp(z) scaled to avoid overflow.
z
expt: i32
15 16 17 18 19 20 21 22 23
pub fn ldexp_cexp(z: anytype, expt: i32) Complex(@TypeOf(z.re, z.im)) { const T = @TypeOf(z.re, z.im); return switch (T) { f32 => ldexp_cexp32(z, expt), f64 => ldexp_cexp64(z, expt), else => unreachable, }; }
Returns exp(z) scaled to avoid overflow.