\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}
\begin{array}{l}
\mathbf{if}\;k \leq 1.3978715154187448 \cdot 10^{+153}:\\
\;\;\;\;\left(a \cdot {k}^{m}\right) \cdot \frac{1}{\mathsf{fma}\left(k, k + 10, 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\begin{array}{l}
t_0 := {\left({\left(\frac{1}{k}\right)}^{-0.6666666666666666}\right)}^{m}\\
t_1 := a \cdot {\left({\left(\frac{1}{k}\right)}^{-0.3333333333333333}\right)}^{m}\\
\mathsf{fma}\left(\frac{t_0}{k}, \frac{t_1}{k}, \frac{t_0 \cdot t_1}{{k}^{3}} \cdot -10\right)
\end{array}\\
\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 1.3978715154187448e+153)
(* (* a (pow k m)) (/ 1.0 (fma k (+ k 10.0) 1.0)))
(let* ((t_0 (pow (pow (/ 1.0 k) -0.6666666666666666) m))
(t_1 (* a (pow (pow (/ 1.0 k) -0.3333333333333333) m))))
(fma (/ t_0 k) (/ t_1 k) (* (/ (* t_0 t_1) (pow k 3.0)) -10.0)))))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 <= 1.3978715154187448e+153) {
tmp = (a * pow(k, m)) * (1.0 / fma(k, (k + 10.0), 1.0));
} else {
double t_0 = pow(pow((1.0 / k), -0.6666666666666666), m);
double t_1 = a * pow(pow((1.0 / k), -0.3333333333333333), m);
tmp = fma((t_0 / k), (t_1 / k), (((t_0 * t_1) / pow(k, 3.0)) * -10.0));
}
return tmp;
}



Bits error versus a



Bits error versus k



Bits error versus m
if k < 1.3978715154187448e153Initial program 0.1
Simplified0.1
Applied div-inv_binary640.1
if 1.3978715154187448e153 < k Initial program 9.8
Simplified9.8
Applied add-cube-cbrt_binary649.8
Applied unpow-prod-down_binary649.8
Applied associate-*r*_binary649.8
Taylor expanded in k around inf 9.8
Simplified0.1
Final simplification0.1
herbie shell --seed 2022081
(FPCore (a k m)
:name "Falkner and Boettcher, Appendix A"
:precision binary64
(/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))