\frac{x \cdot y}{z}\begin{array}{l}
\mathbf{if}\;x \cdot y = -\infty:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;x \cdot y \le -7.121739380084154 \cdot 10^{-271}:\\
\;\;\;\;\frac{x \cdot y}{z}\\
\mathbf{elif}\;x \cdot y \le -0.0:\\
\;\;\;\;\frac{x}{\frac{z}{y}}\\
\mathbf{elif}\;x \cdot y \le 8.8208746245571606 \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 r1263412 = x;
double r1263413 = y;
double r1263414 = r1263412 * r1263413;
double r1263415 = z;
double r1263416 = r1263414 / r1263415;
return r1263416;
}
double f(double x, double y, double z) {
double r1263417 = x;
double r1263418 = y;
double r1263419 = r1263417 * r1263418;
double r1263420 = -inf.0;
bool r1263421 = r1263419 <= r1263420;
double r1263422 = z;
double r1263423 = r1263418 / r1263422;
double r1263424 = r1263417 * r1263423;
double r1263425 = -7.121739380084154e-271;
bool r1263426 = r1263419 <= r1263425;
double r1263427 = r1263419 / r1263422;
double r1263428 = -0.0;
bool r1263429 = r1263419 <= r1263428;
double r1263430 = r1263422 / r1263418;
double r1263431 = r1263417 / r1263430;
double r1263432 = 8.82087462455716e+264;
bool r1263433 = r1263419 <= r1263432;
double r1263434 = r1263433 ? r1263427 : r1263431;
double r1263435 = r1263429 ? r1263431 : r1263434;
double r1263436 = r1263426 ? r1263427 : r1263435;
double r1263437 = r1263421 ? r1263424 : r1263436;
return r1263437;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 6.4 |
|---|---|
| Target | 6.5 |
| Herbie | 0.3 |
if (* x y) < -inf.0Initial program 64.0
rmApplied *-un-lft-identity64.0
Applied times-frac0.3
Simplified0.3
if -inf.0 < (* x y) < -7.121739380084154e-271 or -0.0 < (* x y) < 8.82087462455716e+264Initial program 0.3
if -7.121739380084154e-271 < (* x y) < -0.0 or 8.82087462455716e+264 < (* x y) Initial program 22.7
rmApplied associate-/l*0.1
Final simplification0.3
herbie shell --seed 2020025 +o rules:numerics
(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))