Average Error: 62.0 → 0
Time: 2.7s
Precision: binary64
Cost: 64
\[x = 10864 \land y = 18817\]
\[9 \cdot {x}^{4} - \left(y \cdot y\right) \cdot \left(y \cdot y - 2\right)\]
\[1\]
9 \cdot {x}^{4} - \left(y \cdot y\right) \cdot \left(y \cdot y - 2\right)
1
(FPCore (x y)
 :precision binary64
 (- (* 9.0 (pow x 4.0)) (* (* y y) (- (* y y) 2.0))))
(FPCore (x y) :precision binary64 1.0)
double code(double x, double y) {
	return (9.0 * pow(x, 4.0)) - ((y * y) * ((y * y) - 2.0));
}
double code(double x, double y) {
	return 1.0;
}

Error

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Alternatives

Alternative 1
Error52.0
Cost26496
\[\sqrt[3]{{\left(9 \cdot {x}^{4} - {y}^{4}\right)}^{3}} - \left(y \cdot y\right) \cdot -2\]
Alternative 2
Error52.0
Cost13632
\[\left(9 \cdot {x}^{4} - {y}^{4}\right) - \left(y \cdot y\right) \cdot -2\]
Alternative 3
Error62.0
Cost7296
\[9 \cdot {x}^{4} - \left(y \cdot y\right) \cdot \left(y \cdot y - 2\right)\]
Alternative 4
Error62.0
Cost64
\[0\]
Alternative 5
Error63.0
Cost64
\[-1\]

Error

Derivation

  1. Initial program 0

    \[1\]
  2. Final simplification0

    \[\leadsto 1\]

Reproduce

herbie shell --seed 2021022 
(FPCore (x y)
  :name "From Rump in a 1983 paper, rewritten"
  :precision binary64
  :pre (and (== x 10864.0) (== y 18817.0))
  (- (* 9.0 (pow x 4.0)) (* (* y y) (- (* y y) 2.0))))