\left(x \cdot x + y\right) + y
\mathsf{fma}\left(x, x, y + y\right)double f(double x, double y) {
double r22184563 = x;
double r22184564 = r22184563 * r22184563;
double r22184565 = y;
double r22184566 = r22184564 + r22184565;
double r22184567 = r22184566 + r22184565;
return r22184567;
}
double f(double x, double y) {
double r22184568 = x;
double r22184569 = y;
double r22184570 = r22184569 + r22184569;
double r22184571 = fma(r22184568, r22184568, r22184570);
return r22184571;
}




Bits error versus x




Bits error versus y
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0 |
Initial program 0.0
Simplified0.0
rmApplied fma-udef0.0
Applied associate-+l+0.0
rmApplied fma-def0
Final simplification0
herbie shell --seed 2019174 +o rules:numerics
(FPCore (x y)
:name "Data.Random.Distribution.Normal:normalTail from random-fu-0.2.6.2"
:herbie-target
(+ (+ y y) (* x x))
(+ (+ (* x x) y) y))