\left(x \cdot x + y\right) + y
\mathsf{fma}\left(y, 2, {x}^{2}\right)double f(double x, double y) {
double r3743 = x;
double r3744 = r3743 * r3743;
double r3745 = y;
double r3746 = r3744 + r3745;
double r3747 = r3746 + r3745;
return r3747;
}
double f(double x, double y) {
double r3748 = y;
double r3749 = 2.0;
double r3750 = x;
double r3751 = pow(r3750, r3749);
double r3752 = fma(r3748, r3749, r3751);
return r3752;
}




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