\left(x \cdot x + y\right) + y
y + \mathsf{fma}\left(x, x, y\right)double f(double x, double y) {
double r326686 = x;
double r326687 = r326686 * r326686;
double r326688 = y;
double r326689 = r326687 + r326688;
double r326690 = r326689 + r326688;
return r326690;
}
double f(double x, double y) {
double r326691 = y;
double r326692 = x;
double r326693 = fma(r326692, r326692, r326691);
double r326694 = r326691 + r326693;
return r326694;
}




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