\frac{x \cdot y}{z}
\left(y \cdot \frac{\sqrt[3]{x} \cdot \sqrt[3]{x}}{\sqrt[3]{z} \cdot \sqrt[3]{z}}\right) \cdot \frac{\sqrt[3]{x}}{\sqrt[3]{z}}
(FPCore (x y z) :precision binary64 (/ (* x y) z))
(FPCore (x y z) :precision binary64 (* (* y (/ (* (cbrt x) (cbrt x)) (* (cbrt z) (cbrt z)))) (/ (cbrt x) (cbrt z))))
double code(double x, double y, double z) {
return (x * y) / z;
}
double code(double x, double y, double z) {
return (y * ((cbrt(x) * cbrt(x)) / (cbrt(z) * cbrt(z)))) * (cbrt(x) / cbrt(z));
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 6.4 |
|---|---|
| Target | 6.4 |
| Herbie | 2.1 |
Initial program 6.4
rmApplied add-cube-cbrt_binary647.2
Applied associate-/r*_binary647.2
Simplified5.5
rmApplied *-un-lft-identity_binary645.5
Applied cbrt-prod_binary645.5
Applied times-frac_binary647.1
Simplified7.1
Simplified6.3
rmApplied add-cube-cbrt_binary647.1
Applied add-cube-cbrt_binary647.3
Applied times-frac_binary647.2
Applied associate-*r*_binary642.1
Final simplification2.1
herbie shell --seed 2021190
(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.7042130660650472e-164) (/ x (/ z y)) (* (/ x z) y)))
(/ (* x y) z))