\left(x \cdot x + y\right) + y
y + \mathsf{fma}\left(x, x, y\right)double f(double x, double y) {
double r420621 = x;
double r420622 = r420621 * r420621;
double r420623 = y;
double r420624 = r420622 + r420623;
double r420625 = r420624 + r420623;
return r420625;
}
double f(double x, double y) {
double r420626 = y;
double r420627 = x;
double r420628 = fma(r420627, r420627, r420626);
double r420629 = r420626 + r420628;
return r420629;
}




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