Average Error: 0.0 → 0.0
Time: 2.9s
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 r18015 = x;
        double r18016 = 4.0;
        double r18017 = pow(r18015, r18016);
        double r18018 = y;
        double r18019 = pow(r18018, r18016);
        double r18020 = r18017 - r18019;
        return r18020;
}

double f(double x, double y) {
        double r18021 = x;
        double r18022 = 4.0;
        double r18023 = pow(r18021, r18022);
        double r18024 = y;
        double r18025 = pow(r18024, r18022);
        double r18026 = r18023 - r18025;
        return r18026;
}

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