Average Error: 0.0 → 0.0
Time: 8.1s
Precision: 64
\[\frac{x + y}{x - y}\]
\[\frac{x + y}{x - y}\]
\frac{x + y}{x - y}
\frac{x + y}{x - y}
double f(double x, double y) {
        double r639433 = x;
        double r639434 = y;
        double r639435 = r639433 + r639434;
        double r639436 = r639433 - r639434;
        double r639437 = r639435 / r639436;
        return r639437;
}

double f(double x, double y) {
        double r639438 = x;
        double r639439 = y;
        double r639440 = r639438 + r639439;
        double r639441 = r639438 - r639439;
        double r639442 = r639440 / r639441;
        return r639442;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.0
Target0.0
Herbie0.0
\[\frac{1}{\frac{x}{x + y} - \frac{y}{x + y}}\]

Derivation

  1. Initial program 0.0

    \[\frac{x + y}{x - y}\]
  2. Final simplification0.0

    \[\leadsto \frac{x + y}{x - y}\]

Reproduce

herbie shell --seed 2020046 +o rules:numerics
(FPCore (x y)
  :name "Linear.Projection:perspective from linear-1.19.1.3, A"
  :precision binary64

  :herbie-target
  (/ 1 (- (/ x (+ x y)) (/ y (+ x y))))

  (/ (+ x y) (- x y)))