Average Error: 0.0 → 0.0
Time: 3.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 r28729 = x;
        double r28730 = 4.0;
        double r28731 = pow(r28729, r28730);
        double r28732 = y;
        double r28733 = pow(r28732, r28730);
        double r28734 = r28731 - r28733;
        return r28734;
}

double f(double x, double y) {
        double r28735 = x;
        double r28736 = 4.0;
        double r28737 = pow(r28735, r28736);
        double r28738 = y;
        double r28739 = pow(r28738, r28736);
        double r28740 = r28737 - r28739;
        return r28740;
}

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