\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}\begin{array}{l}
\mathbf{if}\;k \leq 2.0291990054631206 \cdot 10^{-35}:\\
\;\;\;\;\frac{\left(a \cdot {\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}^{m}\right) \cdot {\left(\sqrt[3]{k}\right)}^{m}}{1 + k \cdot \left(k + 10\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{{k}^{\left(-m\right)}}{a} + \frac{k}{{k}^{m}} \cdot \left(\frac{k}{a} + \frac{10}{a}\right)}\\
\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 2.0291990054631206e-35)
(/
(* (* a (pow (* (cbrt k) (cbrt k)) m)) (pow (cbrt k) m))
(+ 1.0 (* k (+ k 10.0))))
(/ 1.0 (+ (/ (pow k (- m)) a) (* (/ k (pow k m)) (+ (/ k a) (/ 10.0 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 <= 2.0291990054631206e-35) {
tmp = ((a * pow((cbrt(k) * cbrt(k)), m)) * pow(cbrt(k), m)) / (1.0 + (k * (k + 10.0)));
} else {
tmp = 1.0 / ((pow(k, -m) / a) + ((k / pow(k, m)) * ((k / a) + (10.0 / a))));
}
return tmp;
}



Bits error versus a



Bits error versus k



Bits error versus m
Results
if k < 2.0291990054631206e-35Initial program 0.1
Simplified0.0
rmApplied add-cube-cbrt_binary64_11360.0
Applied unpow-prod-down_binary64_11800.0
Applied associate-*r*_binary64_10410.0
if 2.0291990054631206e-35 < k Initial program 5.0
Simplified5.0
rmApplied clear-num_binary64_11005.2
Taylor expanded around inf 5.2
Simplified0.5
Final simplification0.2
herbie shell --seed 2020356
(FPCore (a k m)
:name "Falkner and Boettcher, Appendix A"
:precision binary64
(/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))