\frac{x \cdot y}{z}\frac{x}{\frac{z}{y}}double f(double x, double y, double z) {
double r548458 = x;
double r548459 = y;
double r548460 = r548458 * r548459;
double r548461 = z;
double r548462 = r548460 / r548461;
return r548462;
}
double f(double x, double y, double z) {
double r548463 = x;
double r548464 = z;
double r548465 = y;
double r548466 = r548464 / r548465;
double r548467 = r548463 / r548466;
return r548467;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 6.1 |
|---|---|
| Target | 5.6 |
| Herbie | 6.1 |
Initial program 6.1
rmApplied *-un-lft-identity6.1
Applied times-frac6.0
Simplified6.0
rmApplied add-cube-cbrt6.8
Applied add-cube-cbrt7.0
Applied times-frac7.0
Applied associate-*r*1.9
rmApplied add-cube-cbrt2.1
Applied associate-*r*2.2
Final simplification6.1
herbie shell --seed 2019298
(FPCore (x y z)
:name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, A"
:precision binary64
:herbie-target
(if (< z -4.262230790519429e-138) (/ (* x y) z) (if (< z 1.70421306606504721e-164) (/ x (/ z y)) (* (/ x z) y)))
(/ (* x y) z))