\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}\frac{1}{\frac{\mathsf{fma}\left(k, \frac{k}{a}, \mathsf{fma}\left(1, \frac{1}{a}, 10 \cdot \frac{k}{a}\right)\right)}{{k}^{m}}}double code(double a, double k, double m) {
return ((a * pow(k, m)) / ((1.0 + (10.0 * k)) + (k * k)));
}
double code(double a, double k, double m) {
return (1.0 / (fma(k, (k / a), fma(1.0, (1.0 / a), (10.0 * (k / a)))) / pow(k, m)));
}



Bits error versus a



Bits error versus k



Bits error versus m
Results
Initial program 2.1
rmApplied clear-num2.2
Simplified2.2
Taylor expanded around 0 3.8
Simplified3.8
Taylor expanded around 0 3.8
Simplified1.9
Final simplification1.9
herbie shell --seed 2020049 +o rules:numerics
(FPCore (a k m)
:name "Falkner and Boettcher, Appendix A"
:precision binary64
(/ (* a (pow k m)) (+ (+ 1 (* 10 k)) (* k k))))