\left(3 \cdot \sqrt{x}\right) \cdot \left(\left(y + \frac{1}{x \cdot 9}\right) - 1\right)\sqrt{x} \cdot \left(3 \cdot \left(-1 + \left(\frac{0.1111111111111111}{x} + y\right)\right)\right)(FPCore (x y) :precision binary64 (* (* 3.0 (sqrt x)) (- (+ y (/ 1.0 (* x 9.0))) 1.0)))
(FPCore (x y) :precision binary64 (* (sqrt x) (* 3.0 (+ -1.0 (+ (/ 0.1111111111111111 x) y)))))
double code(double x, double y) {
return (3.0 * sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0);
}
double code(double x, double y) {
return sqrt(x) * (3.0 * (-1.0 + ((0.1111111111111111 / x) + y)));
}




Bits error versus x




Bits error versus y
Results
| Original | 0.4 |
|---|---|
| Target | 0.4 |
| Herbie | 0.4 |
Initial program 0.4
rmApplied associate-*l*_binary64_119540.4
Simplified0.4
rmApplied add-sqr-sqrt_binary64_120350.4
Applied associate-/r*_binary64_119570.4
rmApplied associate-*r*_binary64_119530.4
Simplified0.4
rmApplied div-inv_binary64_120100.4
Applied associate-*l*_binary64_119540.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2020356
(FPCore (x y)
:name "Numeric.SpecFunctions:incompleteGamma from math-functions-0.1.5.2, B"
:precision binary64
:herbie-target
(* 3.0 (+ (* y (sqrt x)) (* (- (/ 1.0 (* x 9.0)) 1.0) (sqrt x))))
(* (* 3.0 (sqrt x)) (- (+ y (/ 1.0 (* x 9.0))) 1.0)))