\frac{\frac{1}{x}}{y \cdot \left(1 + z \cdot z\right)}\frac{\frac{\sqrt[3]{1} \cdot \sqrt[3]{1}}{y}}{\sqrt{1 + z \cdot z}} \cdot \frac{\frac{\sqrt[3]{1}}{x}}{\sqrt{1 + z \cdot z}}double f(double x, double y, double z) {
double r338842 = 1.0;
double r338843 = x;
double r338844 = r338842 / r338843;
double r338845 = y;
double r338846 = z;
double r338847 = r338846 * r338846;
double r338848 = r338842 + r338847;
double r338849 = r338845 * r338848;
double r338850 = r338844 / r338849;
return r338850;
}
double f(double x, double y, double z) {
double r338851 = 1.0;
double r338852 = cbrt(r338851);
double r338853 = r338852 * r338852;
double r338854 = y;
double r338855 = r338853 / r338854;
double r338856 = z;
double r338857 = r338856 * r338856;
double r338858 = r338851 + r338857;
double r338859 = sqrt(r338858);
double r338860 = r338855 / r338859;
double r338861 = x;
double r338862 = r338852 / r338861;
double r338863 = r338862 / r338859;
double r338864 = r338860 * r338863;
return r338864;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 6.6 |
|---|---|
| Target | 5.9 |
| Herbie | 6.1 |
Initial program 6.6
rmApplied *-un-lft-identity6.6
Applied add-cube-cbrt6.6
Applied times-frac6.6
Applied times-frac6.3
Simplified6.3
rmApplied add-sqr-sqrt6.3
Applied *-un-lft-identity6.3
Applied *-un-lft-identity6.3
Applied times-frac6.3
Applied times-frac6.3
Applied associate-*r*6.1
Simplified6.1
Final simplification6.1
herbie shell --seed 2020003
(FPCore (x y z)
:name "Statistics.Distribution.CauchyLorentz:$cdensity from math-functions-0.1.5.2"
:precision binary64
:herbie-target
(if (< (* y (+ 1 (* z z))) #f) (/ (/ 1 y) (* (+ 1 (* z z)) x)) (if (< (* y (+ 1 (* z z))) 8.680743250567252e+305) (/ (/ 1 x) (* (+ 1 (* z z)) y)) (/ (/ 1 y) (* (+ 1 (* z z)) x))))
(/ (/ 1 x) (* y (+ 1 (* z z)))))