[−][src]Crate fixed_exp
Exponentiation for fixed-point numbers.
Usage
use fixed::types::I32F32; use fixed_exp::{FixedPowI, FixedPowF}; let x = I32F32::from_num(4.0); assert_eq!(I32F32::from_num(1024.0), x.powi(5)); assert_eq!(I32F32::from_num(8.0), x.powf(I32F32::from_num(1.5)));
Traits
FixedPow | Trait alias for fixed-points numbers that support both integer and fixed-point exponentiation. |
FixedPowF | Extension trait providing fixed-point exponentiation for fixed-point numbers. |
FixedPowI | Extension trait providing integer exponentiation for fixed-point numbers. |