Average Error: 0.0 → 0.0
Time: 1.2s
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 r24946 = x;
        double r24947 = 4.0;
        double r24948 = pow(r24946, r24947);
        double r24949 = y;
        double r24950 = pow(r24949, r24947);
        double r24951 = r24948 - r24950;
        return r24951;
}

double f(double x, double y) {
        double r24952 = x;
        double r24953 = 4.0;
        double r24954 = pow(r24952, r24953);
        double r24955 = y;
        double r24956 = pow(r24955, r24953);
        double r24957 = r24954 - r24956;
        return r24957;
}

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