\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}
\begin{array}{l}
\mathbf{if}\;k \leq 3.6283882401935997 \cdot 10^{+117}:\\
\;\;\;\;\frac{a}{\frac{\mathsf{fma}\left(k, k + 10, 1\right)}{{k}^{m}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{k \cdot \frac{k}{a \cdot {k}^{m}}}\\
\end{array}
(FPCore (a k m) :precision binary64 (/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))
(FPCore (a k m) :precision binary64 (if (<= k 3.6283882401935997e+117) (/ a (/ (fma k (+ k 10.0) 1.0) (pow k m))) (/ 1.0 (* k (/ k (* a (pow 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) {
double tmp;
if (k <= 3.6283882401935997e+117) {
tmp = a / (fma(k, (k + 10.0), 1.0) / pow(k, m));
} else {
tmp = 1.0 / (k * (k / (a * pow(k, m))));
}
return tmp;
}



Bits error versus a



Bits error versus k



Bits error versus m
if k < 3.6283882401935997e117Initial program 0.1
Simplified0.0
Applied associate-/l*_binary640.0
if 3.6283882401935997e117 < k Initial program 8.2
Simplified8.2
Applied clear-num_binary648.3
Taylor expanded in k around inf 8.3
Simplified0.4
Final simplification0.1
herbie shell --seed 2022097
(FPCore (a k m)
:name "Falkner and Boettcher, Appendix A"
:precision binary64
(/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))