Average Error: 1.9 → 1.9
Time: 5.7s
Precision: binary64
\[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}\]
\[a \cdot \frac{{k}^{m}}{1 + k \cdot \left(k + 10\right)}\]
\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}
a \cdot \frac{{k}^{m}}{1 + k \cdot \left(k + 10\right)}
(FPCore (a k m)
 :precision binary64
 (/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))
(FPCore (a k m)
 :precision binary64
 (* a (/ (pow k m) (+ 1.0 (* k (+ k 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) {
	return a * (pow(k, m) / (1.0 + (k * (k + 10.0))));
}

Error

Bits error versus a

Bits error versus k

Bits error versus m

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 1.9

    \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}\]
  2. Simplified1.9

    \[\leadsto \color{blue}{\frac{a \cdot {k}^{m}}{1 + k \cdot \left(k + 10\right)}}\]
  3. Using strategy rm
  4. Applied *-un-lft-identity_binary641.9

    \[\leadsto \frac{a \cdot {k}^{m}}{\color{blue}{1 \cdot \left(1 + k \cdot \left(k + 10\right)\right)}}\]
  5. Applied times-frac_binary641.9

    \[\leadsto \color{blue}{\frac{a}{1} \cdot \frac{{k}^{m}}{1 + k \cdot \left(k + 10\right)}}\]
  6. Simplified1.9

    \[\leadsto \color{blue}{a} \cdot \frac{{k}^{m}}{1 + k \cdot \left(k + 10\right)}\]
  7. Using strategy rm
  8. Applied pow1_binary641.9

    \[\leadsto a \cdot \color{blue}{{\left(\frac{{k}^{m}}{1 + k \cdot \left(k + 10\right)}\right)}^{1}}\]
  9. Final simplification1.9

    \[\leadsto a \cdot \frac{{k}^{m}}{1 + k \cdot \left(k + 10\right)}\]

Alternatives

Reproduce

herbie shell --seed 2021118 
(FPCore (a k m)
  :name "Falkner and Boettcher, Appendix A"
  :precision binary64
  (/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))