\frac{x \cdot y}{\left(\left(x + y\right) \cdot \left(x + y\right)\right) \cdot \left(\left(x + y\right) + 1\right)}\frac{\frac{x}{x + y} \cdot \frac{y}{\left(x + y\right) + 1}}{x + y}double f(double x, double y) {
double r482564 = x;
double r482565 = y;
double r482566 = r482564 * r482565;
double r482567 = r482564 + r482565;
double r482568 = r482567 * r482567;
double r482569 = 1.0;
double r482570 = r482567 + r482569;
double r482571 = r482568 * r482570;
double r482572 = r482566 / r482571;
return r482572;
}
double f(double x, double y) {
double r482573 = x;
double r482574 = y;
double r482575 = r482573 + r482574;
double r482576 = r482573 / r482575;
double r482577 = 1.0;
double r482578 = r482575 + r482577;
double r482579 = r482574 / r482578;
double r482580 = r482576 * r482579;
double r482581 = r482580 / r482575;
return r482581;
}




Bits error versus x




Bits error versus y
Results
| Original | 20.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 20.1
rmApplied add-cube-cbrt20.4
Applied associate-*r*20.4
rmApplied times-frac8.3
Simplified8.3
rmApplied *-un-lft-identity8.3
Applied times-frac0.7
Simplified0.2
rmApplied associate-*r/0.2
Applied associate-*l/0.2
Simplified0.1
Final simplification0.1
herbie shell --seed 2019350
(FPCore (x y)
:name "Numeric.SpecFunctions:incompleteBetaApprox from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(/ (/ (/ x (+ (+ y 1) x)) (+ y x)) (/ 1 (/ y (+ y x))))
(/ (* x y) (* (* (+ x y) (+ x y)) (+ (+ x y) 1))))