Skip to main content

Module exp

Module exp 

Source
Expand description

Exponential function e^x for f32 on no_std embedded targets, powered by embedded-exp-f32.

Uses Cody-Waite range reduction, a (2, 2) Padé approximation over the reduced interval, and IEEE 754 exponent reconstruction without libm, heap allocation, or loops over k.

§Behavior & Notes

Input / ConditionBehavior
x = 0.0Returns 1.0
x = 1.0Returns ~e (core::f32::consts::E)
x <= -87.33654Underflows to 0.0
x >= 88.72284Overflows to f32::INFINITY
fast-path featureSkips explicit bounds/NaN checks when x is already validated

Functions§

exp
Computes e^x in f32 without libm or std.
exp_f32
Computes e^x in f32 without libm.