Average Error: 0.0 → 0.0
Time: 9.1s
Precision: 64
\[{x}^{4} - {y}^{4}\]
\[{x}^{4} - {y}^{4}\]
{x}^{4} - {y}^{4}
{x}^{4} - {y}^{4}
double f(double x, double y) {
        double r18285 = x;
        double r18286 = 4.0;
        double r18287 = pow(r18285, r18286);
        double r18288 = y;
        double r18289 = pow(r18288, r18286);
        double r18290 = r18287 - r18289;
        return r18290;
}

double f(double x, double y) {
        double r18291 = x;
        double r18292 = 4.0;
        double r18293 = pow(r18291, r18292);
        double r18294 = y;
        double r18295 = pow(r18294, r18292);
        double r18296 = r18293 - r18295;
        return r18296;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

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

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

Reproduce

herbie shell --seed 2019322 +o rules:numerics
(FPCore (x y)
  :name "Radioactive exchange between two surfaces"
  :precision binary64
  (- (pow x 4) (pow y 4)))