\left(x \cdot x + y\right) + y
y + \mathsf{fma}\left(x, x, y\right)double f(double x, double y) {
double r479120 = x;
double r479121 = r479120 * r479120;
double r479122 = y;
double r479123 = r479121 + r479122;
double r479124 = r479123 + r479122;
return r479124;
}
double f(double x, double y) {
double r479125 = y;
double r479126 = x;
double r479127 = fma(r479126, r479126, r479125);
double r479128 = r479125 + r479127;
return r479128;
}




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