\left(\left(x \cdot x + y \cdot y\right) + y \cdot y\right) + y \cdot y
x \cdot x + \left(3 \cdot y\right) \cdot y
double f(double x, double y) {
double r553195 = x;
double r553196 = r553195 * r553195;
double r553197 = y;
double r553198 = r553197 * r553197;
double r553199 = r553196 + r553198;
double r553200 = r553199 + r553198;
double r553201 = r553200 + r553198;
return r553201;
}
double f(double x, double y) {
double r553202 = x;
double r553203 = r553202 * r553202;
double r553204 = 3.0;
double r553205 = y;
double r553206 = r553204 * r553205;
double r553207 = r553206 * r553205;
double r553208 = r553203 + r553207;
return r553208;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 0.1
rmApplied associate-+l+0.1
Simplified0.1
rmApplied associate-+l+0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2019362
(FPCore (x y)
:name "Linear.Quaternion:$c/ from linear-1.19.1.3, E"
:precision binary64
:herbie-target
(+ (* x x) (* y (+ y (+ y y))))
(+ (+ (+ (* x x) (* y y)) (* y y)) (* y y)))