x \cdot \frac{\frac{y}{z} \cdot t}{t}\begin{array}{l}
\mathbf{if}\;\frac{y}{z} = -\infty:\\
\;\;\;\;\frac{1}{\frac{z}{x \cdot y}}\\
\mathbf{elif}\;\frac{y}{z} \le -4.63381832549882 \cdot 10^{-264}:\\
\;\;\;\;\frac{x}{\frac{z}{y}}\\
\mathbf{elif}\;\frac{y}{z} \le 7.18495937326560576 \cdot 10^{-264}:\\
\;\;\;\;\frac{x \cdot y}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{z}{y}}\\
\end{array}double f(double x, double y, double z, double t) {
double r307 = x;
double r308 = y;
double r309 = z;
double r310 = r308 / r309;
double r311 = t;
double r312 = r310 * r311;
double r313 = r312 / r311;
double r314 = r307 * r313;
return r314;
}
double f(double x, double y, double z, double __attribute__((unused)) t) {
double r315 = y;
double r316 = z;
double r317 = r315 / r316;
double r318 = -inf.0;
bool r319 = r317 <= r318;
double r320 = 1.0;
double r321 = x;
double r322 = r321 * r315;
double r323 = r316 / r322;
double r324 = r320 / r323;
double r325 = -4.63381832549882e-264;
bool r326 = r317 <= r325;
double r327 = r316 / r315;
double r328 = r321 / r327;
double r329 = 7.184959373265606e-264;
bool r330 = r317 <= r329;
double r331 = r322 / r316;
double r332 = r330 ? r331 : r328;
double r333 = r326 ? r328 : r332;
double r334 = r319 ? r324 : r333;
return r334;
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t
Results
if (/ y z) < -inf.0Initial program 64.0
Simplified64.0
rmApplied *-un-lft-identity64.0
Applied add-cube-cbrt64.0
Applied times-frac64.0
Applied associate-*r*14.6
Simplified14.6
rmApplied add-cube-cbrt14.6
Applied cbrt-prod14.7
Taylor expanded around 0 0.2
rmApplied clear-num0.3
if -inf.0 < (/ y z) < -4.63381832549882e-264 or 7.184959373265606e-264 < (/ y z) Initial program 12.4
Simplified2.1
rmApplied *-un-lft-identity2.1
Applied add-cube-cbrt3.1
Applied times-frac3.1
Applied associate-*r*5.7
Simplified5.7
rmApplied add-cube-cbrt5.8
Applied cbrt-prod5.9
Taylor expanded around 0 7.9
rmApplied associate-/l*2.0
if -4.63381832549882e-264 < (/ y z) < 7.184959373265606e-264Initial program 19.8
Simplified15.5
rmApplied *-un-lft-identity15.5
Applied add-cube-cbrt15.6
Applied times-frac15.6
Applied associate-*r*3.9
Simplified3.9
rmApplied add-cube-cbrt3.9
Applied cbrt-prod4.0
Taylor expanded around 0 0.1
Final simplification1.6
herbie shell --seed 2020025 +o rules:numerics
(FPCore (x y z t)
:name "Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1"
:precision binary64
(* x (/ (* (/ y z) t) t)))