\left(x \cdot x + y\right) + y
y + \mathsf{fma}\left(x, x, y\right)double f(double x, double y) {
double r992908 = x;
double r992909 = r992908 * r992908;
double r992910 = y;
double r992911 = r992909 + r992910;
double r992912 = r992911 + r992910;
return r992912;
}
double f(double x, double y) {
double r992913 = y;
double r992914 = x;
double r992915 = fma(r992914, r992914, r992913);
double r992916 = r992913 + r992915;
return r992916;
}




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