\left(x \cdot x + y\right) + y
y + \mathsf{fma}\left(x, x, y\right)double f(double x, double y) {
double r465818 = x;
double r465819 = r465818 * r465818;
double r465820 = y;
double r465821 = r465819 + r465820;
double r465822 = r465821 + r465820;
return r465822;
}
double f(double x, double y) {
double r465823 = y;
double r465824 = x;
double r465825 = fma(r465824, r465824, r465823);
double r465826 = r465823 + r465825;
return r465826;
}




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