Average Error: 0.0 → 0.0
Time: 4.7s
Precision: 64
\[\frac{x - y}{x + y}\]
\[\frac{x - y}{y + x}\]
\frac{x - y}{x + y}
\frac{x - y}{y + x}
double f(double x, double y) {
        double r15574262 = x;
        double r15574263 = y;
        double r15574264 = r15574262 - r15574263;
        double r15574265 = r15574262 + r15574263;
        double r15574266 = r15574264 / r15574265;
        return r15574266;
}

double f(double x, double y) {
        double r15574267 = x;
        double r15574268 = y;
        double r15574269 = r15574267 - r15574268;
        double r15574270 = r15574268 + r15574267;
        double r15574271 = r15574269 / r15574270;
        return r15574271;
}

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{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}{y + x}\]

Reproduce

herbie shell --seed 2019156 
(FPCore (x y)
  :name "Data.Colour.RGB:hslsv from colour-2.3.3, D"

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

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