\left(\left(x \cdot x + y \cdot y\right) + y \cdot y\right) + y \cdot y
x \cdot x + \left(\left(\sqrt{\sqrt[3]{3}} \cdot \left(\sqrt{\sqrt[3]{3}} \cdot y\right)\right) \cdot y\right) \cdot \left(\sqrt[3]{3} \cdot \sqrt[3]{3}\right)double f(double x, double y) {
double r36490160 = x;
double r36490161 = r36490160 * r36490160;
double r36490162 = y;
double r36490163 = r36490162 * r36490162;
double r36490164 = r36490161 + r36490163;
double r36490165 = r36490164 + r36490163;
double r36490166 = r36490165 + r36490163;
return r36490166;
}
double f(double x, double y) {
double r36490167 = x;
double r36490168 = r36490167 * r36490167;
double r36490169 = 3.0;
double r36490170 = cbrt(r36490169);
double r36490171 = sqrt(r36490170);
double r36490172 = y;
double r36490173 = r36490171 * r36490172;
double r36490174 = r36490171 * r36490173;
double r36490175 = r36490174 * r36490172;
double r36490176 = r36490170 * r36490170;
double r36490177 = r36490175 * r36490176;
double r36490178 = r36490168 + r36490177;
return r36490178;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.2 |
Initial program 0.1
Simplified0.1
rmApplied associate-*r*0.1
rmApplied add-cube-cbrt0.1
Applied associate-*l*0.2
Applied associate-*l*0.2
rmApplied add-sqr-sqrt0.3
Applied associate-*l*0.2
Final simplification0.2
herbie shell --seed 2019158
(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)))