
(FPCore (x y z t) :precision binary64 (/ x (- y (* z t))))
double code(double x, double y, double z, double t) {
return x / (y - (z * t));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x / (y - (z * t))
end function
public static double code(double x, double y, double z, double t) {
return x / (y - (z * t));
}
def code(x, y, z, t): return x / (y - (z * t))
function code(x, y, z, t) return Float64(x / Float64(y - Float64(z * t))) end
function tmp = code(x, y, z, t) tmp = x / (y - (z * t)); end
code[x_, y_, z_, t_] := N[(x / N[(y - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y - z \cdot t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 6 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (/ x (- y (* z t))))
double code(double x, double y, double z, double t) {
return x / (y - (z * t));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x / (y - (z * t))
end function
public static double code(double x, double y, double z, double t) {
return x / (y - (z * t));
}
def code(x, y, z, t): return x / (y - (z * t))
function code(x, y, z, t) return Float64(x / Float64(y - Float64(z * t))) end
function tmp = code(x, y, z, t) tmp = x / (y - (z * t)); end
code[x_, y_, z_, t_] := N[(x / N[(y - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y - z \cdot t}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= (* z t) (- INFINITY)) (/ (/ x t) (- z)) (if (<= (* z t) 5e+159) (/ x (- y (* z t))) (/ (/ x z) (- t)))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if ((z * t) <= -((double) INFINITY)) {
tmp = (x / t) / -z;
} else if ((z * t) <= 5e+159) {
tmp = x / (y - (z * t));
} else {
tmp = (x / z) / -t;
}
return tmp;
}
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z * t) <= -Double.POSITIVE_INFINITY) {
tmp = (x / t) / -z;
} else if ((z * t) <= 5e+159) {
tmp = x / (y - (z * t));
} else {
tmp = (x / z) / -t;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if (z * t) <= -math.inf: tmp = (x / t) / -z elif (z * t) <= 5e+159: tmp = x / (y - (z * t)) else: tmp = (x / z) / -t return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (Float64(z * t) <= Float64(-Inf)) tmp = Float64(Float64(x / t) / Float64(-z)); elseif (Float64(z * t) <= 5e+159) tmp = Float64(x / Float64(y - Float64(z * t))); else tmp = Float64(Float64(x / z) / Float64(-t)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if ((z * t) <= -Inf)
tmp = (x / t) / -z;
elseif ((z * t) <= 5e+159)
tmp = x / (y - (z * t));
else
tmp = (x / z) / -t;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[N[(z * t), $MachinePrecision], (-Infinity)], N[(N[(x / t), $MachinePrecision] / (-z)), $MachinePrecision], If[LessEqual[N[(z * t), $MachinePrecision], 5e+159], N[(x / N[(y - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / z), $MachinePrecision] / (-t)), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \cdot t \leq -\infty:\\
\;\;\;\;\frac{\frac{x}{t}}{-z}\\
\mathbf{elif}\;z \cdot t \leq 5 \cdot 10^{+159}:\\
\;\;\;\;\frac{x}{y - z \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{z}}{-t}\\
\end{array}
\end{array}
if (*.f64 z t) < -inf.0Initial program 76.4%
clear-num76.4%
associate-/r/76.4%
Applied egg-rr76.4%
Taylor expanded in y around 0 76.4%
mul-1-neg76.4%
associate-/r*99.9%
distribute-neg-frac299.9%
Simplified99.9%
if -inf.0 < (*.f64 z t) < 5.00000000000000003e159Initial program 99.9%
if 5.00000000000000003e159 < (*.f64 z t) Initial program 76.1%
Taylor expanded in y around -inf 64.1%
mul-1-neg64.1%
*-commutative64.1%
distribute-rgt-neg-in64.1%
*-commutative64.1%
associate-/l*64.2%
fma-neg64.2%
metadata-eval64.2%
Simplified64.2%
Taylor expanded in z around inf 64.1%
associate-/l*64.2%
Simplified64.2%
Taylor expanded in x around 0 76.1%
mul-1-neg76.1%
distribute-frac-neg276.1%
distribute-lft-neg-in76.1%
associate-/l/99.8%
Simplified99.8%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (or (<= y -1.3e-33) (not (<= y 7e-22))) (/ x y) (/ (/ x z) (- t))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.3e-33) || !(y <= 7e-22)) {
tmp = x / y;
} else {
tmp = (x / z) / -t;
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-1.3d-33)) .or. (.not. (y <= 7d-22))) then
tmp = x / y
else
tmp = (x / z) / -t
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.3e-33) || !(y <= 7e-22)) {
tmp = x / y;
} else {
tmp = (x / z) / -t;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if (y <= -1.3e-33) or not (y <= 7e-22): tmp = x / y else: tmp = (x / z) / -t return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if ((y <= -1.3e-33) || !(y <= 7e-22)) tmp = Float64(x / y); else tmp = Float64(Float64(x / z) / Float64(-t)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if ((y <= -1.3e-33) || ~((y <= 7e-22)))
tmp = x / y;
else
tmp = (x / z) / -t;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.3e-33], N[Not[LessEqual[y, 7e-22]], $MachinePrecision]], N[(x / y), $MachinePrecision], N[(N[(x / z), $MachinePrecision] / (-t)), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.3 \cdot 10^{-33} \lor \neg \left(y \leq 7 \cdot 10^{-22}\right):\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{z}}{-t}\\
\end{array}
\end{array}
if y < -1.29999999999999997e-33 or 7.00000000000000011e-22 < y Initial program 95.0%
Taylor expanded in y around inf 75.5%
if -1.29999999999999997e-33 < y < 7.00000000000000011e-22Initial program 95.1%
Taylor expanded in y around -inf 85.7%
mul-1-neg85.7%
*-commutative85.7%
distribute-rgt-neg-in85.7%
*-commutative85.7%
associate-/l*76.1%
fma-neg76.1%
metadata-eval76.1%
Simplified76.1%
Taylor expanded in z around inf 69.0%
associate-/l*58.7%
Simplified58.7%
Taylor expanded in x around 0 78.4%
mul-1-neg78.4%
distribute-frac-neg278.4%
distribute-lft-neg-in78.4%
associate-/l/77.0%
Simplified77.0%
Final simplification76.2%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (or (<= y -2.3e-33) (not (<= y 8.2e-23))) (/ x y) (/ (- x) (* z t))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -2.3e-33) || !(y <= 8.2e-23)) {
tmp = x / y;
} else {
tmp = -x / (z * t);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-2.3d-33)) .or. (.not. (y <= 8.2d-23))) then
tmp = x / y
else
tmp = -x / (z * t)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -2.3e-33) || !(y <= 8.2e-23)) {
tmp = x / y;
} else {
tmp = -x / (z * t);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if (y <= -2.3e-33) or not (y <= 8.2e-23): tmp = x / y else: tmp = -x / (z * t) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if ((y <= -2.3e-33) || !(y <= 8.2e-23)) tmp = Float64(x / y); else tmp = Float64(Float64(-x) / Float64(z * t)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if ((y <= -2.3e-33) || ~((y <= 8.2e-23)))
tmp = x / y;
else
tmp = -x / (z * t);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[Or[LessEqual[y, -2.3e-33], N[Not[LessEqual[y, 8.2e-23]], $MachinePrecision]], N[(x / y), $MachinePrecision], N[((-x) / N[(z * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.3 \cdot 10^{-33} \lor \neg \left(y \leq 8.2 \cdot 10^{-23}\right):\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{z \cdot t}\\
\end{array}
\end{array}
if y < -2.29999999999999986e-33 or 8.20000000000000059e-23 < y Initial program 95.0%
Taylor expanded in y around inf 75.5%
if -2.29999999999999986e-33 < y < 8.20000000000000059e-23Initial program 95.1%
Taylor expanded in y around 0 78.4%
associate-*r/78.4%
neg-mul-178.4%
Simplified78.4%
Final simplification76.9%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (or (<= t -7.1e-37) (not (<= t 1.6e+201))) (/ x (* z t)) (/ x y)))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -7.1e-37) || !(t <= 1.6e+201)) {
tmp = x / (z * t);
} else {
tmp = x / y;
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((t <= (-7.1d-37)) .or. (.not. (t <= 1.6d+201))) then
tmp = x / (z * t)
else
tmp = x / y
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -7.1e-37) || !(t <= 1.6e+201)) {
tmp = x / (z * t);
} else {
tmp = x / y;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if (t <= -7.1e-37) or not (t <= 1.6e+201): tmp = x / (z * t) else: tmp = x / y return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if ((t <= -7.1e-37) || !(t <= 1.6e+201)) tmp = Float64(x / Float64(z * t)); else tmp = Float64(x / y); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if ((t <= -7.1e-37) || ~((t <= 1.6e+201)))
tmp = x / (z * t);
else
tmp = x / y;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[Or[LessEqual[t, -7.1e-37], N[Not[LessEqual[t, 1.6e+201]], $MachinePrecision]], N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision], N[(x / y), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.1 \cdot 10^{-37} \lor \neg \left(t \leq 1.6 \cdot 10^{+201}\right):\\
\;\;\;\;\frac{x}{z \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\end{array}
if t < -7.09999999999999978e-37 or 1.6e201 < t Initial program 91.9%
clear-num91.7%
associate-/r/91.6%
Applied egg-rr91.6%
Taylor expanded in y around 0 65.4%
mul-1-neg65.4%
associate-/r*72.2%
distribute-neg-frac272.2%
Simplified72.2%
add-sqr-sqrt39.8%
sqrt-unprod48.6%
sqr-neg48.6%
sqrt-prod16.9%
add-sqr-sqrt39.3%
*-un-lft-identity39.3%
Applied egg-rr39.3%
*-lft-identity39.3%
associate-/r*38.6%
Simplified38.6%
if -7.09999999999999978e-37 < t < 1.6e201Initial program 97.3%
Taylor expanded in y around inf 66.9%
Final simplification55.0%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= t -7.1e-37) (/ x (* z t)) (if (<= t 9e+200) (/ x y) (/ (/ x t) z))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -7.1e-37) {
tmp = x / (z * t);
} else if (t <= 9e+200) {
tmp = x / y;
} else {
tmp = (x / t) / z;
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (t <= (-7.1d-37)) then
tmp = x / (z * t)
else if (t <= 9d+200) then
tmp = x / y
else
tmp = (x / t) / z
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -7.1e-37) {
tmp = x / (z * t);
} else if (t <= 9e+200) {
tmp = x / y;
} else {
tmp = (x / t) / z;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if t <= -7.1e-37: tmp = x / (z * t) elif t <= 9e+200: tmp = x / y else: tmp = (x / t) / z return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (t <= -7.1e-37) tmp = Float64(x / Float64(z * t)); elseif (t <= 9e+200) tmp = Float64(x / y); else tmp = Float64(Float64(x / t) / z); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= -7.1e-37)
tmp = x / (z * t);
elseif (t <= 9e+200)
tmp = x / y;
else
tmp = (x / t) / z;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, -7.1e-37], N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e+200], N[(x / y), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / z), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.1 \cdot 10^{-37}:\\
\;\;\;\;\frac{x}{z \cdot t}\\
\mathbf{elif}\;t \leq 9 \cdot 10^{+200}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{z}\\
\end{array}
\end{array}
if t < -7.09999999999999978e-37Initial program 90.9%
clear-num90.7%
associate-/r/90.6%
Applied egg-rr90.6%
Taylor expanded in y around 0 59.9%
mul-1-neg59.9%
associate-/r*68.7%
distribute-neg-frac268.7%
Simplified68.7%
add-sqr-sqrt36.1%
sqrt-unprod43.4%
sqr-neg43.4%
sqrt-prod16.4%
add-sqr-sqrt35.0%
*-un-lft-identity35.0%
Applied egg-rr35.0%
*-lft-identity35.0%
associate-/r*34.1%
Simplified34.1%
if -7.09999999999999978e-37 < t < 8.99999999999999939e200Initial program 97.3%
Taylor expanded in y around inf 66.9%
if 8.99999999999999939e200 < t Initial program 95.6%
clear-num95.4%
associate-/r/95.5%
Applied egg-rr95.5%
Taylor expanded in y around 0 86.8%
*-commutative86.8%
frac-2neg86.8%
metadata-eval86.8%
un-div-inv86.9%
*-commutative86.9%
distribute-lft-neg-in86.9%
associate-/l/85.5%
add-sqr-sqrt54.3%
sqrt-unprod68.6%
sqr-neg68.6%
sqrt-prod19.0%
add-sqr-sqrt55.9%
Applied egg-rr55.9%
Final simplification55.0%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (/ x y))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
return x / y;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x / y
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
return x / y;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): return x / y
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) return Float64(x / y) end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp = code(x, y, z, t)
tmp = x / y;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := N[(x / y), $MachinePrecision]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\frac{x}{y}
\end{array}
Initial program 95.1%
Taylor expanded in y around inf 52.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ 1.0 (- (/ y x) (* (/ z x) t)))))
(if (< x -1.618195973607049e+50)
t_1
(if (< x 2.1378306434876444e+131) (/ x (- y (* z t))) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = 1.0 / ((y / x) - ((z / x) * t));
double tmp;
if (x < -1.618195973607049e+50) {
tmp = t_1;
} else if (x < 2.1378306434876444e+131) {
tmp = x / (y - (z * t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = 1.0d0 / ((y / x) - ((z / x) * t))
if (x < (-1.618195973607049d+50)) then
tmp = t_1
else if (x < 2.1378306434876444d+131) then
tmp = x / (y - (z * t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = 1.0 / ((y / x) - ((z / x) * t));
double tmp;
if (x < -1.618195973607049e+50) {
tmp = t_1;
} else if (x < 2.1378306434876444e+131) {
tmp = x / (y - (z * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = 1.0 / ((y / x) - ((z / x) * t)) tmp = 0 if x < -1.618195973607049e+50: tmp = t_1 elif x < 2.1378306434876444e+131: tmp = x / (y - (z * t)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(1.0 / Float64(Float64(y / x) - Float64(Float64(z / x) * t))) tmp = 0.0 if (x < -1.618195973607049e+50) tmp = t_1; elseif (x < 2.1378306434876444e+131) tmp = Float64(x / Float64(y - Float64(z * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = 1.0 / ((y / x) - ((z / x) * t)); tmp = 0.0; if (x < -1.618195973607049e+50) tmp = t_1; elseif (x < 2.1378306434876444e+131) tmp = x / (y - (z * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(1.0 / N[(N[(y / x), $MachinePrecision] - N[(N[(z / x), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[x, -1.618195973607049e+50], t$95$1, If[Less[x, 2.1378306434876444e+131], N[(x / N[(y - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{1}{\frac{y}{x} - \frac{z}{x} \cdot t}\\
\mathbf{if}\;x < -1.618195973607049 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x < 2.1378306434876444 \cdot 10^{+131}:\\
\;\;\;\;\frac{x}{y - z \cdot t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024087
(FPCore (x y z t)
:name "Diagrams.Solve.Tridiagonal:solveTriDiagonal from diagrams-solve-0.1, B"
:precision binary64
:alt
(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))))