\left(x \cdot 3\right) \cdot y - z
\left(x \cdot y\right) \cdot 3 - z
double f(double x, double y, double z) {
double r841114 = x;
double r841115 = 3.0;
double r841116 = r841114 * r841115;
double r841117 = y;
double r841118 = r841116 * r841117;
double r841119 = z;
double r841120 = r841118 - r841119;
return r841120;
}
double f(double x, double y, double z) {
double r841121 = x;
double r841122 = y;
double r841123 = r841121 * r841122;
double r841124 = 3.0;
double r841125 = r841123 * r841124;
double r841126 = z;
double r841127 = r841125 - r841126;
return r841127;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 0.1
rmApplied associate-*l*0.1
Simplified0.1
rmApplied pow10.1
Applied pow10.1
Applied pow-prod-down0.1
Applied pow10.1
Applied pow-prod-down0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2020042
(FPCore (x y z)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, B"
:precision binary64
:herbie-target
(- (* x (* 3 y)) z)
(- (* (* x 3) y) z))