Average Error: 0.0 → 0.0
Time: 3.0s
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 r34261 = x;
        double r34262 = 4.0;
        double r34263 = pow(r34261, r34262);
        double r34264 = y;
        double r34265 = pow(r34264, r34262);
        double r34266 = r34263 - r34265;
        return r34266;
}

double f(double x, double y) {
        double r34267 = x;
        double r34268 = 4.0;
        double r34269 = pow(r34267, r34268);
        double r34270 = y;
        double r34271 = pow(r34270, r34268);
        double r34272 = r34269 - r34271;
        return r34272;
}

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