Average Error: 0.0 → 0.0
Time: 3.6s
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 r38500 = x;
        double r38501 = 4.0;
        double r38502 = pow(r38500, r38501);
        double r38503 = y;
        double r38504 = pow(r38503, r38501);
        double r38505 = r38502 - r38504;
        return r38505;
}

double f(double x, double y) {
        double r38506 = x;
        double r38507 = 4.0;
        double r38508 = pow(r38506, r38507);
        double r38509 = y;
        double r38510 = pow(r38509, r38507);
        double r38511 = r38508 - r38510;
        return r38511;
}

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