\left(x \cdot x + y\right) + y
y + \mathsf{fma}\left(x, x, y\right)double f(double x, double y) {
double r497108 = x;
double r497109 = r497108 * r497108;
double r497110 = y;
double r497111 = r497109 + r497110;
double r497112 = r497111 + r497110;
return r497112;
}
double f(double x, double y) {
double r497113 = y;
double r497114 = x;
double r497115 = fma(r497114, r497114, r497113);
double r497116 = r497113 + r497115;
return r497116;
}




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