Average Error: 0.0 → 0.0
Time: 26.0s
Precision: 64
\[{x}^{4.0} - {y}^{4.0}\]
\[{x}^{4.0} - {y}^{4.0}\]
{x}^{4.0} - {y}^{4.0}
{x}^{4.0} - {y}^{4.0}
double f(double x, double y) {
        double r1102951 = x;
        double r1102952 = 4.0;
        double r1102953 = pow(r1102951, r1102952);
        double r1102954 = y;
        double r1102955 = pow(r1102954, r1102952);
        double r1102956 = r1102953 - r1102955;
        return r1102956;
}

double f(double x, double y) {
        double r1102957 = x;
        double r1102958 = 4.0;
        double r1102959 = pow(r1102957, r1102958);
        double r1102960 = y;
        double r1102961 = pow(r1102960, r1102958);
        double r1102962 = r1102959 - r1102961;
        return r1102962;
}

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.0} - {y}^{4.0}\]
  2. Final simplification0.0

    \[\leadsto {x}^{4.0} - {y}^{4.0}\]

Reproduce

herbie shell --seed 2019165 +o rules:numerics
(FPCore (x y)
  :name "Radioactive exchange between two surfaces"
  (- (pow x 4.0) (pow y 4.0)))