\left(x \cdot x + y\right) + y
y + \mathsf{fma}\left(x, x, y\right)double f(double x, double y) {
double r97769 = x;
double r97770 = r97769 * r97769;
double r97771 = y;
double r97772 = r97770 + r97771;
double r97773 = r97772 + r97771;
return r97773;
}
double f(double x, double y) {
double r97774 = y;
double r97775 = x;
double r97776 = fma(r97775, r97775, r97774);
double r97777 = r97774 + r97776;
return r97777;
}




Bits error versus x




Bits error versus y
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020045 +o rules:numerics
(FPCore (x y)
:name "Data.Random.Distribution.Normal:normalTail from random-fu-0.2.6.2"
:precision binary64
:herbie-target
(+ (+ y y) (* x x))
(+ (+ (* x x) y) y))