\left(x \cdot x + y\right) + y
y + \mathsf{fma}\left(x, x, y\right)double f(double x, double y) {
double r507897 = x;
double r507898 = r507897 * r507897;
double r507899 = y;
double r507900 = r507898 + r507899;
double r507901 = r507900 + r507899;
return r507901;
}
double f(double x, double y) {
double r507902 = y;
double r507903 = x;
double r507904 = fma(r507903, r507903, r507902);
double r507905 = r507902 + r507904;
return r507905;
}




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