\left(x \cdot x + y\right) + y
y + \mathsf{fma}\left(x, x, y\right)double f(double x, double y) {
double r757902 = x;
double r757903 = r757902 * r757902;
double r757904 = y;
double r757905 = r757903 + r757904;
double r757906 = r757905 + r757904;
return r757906;
}
double f(double x, double y) {
double r757907 = y;
double r757908 = x;
double r757909 = fma(r757908, r757908, r757907);
double r757910 = r757907 + r757909;
return r757910;
}




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 2020047 +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))