\left(x \cdot x + y\right) + y
\mathsf{fma}\left(y, 2, {x}^{2}\right)double f(double x, double y) {
double r757419 = x;
double r757420 = r757419 * r757419;
double r757421 = y;
double r757422 = r757420 + r757421;
double r757423 = r757422 + r757421;
return r757423;
}
double f(double x, double y) {
double r757424 = y;
double r757425 = 2.0;
double r757426 = x;
double r757427 = pow(r757426, r757425);
double r757428 = fma(r757424, r757425, r757427);
return r757428;
}




Bits error versus x




Bits error versus y
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Simplified0.0
rmApplied *-un-lft-identity0.0
Applied *-un-lft-identity0.0
Applied distribute-lft-out0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020089 +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))