\[\begin{array}{l}
\mathbf{if}\;z \cdot t \leq -\infty:\\
\;\;\;\;\begin{array}{l}
\mathbf{if}\;x \ne 0:\\
\;\;\;\;\frac{\frac{-1}{t}}{\frac{z}{x}}\\
\mathbf{else}:\\
\;\;\;\;-\frac{\frac{x}{z}}{t}\\
\end{array}\\
\mathbf{elif}\;z \cdot t \leq 10^{+282}:\\
\;\;\;\;\frac{x}{y - z \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{t} \cdot \frac{-1}{z}\\
\end{array}
\]
(FPCore (x y z t) :precision binary64 (/ x (- y (* z t))))
↓
(FPCore (x y z t)
:precision binary64
(if (<= (* z t) (- INFINITY))
(if (!= x 0.0) (/ (/ -1.0 t) (/ z x)) (- (/ (/ x z) t)))
(if (<= (* z t) 1e+282) (/ x (- y (* z t))) (* (/ x t) (/ -1.0 z)))))
double code(double x, double y, double z, double t) {
return x / (y - (z * t));
}
herbie shell --seed 2023010
(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))))