\left(x \cdot x + y\right) + y
y + \mathsf{fma}\left(x, x, y\right)double f(double x, double y) {
double r839719 = x;
double r839720 = r839719 * r839719;
double r839721 = y;
double r839722 = r839720 + r839721;
double r839723 = r839722 + r839721;
return r839723;
}
double f(double x, double y) {
double r839724 = y;
double r839725 = x;
double r839726 = fma(r839725, r839725, r839724);
double r839727 = r839724 + r839726;
return r839727;
}




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