\left(\left(x \cdot x + y \cdot y\right) + y \cdot y\right) + y \cdot y
\left(3 \cdot y\right) \cdot y + x \cdot x
double f(double x, double y) {
double r26549467 = x;
double r26549468 = r26549467 * r26549467;
double r26549469 = y;
double r26549470 = r26549469 * r26549469;
double r26549471 = r26549468 + r26549470;
double r26549472 = r26549471 + r26549470;
double r26549473 = r26549472 + r26549470;
return r26549473;
}
double f(double x, double y) {
double r26549474 = 3.0;
double r26549475 = y;
double r26549476 = r26549474 * r26549475;
double r26549477 = r26549476 * r26549475;
double r26549478 = x;
double r26549479 = r26549478 * r26549478;
double r26549480 = r26549477 + r26549479;
return r26549480;
}




Bits error versus x




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