Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Function

ldexp_cexp

Public Function
std.math.complex.ldexp.ldexp_cexp
pub fn ldexp_cexp(z: anytype, expt: i32) Complex(@TypeOf(z.re, z.im))

Returns exp(z) scaled to avoid overflow.

Params

  • z
  • expt: i32

File

math/complex/ldexp.zig:15
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,
    };
}