\left(x \cdot x + y\right) + y
\mathsf{fma}\left(y, 2, {x}^{2}\right)double f(double x, double y) {
double r789142 = x;
double r789143 = r789142 * r789142;
double r789144 = y;
double r789145 = r789143 + r789144;
double r789146 = r789145 + r789144;
return r789146;
}
double f(double x, double y) {
double r789147 = y;
double r789148 = 2.0;
double r789149 = x;
double r789150 = pow(r789149, r789148);
double r789151 = fma(r789147, r789148, r789150);
return r789151;
}




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