2 Looks for floating-point expressions that
3 can be expressed using built-in methods to improve both
4 accuracy and performance.
7 Negatively impacts accuracy and performance.
11 use std::f32::consts::E;
14 let _ = (2f32).powf(a);
16 let _ = a.powf(1.0 / 2.0);
21 let _ = a * 2.0 + 4.0;
34 is better expressed as
37 use std::f32::consts::E;
47 let _ = a.mul_add(2.0, 4.0);