Average Error: 0.0 → 0.0
Time: 2.6s
Precision: binary64
Cost: 13120
\[{x}^{4} - {y}^{4}\]
\[{x}^{4} - {y}^{4}\]
{x}^{4} - {y}^{4}
{x}^{4} - {y}^{4}
(FPCore (x y) :precision binary64 (- (pow x 4.0) (pow y 4.0)))
(FPCore (x y) :precision binary64 (- (pow x 4.0) (pow y 4.0)))
double code(double x, double y) {
	return pow(x, 4.0) - pow(y, 4.0);
}
double code(double x, double y) {
	return pow(x, 4.0) - pow(y, 4.0);
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Alternatives

Alternative 1
Error0.3
Cost960
\[\left(x \cdot x + y \cdot y\right) \cdot \left(x \cdot x - y \cdot y\right)\]
Alternative 2
Error39.2
Cost64
\[0\]
Alternative 3
Error61.9
Cost64
\[1\]

Error

Derivation

  1. Initial program 0.0

    \[{x}^{4} - {y}^{4}\]
  2. Simplified0.0

    \[\leadsto \color{blue}{{x}^{4} - {y}^{4}}\]
  3. Final simplification0.0

    \[\leadsto {x}^{4} - {y}^{4}\]

Reproduce

herbie shell --seed 2021044 
(FPCore (x y)
  :name "Radioactive exchange between two surfaces"
  :precision binary64
  (- (pow x 4.0) (pow y 4.0)))