Average Error: 0.0 → 0.0
Time: 1.4s
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 r16561 = x;
        double r16562 = 4.0;
        double r16563 = pow(r16561, r16562);
        double r16564 = y;
        double r16565 = pow(r16564, r16562);
        double r16566 = r16563 - r16565;
        return r16566;
}

double f(double x, double y) {
        double r16567 = x;
        double r16568 = 4.0;
        double r16569 = pow(r16567, r16568);
        double r16570 = y;
        double r16571 = pow(r16570, r16568);
        double r16572 = r16569 - r16571;
        return r16572;
}

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