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 r40003 = x;
        double r40004 = 4.0;
        double r40005 = pow(r40003, r40004);
        double r40006 = y;
        double r40007 = pow(r40006, r40004);
        double r40008 = r40005 - r40007;
        return r40008;
}

double f(double x, double y) {
        double r40009 = x;
        double r40010 = 4.0;
        double r40011 = pow(r40009, r40010);
        double r40012 = y;
        double r40013 = pow(r40012, r40010);
        double r40014 = r40011 - r40013;
        return r40014;
}

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