\frac{x - y}{x + y}\frac{1}{\frac{x + y}{x}} - \frac{1}{\frac{x + y}{y}}double f(double x, double y) {
double r39873998 = x;
double r39873999 = y;
double r39874000 = r39873998 - r39873999;
double r39874001 = r39873998 + r39873999;
double r39874002 = r39874000 / r39874001;
return r39874002;
}
double f(double x, double y) {
double r39874003 = 1.0;
double r39874004 = x;
double r39874005 = y;
double r39874006 = r39874004 + r39874005;
double r39874007 = r39874006 / r39874004;
double r39874008 = r39874003 / r39874007;
double r39874009 = r39874006 / r39874005;
double r39874010 = r39874003 / r39874009;
double r39874011 = r39874008 - r39874010;
return r39874011;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied div-sub0.0
rmApplied clear-num0.0
rmApplied clear-num0.0
Final simplification0.0
herbie shell --seed 2019170
(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)))