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




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 6.1 |
|---|---|
| Target | 6.1 |
| Herbie | 2.2 |
Initial program 6.1
rmApplied *-un-lft-identity_binary646.1
Applied times-frac_binary646.0
Simplified6.0
rmApplied add-cube-cbrt_binary646.8
Applied add-cube-cbrt_binary646.9
Applied times-frac_binary646.9
Applied associate-*r*_binary642.0
rmApplied add-cube-cbrt_binary642.2
Final simplification2.2
herbie shell --seed 2020277
(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))