Average Error: 0.0 → 0.0
Time: 1.5s
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 r27371 = x;
        double r27372 = 4.0;
        double r27373 = pow(r27371, r27372);
        double r27374 = y;
        double r27375 = pow(r27374, r27372);
        double r27376 = r27373 - r27375;
        return r27376;
}

double f(double x, double y) {
        double r27377 = x;
        double r27378 = 4.0;
        double r27379 = pow(r27377, r27378);
        double r27380 = y;
        double r27381 = pow(r27380, r27378);
        double r27382 = r27379 - r27381;
        return r27382;
}

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 2020062 +o rules:numerics
(FPCore (x y)
  :name "Radioactive exchange between two surfaces"
  :precision binary64
  (- (pow x 4) (pow y 4)))