Expand description
No-STD abstraction layer enabling numerical functions to be implemented once, and simultaneously support both fixed and floating point types. The crate focueses on computationally efficient implementations of numerical operations.
This is an experimental library.
Example
use mixed_num::*;
use mixed_num::traits::*;
use fixed::{types::extra::U27, FixedI32};
let number = FixedI32::<U27>::from_num(0.6f32);
let res:f32 = number.mixed_atan().mixed_to_num();
assert_eq!{ res, 0.5404195 };
let number = 0.6f32;
let res:f32 = number.mixed_atan().mixed_to_num();
assert_eq!{ res, 0.5404195 };