
(FPCore (x y z t) :precision binary64 (+ (* (/ x y) (- z t)) t))
double code(double x, double y, double z, double t) {
return ((x / y) * (z - t)) + 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)) + t
end function
public static double code(double x, double y, double z, double t) {
return ((x / y) * (z - t)) + t;
}
def code(x, y, z, t): return ((x / y) * (z - t)) + t
function code(x, y, z, t) return Float64(Float64(Float64(x / y) * Float64(z - t)) + t) end
function tmp = code(x, y, z, t) tmp = ((x / y) * (z - t)) + t; end
code[x_, y_, z_, t_] := N[(N[(N[(x / y), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y} \cdot \left(z - t\right) + t
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 8 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ (* (/ x y) (- z t)) t))
double code(double x, double y, double z, double t) {
return ((x / y) * (z - t)) + 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)) + t
end function
public static double code(double x, double y, double z, double t) {
return ((x / y) * (z - t)) + t;
}
def code(x, y, z, t): return ((x / y) * (z - t)) + t
function code(x, y, z, t) return Float64(Float64(Float64(x / y) * Float64(z - t)) + t) end
function tmp = code(x, y, z, t) tmp = ((x / y) * (z - t)) + t; end
code[x_, y_, z_, t_] := N[(N[(N[(x / y), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y} \cdot \left(z - t\right) + t
\end{array}
(FPCore (x y z t) :precision binary64 (+ t (* (/ x y) (- z t))))
double code(double x, double y, double z, double t) {
return t + ((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 = t + ((x / y) * (z - t))
end function
public static double code(double x, double y, double z, double t) {
return t + ((x / y) * (z - t));
}
def code(x, y, z, t): return t + ((x / y) * (z - t))
function code(x, y, z, t) return Float64(t + Float64(Float64(x / y) * Float64(z - t))) end
function tmp = code(x, y, z, t) tmp = t + ((x / y) * (z - t)); end
code[x_, y_, z_, t_] := N[(t + N[(N[(x / y), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
t + \frac{x}{y} \cdot \left(z - t\right)
\end{array}
Initial program 98.4%
Final simplification98.4%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -4e+24) (not (<= (/ x y) 1e+28))) (* t (/ x (- y))) t))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -4e+24) || !((x / y) <= 1e+28)) {
tmp = t * (x / -y);
} else {
tmp = t;
}
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) :: tmp
if (((x / y) <= (-4d+24)) .or. (.not. ((x / y) <= 1d+28))) then
tmp = t * (x / -y)
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -4e+24) || !((x / y) <= 1e+28)) {
tmp = t * (x / -y);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -4e+24) or not ((x / y) <= 1e+28): tmp = t * (x / -y) else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(x / y) <= -4e+24) || !(Float64(x / y) <= 1e+28)) tmp = Float64(t * Float64(x / Float64(-y))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((x / y) <= -4e+24) || ~(((x / y) <= 1e+28))) tmp = t * (x / -y); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(x / y), $MachinePrecision], -4e+24], N[Not[LessEqual[N[(x / y), $MachinePrecision], 1e+28]], $MachinePrecision]], N[(t * N[(x / (-y)), $MachinePrecision]), $MachinePrecision], t]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -4 \cdot 10^{+24} \lor \neg \left(\frac{x}{y} \leq 10^{+28}\right):\\
\;\;\;\;t \cdot \frac{x}{-y}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if (/.f64 x y) < -3.9999999999999999e24 or 9.99999999999999958e27 < (/.f64 x y) Initial program 98.3%
associate-*l/94.2%
associate-/l*94.2%
fma-define94.2%
Simplified94.2%
Taylor expanded in z around 0 55.4%
mul-1-neg55.4%
*-rgt-identity55.4%
associate-/l*60.4%
distribute-rgt-neg-in60.4%
mul-1-neg60.4%
distribute-lft-in60.4%
mul-1-neg60.4%
unsub-neg60.4%
Simplified60.4%
Taylor expanded in x around inf 60.4%
associate-*r/60.4%
neg-mul-160.4%
Simplified60.4%
if -3.9999999999999999e24 < (/.f64 x y) < 9.99999999999999958e27Initial program 98.4%
associate-*l/93.5%
associate-/l*94.6%
fma-define94.6%
Simplified94.6%
Taylor expanded in x around 0 73.6%
Final simplification66.8%
(FPCore (x y z t) :precision binary64 (if (or (<= z -2.8e-28) (not (<= z 4.2e-45))) (+ t (* (/ x y) z)) (* t (- 1.0 (/ x y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -2.8e-28) || !(z <= 4.2e-45)) {
tmp = t + ((x / y) * z);
} else {
tmp = t * (1.0 - (x / y));
}
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) :: tmp
if ((z <= (-2.8d-28)) .or. (.not. (z <= 4.2d-45))) then
tmp = t + ((x / y) * z)
else
tmp = t * (1.0d0 - (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -2.8e-28) || !(z <= 4.2e-45)) {
tmp = t + ((x / y) * z);
} else {
tmp = t * (1.0 - (x / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -2.8e-28) or not (z <= 4.2e-45): tmp = t + ((x / y) * z) else: tmp = t * (1.0 - (x / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -2.8e-28) || !(z <= 4.2e-45)) tmp = Float64(t + Float64(Float64(x / y) * z)); else tmp = Float64(t * Float64(1.0 - Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -2.8e-28) || ~((z <= 4.2e-45))) tmp = t + ((x / y) * z); else tmp = t * (1.0 - (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -2.8e-28], N[Not[LessEqual[z, 4.2e-45]], $MachinePrecision]], N[(t + N[(N[(x / y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], N[(t * N[(1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.8 \cdot 10^{-28} \lor \neg \left(z \leq 4.2 \cdot 10^{-45}\right):\\
\;\;\;\;t + \frac{x}{y} \cdot z\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 - \frac{x}{y}\right)\\
\end{array}
\end{array}
if z < -2.7999999999999998e-28 or 4.1999999999999999e-45 < z Initial program 98.5%
Taylor expanded in z around inf 84.7%
*-commutative84.7%
associate-/l*87.6%
Applied egg-rr87.6%
if -2.7999999999999998e-28 < z < 4.1999999999999999e-45Initial program 98.2%
associate-*l/96.5%
associate-/l*94.3%
fma-define94.3%
Simplified94.3%
Taylor expanded in z around 0 90.5%
mul-1-neg90.5%
*-rgt-identity90.5%
associate-/l*92.2%
distribute-rgt-neg-in92.2%
mul-1-neg92.2%
distribute-lft-in92.2%
mul-1-neg92.2%
unsub-neg92.2%
Simplified92.2%
Final simplification89.7%
(FPCore (x y z t) :precision binary64 (if (or (<= z -2.9e-31) (not (<= z 1.85e-45))) (+ t (* x (/ z y))) (* t (- 1.0 (/ x y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -2.9e-31) || !(z <= 1.85e-45)) {
tmp = t + (x * (z / y));
} else {
tmp = t * (1.0 - (x / y));
}
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) :: tmp
if ((z <= (-2.9d-31)) .or. (.not. (z <= 1.85d-45))) then
tmp = t + (x * (z / y))
else
tmp = t * (1.0d0 - (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -2.9e-31) || !(z <= 1.85e-45)) {
tmp = t + (x * (z / y));
} else {
tmp = t * (1.0 - (x / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -2.9e-31) or not (z <= 1.85e-45): tmp = t + (x * (z / y)) else: tmp = t * (1.0 - (x / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -2.9e-31) || !(z <= 1.85e-45)) tmp = Float64(t + Float64(x * Float64(z / y))); else tmp = Float64(t * Float64(1.0 - Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -2.9e-31) || ~((z <= 1.85e-45))) tmp = t + (x * (z / y)); else tmp = t * (1.0 - (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -2.9e-31], N[Not[LessEqual[z, 1.85e-45]], $MachinePrecision]], N[(t + N[(x * N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.9 \cdot 10^{-31} \lor \neg \left(z \leq 1.85 \cdot 10^{-45}\right):\\
\;\;\;\;t + x \cdot \frac{z}{y}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 - \frac{x}{y}\right)\\
\end{array}
\end{array}
if z < -2.9000000000000001e-31 or 1.85e-45 < z Initial program 98.5%
Taylor expanded in z around inf 84.7%
associate-/l*84.9%
Simplified84.9%
if -2.9000000000000001e-31 < z < 1.85e-45Initial program 98.2%
associate-*l/96.5%
associate-/l*94.3%
fma-define94.3%
Simplified94.3%
Taylor expanded in z around 0 90.5%
mul-1-neg90.5%
*-rgt-identity90.5%
associate-/l*92.2%
distribute-rgt-neg-in92.2%
mul-1-neg92.2%
distribute-lft-in92.2%
mul-1-neg92.2%
unsub-neg92.2%
Simplified92.2%
Final simplification88.2%
(FPCore (x y z t) :precision binary64 (if (<= z -1.9e-31) (+ t (* (/ x y) z)) (if (<= z 4.6e-45) (* t (- 1.0 (/ x y))) (+ t (/ (* x z) y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.9e-31) {
tmp = t + ((x / y) * z);
} else if (z <= 4.6e-45) {
tmp = t * (1.0 - (x / y));
} else {
tmp = t + ((x * z) / y);
}
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) :: tmp
if (z <= (-1.9d-31)) then
tmp = t + ((x / y) * z)
else if (z <= 4.6d-45) then
tmp = t * (1.0d0 - (x / y))
else
tmp = t + ((x * z) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.9e-31) {
tmp = t + ((x / y) * z);
} else if (z <= 4.6e-45) {
tmp = t * (1.0 - (x / y));
} else {
tmp = t + ((x * z) / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.9e-31: tmp = t + ((x / y) * z) elif z <= 4.6e-45: tmp = t * (1.0 - (x / y)) else: tmp = t + ((x * z) / y) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.9e-31) tmp = Float64(t + Float64(Float64(x / y) * z)); elseif (z <= 4.6e-45) tmp = Float64(t * Float64(1.0 - Float64(x / y))); else tmp = Float64(t + Float64(Float64(x * z) / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.9e-31) tmp = t + ((x / y) * z); elseif (z <= 4.6e-45) tmp = t * (1.0 - (x / y)); else tmp = t + ((x * z) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.9e-31], N[(t + N[(N[(x / y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.6e-45], N[(t * N[(1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(x * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{-31}:\\
\;\;\;\;t + \frac{x}{y} \cdot z\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{-45}:\\
\;\;\;\;t \cdot \left(1 - \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x \cdot z}{y}\\
\end{array}
\end{array}
if z < -1.9e-31Initial program 98.6%
Taylor expanded in z around inf 82.7%
*-commutative82.7%
associate-/l*87.9%
Applied egg-rr87.9%
if -1.9e-31 < z < 4.59999999999999983e-45Initial program 98.2%
associate-*l/96.5%
associate-/l*94.3%
fma-define94.3%
Simplified94.3%
Taylor expanded in z around 0 90.5%
mul-1-neg90.5%
*-rgt-identity90.5%
associate-/l*92.2%
distribute-rgt-neg-in92.2%
mul-1-neg92.2%
distribute-lft-in92.2%
mul-1-neg92.2%
unsub-neg92.2%
Simplified92.2%
if 4.59999999999999983e-45 < z Initial program 98.4%
Taylor expanded in z around inf 87.2%
Final simplification89.7%
(FPCore (x y z t) :precision binary64 (if (<= (/ x y) -1e+173) (* (/ x y) t) t))
double code(double x, double y, double z, double t) {
double tmp;
if ((x / y) <= -1e+173) {
tmp = (x / y) * t;
} else {
tmp = t;
}
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) :: tmp
if ((x / y) <= (-1d+173)) then
tmp = (x / y) * t
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x / y) <= -1e+173) {
tmp = (x / y) * t;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x / y) <= -1e+173: tmp = (x / y) * t else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(x / y) <= -1e+173) tmp = Float64(Float64(x / y) * t); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x / y) <= -1e+173) tmp = (x / y) * t; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(x / y), $MachinePrecision], -1e+173], N[(N[(x / y), $MachinePrecision] * t), $MachinePrecision], t]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -1 \cdot 10^{+173}:\\
\;\;\;\;\frac{x}{y} \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if (/.f64 x y) < -1e173Initial program 97.2%
associate-*l/100.0%
associate-/l*97.4%
fma-define97.4%
Simplified97.4%
Taylor expanded in z around 0 53.6%
mul-1-neg53.6%
*-rgt-identity53.6%
associate-/l*53.6%
distribute-rgt-neg-in53.6%
mul-1-neg53.6%
distribute-lft-in53.6%
mul-1-neg53.6%
unsub-neg53.6%
Simplified53.6%
Taylor expanded in x around inf 53.6%
associate-*r/53.6%
neg-mul-153.6%
Simplified53.6%
clear-num53.6%
un-div-inv53.6%
add-sqr-sqrt25.5%
sqrt-unprod34.2%
sqr-neg34.2%
sqrt-unprod6.2%
add-sqr-sqrt17.5%
Applied egg-rr17.5%
Taylor expanded in t around 0 14.9%
associate-/l*17.5%
Simplified17.5%
if -1e173 < (/.f64 x y) Initial program 98.6%
associate-*l/92.8%
associate-/l*93.9%
fma-define93.9%
Simplified93.9%
Taylor expanded in x around 0 42.9%
Final simplification39.3%
(FPCore (x y z t) :precision binary64 (* t (- 1.0 (/ x y))))
double code(double x, double y, double z, double t) {
return t * (1.0 - (x / y));
}
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 = t * (1.0d0 - (x / y))
end function
public static double code(double x, double y, double z, double t) {
return t * (1.0 - (x / y));
}
def code(x, y, z, t): return t * (1.0 - (x / y))
function code(x, y, z, t) return Float64(t * Float64(1.0 - Float64(x / y))) end
function tmp = code(x, y, z, t) tmp = t * (1.0 - (x / y)); end
code[x_, y_, z_, t_] := N[(t * N[(1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
t \cdot \left(1 - \frac{x}{y}\right)
\end{array}
Initial program 98.4%
associate-*l/93.8%
associate-/l*94.4%
fma-define94.4%
Simplified94.4%
Taylor expanded in z around 0 62.7%
mul-1-neg62.7%
*-rgt-identity62.7%
associate-/l*67.2%
distribute-rgt-neg-in67.2%
mul-1-neg67.2%
distribute-lft-in67.2%
mul-1-neg67.2%
unsub-neg67.2%
Simplified67.2%
(FPCore (x y z t) :precision binary64 t)
double code(double x, double y, double z, double t) {
return 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 = t
end function
public static double code(double x, double y, double z, double t) {
return t;
}
def code(x, y, z, t): return t
function code(x, y, z, t) return t end
function tmp = code(x, y, z, t) tmp = t; end
code[x_, y_, z_, t_] := t
\begin{array}{l}
\\
t
\end{array}
Initial program 98.4%
associate-*l/93.8%
associate-/l*94.4%
fma-define94.4%
Simplified94.4%
Taylor expanded in x around 0 37.3%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ (* (/ x y) (- z t)) t)))
(if (< z 2.759456554562692e-282)
t_1
(if (< z 2.326994450874436e-110) (+ (* x (/ (- z t) y)) t) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = ((x / y) * (z - t)) + t;
double tmp;
if (z < 2.759456554562692e-282) {
tmp = t_1;
} else if (z < 2.326994450874436e-110) {
tmp = (x * ((z - t) / y)) + 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 = ((x / y) * (z - t)) + t
if (z < 2.759456554562692d-282) then
tmp = t_1
else if (z < 2.326994450874436d-110) then
tmp = (x * ((z - t) / y)) + 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 = ((x / y) * (z - t)) + t;
double tmp;
if (z < 2.759456554562692e-282) {
tmp = t_1;
} else if (z < 2.326994450874436e-110) {
tmp = (x * ((z - t) / y)) + t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = ((x / y) * (z - t)) + t tmp = 0 if z < 2.759456554562692e-282: tmp = t_1 elif z < 2.326994450874436e-110: tmp = (x * ((z - t) / y)) + t else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(Float64(x / y) * Float64(z - t)) + t) tmp = 0.0 if (z < 2.759456554562692e-282) tmp = t_1; elseif (z < 2.326994450874436e-110) tmp = Float64(Float64(x * Float64(Float64(z - t) / y)) + t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = ((x / y) * (z - t)) + t; tmp = 0.0; if (z < 2.759456554562692e-282) tmp = t_1; elseif (z < 2.326994450874436e-110) tmp = (x * ((z - t) / y)) + t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(x / y), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]}, If[Less[z, 2.759456554562692e-282], t$95$1, If[Less[z, 2.326994450874436e-110], N[(N[(x * N[(N[(z - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y} \cdot \left(z - t\right) + t\\
\mathbf{if}\;z < 2.759456554562692 \cdot 10^{-282}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 2.326994450874436 \cdot 10^{-110}:\\
\;\;\;\;x \cdot \frac{z - t}{y} + t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024085
(FPCore (x y z t)
:name "Numeric.Signal.Multichannel:$cget from hsignal-0.2.7.1"
:precision binary64
:alt
(if (< z 2.759456554562692e-282) (+ (* (/ x y) (- z t)) t) (if (< z 2.326994450874436e-110) (+ (* x (/ (- z t) y)) t) (+ (* (/ x y) (- z t)) t)))
(+ (* (/ x y) (- z t)) t))