\frac{\frac{1}{x}}{y \cdot \left(1 + z \cdot z\right)}\begin{array}{l}
\mathbf{if}\;\frac{1}{x} \le -2.8963162947031292 \cdot 10^{-71}:\\
\;\;\;\;\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}}\\
\mathbf{elif}\;\frac{1}{x} \le 1.4134354570333115 \cdot 10^{231}:\\
\;\;\;\;\frac{\frac{\frac{1}{y}}{x}}{1 + z \cdot z}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{\frac{\sqrt[3]{1} \cdot \sqrt[3]{1}}{y}}{\sqrt{1 + z \cdot z}} \cdot \sqrt{\frac{\frac{\sqrt[3]{1}}{x}}{\sqrt{1 + z \cdot z}}}\right) \cdot \sqrt{\frac{\frac{\sqrt[3]{1}}{x}}{\sqrt{1 + z \cdot z}}}\\
\end{array}double f(double x, double y, double z) {
double r351055 = 1.0;
double r351056 = x;
double r351057 = r351055 / r351056;
double r351058 = y;
double r351059 = z;
double r351060 = r351059 * r351059;
double r351061 = r351055 + r351060;
double r351062 = r351058 * r351061;
double r351063 = r351057 / r351062;
return r351063;
}
double f(double x, double y, double z) {
double r351064 = 1.0;
double r351065 = x;
double r351066 = r351064 / r351065;
double r351067 = -2.896316294703129e-71;
bool r351068 = r351066 <= r351067;
double r351069 = cbrt(r351064);
double r351070 = r351069 * r351069;
double r351071 = y;
double r351072 = r351070 / r351071;
double r351073 = z;
double r351074 = r351073 * r351073;
double r351075 = r351064 + r351074;
double r351076 = sqrt(r351075);
double r351077 = r351072 / r351076;
double r351078 = r351069 / r351065;
double r351079 = r351078 / r351076;
double r351080 = r351077 * r351079;
double r351081 = 1.4134354570333115e+231;
bool r351082 = r351066 <= r351081;
double r351083 = r351064 / r351071;
double r351084 = r351083 / r351065;
double r351085 = r351084 / r351075;
double r351086 = sqrt(r351079);
double r351087 = r351077 * r351086;
double r351088 = r351087 * r351086;
double r351089 = r351082 ? r351085 : r351088;
double r351090 = r351068 ? r351080 : r351089;
return r351090;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 6.5 |
|---|---|
| Target | 5.8 |
| Herbie | 5.8 |
if (/ 1.0 x) < -2.896316294703129e-71Initial program 10.1
rmApplied add-sqr-sqrt10.1
Applied associate-*r*10.1
rmApplied *-un-lft-identity10.1
Applied add-cube-cbrt10.1
Applied times-frac10.1
Applied times-frac8.6
Simplified8.6
if -2.896316294703129e-71 < (/ 1.0 x) < 1.4134354570333115e+231Initial program 4.0
rmApplied associate-/r*3.7
Simplified3.7
if 1.4134354570333115e+231 < (/ 1.0 x) Initial program 19.5
rmApplied add-sqr-sqrt19.5
Applied associate-*r*19.5
rmApplied *-un-lft-identity19.5
Applied add-cube-cbrt19.5
Applied times-frac19.5
Applied times-frac17.2
Simplified16.6
rmApplied add-sqr-sqrt16.8
Applied associate-*r*16.7
Final simplification5.8
herbie shell --seed 2020035
(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)))))