\[\begin{array}{l}
\mathbf{if}\;z \cdot t \leq -\infty:\\
\;\;\;\;-\frac{\frac{x}{z}}{t}\\
\mathbf{elif}\;z \cdot t \leq 2 \cdot 10^{+288}:\\
\;\;\;\;\frac{x}{y - z \cdot t}\\
\mathbf{else}:\\
\;\;\;\;-\frac{\frac{x}{z} \cdot -3}{t \cdot -3}\\
\end{array}
\]
(FPCore (x y z t) :precision binary64 (/ x (- y (* z t))))
↓
(FPCore (x y z t)
:precision binary64
(if (<= (* z t) (- INFINITY))
(- (/ (/ x z) t))
(if (<= (* z t) 2e+288)
(/ x (- y (* z t)))
(- (/ (* (/ x z) -3.0) (* t -3.0))))))
double code(double x, double y, double z, double t) {
return x / (y - (z * t));
}
herbie shell --seed 2023033
(FPCore (x y z t)
:name "Diagrams.Solve.Tridiagonal:solveTriDiagonal from diagrams-solve-0.1, B"
:precision binary64
:herbie-target
(if (< x -1.618195973607049e+50) (/ 1.0 (- (/ y x) (* (/ z x) t))) (if (< x 2.1378306434876444e+131) (/ x (- y (* z t))) (/ 1.0 (- (/ y x) (* (/ z x) t)))))
(/ x (- y (* z t))))