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 r34879 = x;
        double r34880 = 4.0;
        double r34881 = pow(r34879, r34880);
        double r34882 = y;
        double r34883 = pow(r34882, r34880);
        double r34884 = r34881 - r34883;
        return r34884;
}

double f(double x, double y) {
        double r34885 = x;
        double r34886 = 4.0;
        double r34887 = pow(r34885, r34886);
        double r34888 = y;
        double r34889 = pow(r34888, r34886);
        double r34890 = r34887 - r34889;
        return r34890;
}

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)))