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



Bits error versus a



Bits error versus k



Bits error versus m
if k < 8.7208115473145246e67Initial program 0.1
Simplified0.0
Applied add-sqr-sqrt_binary640.1
Applied times-frac_binary640.1
Applied *-un-lft-identity_binary640.1
Applied associate-*l*_binary640.1
Simplified0.0
if 8.7208115473145246e67 < k Initial program 6.9
Simplified6.9
Applied clear-num_binary647.1
Taylor expanded in k around inf 6.9
Simplified0.6
Final simplification0.2
herbie shell --seed 2022094
(FPCore (a k m)
:name "Falkner and Boettcher, Appendix A"
:precision binary64
(/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))