\left(\left(x \cdot 3\right) \cdot x\right) \cdot y
x \cdot \left(3 \cdot \left(x \cdot y\right)\right)
double f(double x, double y) {
double r685820 = x;
double r685821 = 3.0;
double r685822 = r685820 * r685821;
double r685823 = r685822 * r685820;
double r685824 = y;
double r685825 = r685823 * r685824;
return r685825;
}
double f(double x, double y) {
double r685826 = x;
double r685827 = 3.0;
double r685828 = y;
double r685829 = r685826 * r685828;
double r685830 = r685827 * r685829;
double r685831 = r685826 * r685830;
return r685831;
}




Bits error versus x




Bits error versus y
Results
| Original | 10.7 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 10.7
rmApplied associate-*l*0.2
rmApplied associate-*l*0.2
Final simplification0.2
herbie shell --seed 2020036
(FPCore (x y)
:name "Diagrams.Segment:$catParam from diagrams-lib-1.3.0.3, A"
:precision binary64
:herbie-target
(* (* x 3) (* x y))
(* (* (* x 3) x) y))