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



Bits error versus a



Bits error versus k



Bits error versus m
Results
if k < 1.6232515547158186e149Initial program 0.1
Simplified0.1
rmApplied *-un-lft-identity_binary64_17830.1
Applied times-frac_binary64_17890.1
if 1.6232515547158186e149 < k Initial program 9.3
Simplified9.3
rmApplied clear-num_binary64_17829.4
Taylor expanded around 0 9.4
Simplified0.5
rmApplied clear-num_binary64_17820.5
Final simplification0.2
herbie shell --seed 2021021
(FPCore (a k m)
:name "Falkner and Boettcher, Appendix A"
:precision binary64
(/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))