Crate levitate

Source
Expand description

§Numbers GitHub Workflow Status

§Example

Bellow an example of eulers identity is shown.

e^(i * pi) = -1

use levitate::*;

assert_eq!(
    im(std::f32::consts::PI).exp_().re,
    -1.
);

§Thanks

Heavy inspiration has been taken from crates listed bellow.

Modules§

_fast_floats
fast_floats
Fast Floats

Macros§

numDeprecated

Structs§

Complex

Traits§

Float
FloatWrapper
PrimitiveFloat

Functions§

fast
Same as unsafe{ Fast::new(f) }
im
Same as Complex{re: 0., im: f}
re
Same as Complex{re: f, im: 0.}