\left(x \cdot x + y\right) + y
y + \mathsf{fma}\left(x, x, y\right)double f(double x, double y) {
double r872657 = x;
double r872658 = r872657 * r872657;
double r872659 = y;
double r872660 = r872658 + r872659;
double r872661 = r872660 + r872659;
return r872661;
}
double f(double x, double y) {
double r872662 = y;
double r872663 = x;
double r872664 = fma(r872663, r872663, r872662);
double r872665 = r872662 + r872664;
return r872665;
}




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