Average Error: 0.0 → 0.0
Time: 4.3s
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 r40321 = x;
        double r40322 = 4.0;
        double r40323 = pow(r40321, r40322);
        double r40324 = y;
        double r40325 = pow(r40324, r40322);
        double r40326 = r40323 - r40325;
        return r40326;
}

double f(double x, double y) {
        double r40327 = x;
        double r40328 = 4.0;
        double r40329 = pow(r40327, r40328);
        double r40330 = y;
        double r40331 = pow(r40330, r40328);
        double r40332 = r40329 - r40331;
        return r40332;
}

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