
(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 (if (<= x 6.6e-79) (+ t (* (/ x y) (- z t))) (+ t (* x (/ (- z t) y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= 6.6e-79) {
tmp = t + ((x / y) * (z - t));
} else {
tmp = t + (x * ((z - t) / 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 (x <= 6.6d-79) then
tmp = t + ((x / y) * (z - t))
else
tmp = t + (x * ((z - t) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= 6.6e-79) {
tmp = t + ((x / y) * (z - t));
} else {
tmp = t + (x * ((z - t) / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= 6.6e-79: tmp = t + ((x / y) * (z - t)) else: tmp = t + (x * ((z - t) / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= 6.6e-79) tmp = Float64(t + Float64(Float64(x / y) * Float64(z - t))); else tmp = Float64(t + Float64(x * Float64(Float64(z - t) / y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= 6.6e-79) tmp = t + ((x / y) * (z - t)); else tmp = t + (x * ((z - t) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, 6.6e-79], N[(t + N[(N[(x / y), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(x * N[(N[(z - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 6.6 \cdot 10^{-79}:\\
\;\;\;\;t + \frac{x}{y} \cdot \left(z - t\right)\\
\mathbf{else}:\\
\;\;\;\;t + x \cdot \frac{z - t}{y}\\
\end{array}
\end{array}
if x < 6.5999999999999996e-79Initial program 98.7%
if 6.5999999999999996e-79 < x Initial program 94.2%
remove-double-neg94.2%
unsub-neg94.2%
associate-*l/89.3%
associate-*r/99.9%
fma-neg99.9%
remove-double-neg99.9%
Simplified99.9%
fma-udef99.9%
Applied egg-rr99.9%
Final simplification99.1%
(FPCore (x y z t) :precision binary64 (if (or (<= (/ x y) -5e+30) (not (<= (/ x y) 2e-34))) (/ (* x (- z t)) y) (+ t (* (/ x y) z))))
double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -5e+30) || !((x / y) <= 2e-34)) {
tmp = (x * (z - t)) / y;
} else {
tmp = t + ((x / y) * z);
}
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) <= (-5d+30)) .or. (.not. ((x / y) <= 2d-34))) then
tmp = (x * (z - t)) / y
else
tmp = t + ((x / y) * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((x / y) <= -5e+30) || !((x / y) <= 2e-34)) {
tmp = (x * (z - t)) / y;
} else {
tmp = t + ((x / y) * z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x / y) <= -5e+30) or not ((x / y) <= 2e-34): tmp = (x * (z - t)) / y else: tmp = t + ((x / y) * z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(x / y) <= -5e+30) || !(Float64(x / y) <= 2e-34)) tmp = Float64(Float64(x * Float64(z - t)) / y); else tmp = Float64(t + Float64(Float64(x / y) * z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((x / y) <= -5e+30) || ~(((x / y) <= 2e-34))) tmp = (x * (z - t)) / y; else tmp = t + ((x / y) * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(x / y), $MachinePrecision], -5e+30], N[Not[LessEqual[N[(x / y), $MachinePrecision], 2e-34]], $MachinePrecision]], N[(N[(x * N[(z - t), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(t + N[(N[(x / y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{y} \leq -5 \cdot 10^{+30} \lor \neg \left(\frac{x}{y} \leq 2 \cdot 10^{-34}\right):\\
\;\;\;\;\frac{x \cdot \left(z - t\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x}{y} \cdot z\\
\end{array}
\end{array}
if (/.f64 x y) < -4.9999999999999998e30 or 1.99999999999999986e-34 < (/.f64 x y) Initial program 95.8%
Taylor expanded in x around 0 93.4%
Taylor expanded in x around -inf 92.9%
if -4.9999999999999998e30 < (/.f64 x y) < 1.99999999999999986e-34Initial program 98.5%
Taylor expanded in z around inf 93.5%
associate-*l/96.9%
*-commutative96.9%
Simplified96.9%
Final simplification95.1%
(FPCore (x y z t) :precision binary64 (if (or (<= t -1.85e+49) (not (<= t 1.25e-84))) (* t (- 1.0 (/ x y))) (+ t (* (/ x y) z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -1.85e+49) || !(t <= 1.25e-84)) {
tmp = t * (1.0 - (x / y));
} else {
tmp = t + ((x / y) * z);
}
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 ((t <= (-1.85d+49)) .or. (.not. (t <= 1.25d-84))) then
tmp = t * (1.0d0 - (x / y))
else
tmp = t + ((x / y) * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -1.85e+49) || !(t <= 1.25e-84)) {
tmp = t * (1.0 - (x / y));
} else {
tmp = t + ((x / y) * z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -1.85e+49) or not (t <= 1.25e-84): tmp = t * (1.0 - (x / y)) else: tmp = t + ((x / y) * z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -1.85e+49) || !(t <= 1.25e-84)) tmp = Float64(t * Float64(1.0 - Float64(x / y))); else tmp = Float64(t + Float64(Float64(x / y) * z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((t <= -1.85e+49) || ~((t <= 1.25e-84))) tmp = t * (1.0 - (x / y)); else tmp = t + ((x / y) * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -1.85e+49], N[Not[LessEqual[t, 1.25e-84]], $MachinePrecision]], N[(t * N[(1.0 - N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(x / y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.85 \cdot 10^{+49} \lor \neg \left(t \leq 1.25 \cdot 10^{-84}\right):\\
\;\;\;\;t \cdot \left(1 - \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x}{y} \cdot z\\
\end{array}
\end{array}
if t < -1.85000000000000009e49 or 1.25e-84 < t Initial program 99.9%
Taylor expanded in z around 0 81.3%
mul-1-neg81.3%
unsub-neg81.3%
*-commutative81.3%
associate-*l/88.8%
cancel-sign-sub-inv88.8%
*-lft-identity88.8%
mul-1-neg88.8%
distribute-rgt-in88.8%
mul-1-neg88.8%
unsub-neg88.8%
Simplified88.8%
if -1.85000000000000009e49 < t < 1.25e-84Initial program 94.1%
Taylor expanded in z around inf 83.7%
associate-*l/86.8%
*-commutative86.8%
Simplified86.8%
Final simplification87.9%
(FPCore (x y z t) :precision binary64 (if (<= t -5e+49) (- t (* (/ x y) t)) (if (<= t 1.25e-84) (+ t (* (/ x y) z)) (* t (- 1.0 (/ x y))))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -5e+49) {
tmp = t - ((x / y) * t);
} else if (t <= 1.25e-84) {
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 (t <= (-5d+49)) then
tmp = t - ((x / y) * t)
else if (t <= 1.25d-84) 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 (t <= -5e+49) {
tmp = t - ((x / y) * t);
} else if (t <= 1.25e-84) {
tmp = t + ((x / y) * z);
} else {
tmp = t * (1.0 - (x / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -5e+49: tmp = t - ((x / y) * t) elif t <= 1.25e-84: tmp = t + ((x / y) * z) else: tmp = t * (1.0 - (x / y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -5e+49) tmp = Float64(t - Float64(Float64(x / y) * t)); elseif (t <= 1.25e-84) 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 (t <= -5e+49) tmp = t - ((x / y) * t); elseif (t <= 1.25e-84) tmp = t + ((x / y) * z); else tmp = t * (1.0 - (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -5e+49], N[(t - N[(N[(x / y), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.25e-84], 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}\;t \leq -5 \cdot 10^{+49}:\\
\;\;\;\;t - \frac{x}{y} \cdot t\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-84}:\\
\;\;\;\;t + \frac{x}{y} \cdot z\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 - \frac{x}{y}\right)\\
\end{array}
\end{array}
if t < -5.0000000000000004e49Initial program 100.0%
Taylor expanded in z around 0 79.2%
mul-1-neg79.2%
unsub-neg79.2%
*-commutative79.2%
associate-*l/88.0%
cancel-sign-sub-inv88.0%
*-lft-identity88.0%
mul-1-neg88.0%
distribute-rgt-in88.0%
mul-1-neg88.0%
unsub-neg88.0%
Simplified88.0%
sub-neg88.0%
distribute-lft-in88.0%
*-commutative88.0%
*-un-lft-identity88.0%
distribute-rgt-neg-in88.0%
clear-num88.0%
div-inv88.0%
unsub-neg88.0%
div-inv88.0%
clear-num88.0%
Applied egg-rr88.0%
if -5.0000000000000004e49 < t < 1.25e-84Initial program 94.1%
Taylor expanded in z around inf 83.7%
associate-*l/86.8%
*-commutative86.8%
Simplified86.8%
if 1.25e-84 < t Initial program 99.9%
Taylor expanded in z around 0 83.1%
mul-1-neg83.1%
unsub-neg83.1%
*-commutative83.1%
associate-*l/89.5%
cancel-sign-sub-inv89.5%
*-lft-identity89.5%
mul-1-neg89.5%
distribute-rgt-in89.5%
mul-1-neg89.5%
unsub-neg89.5%
Simplified89.5%
Final simplification87.9%
(FPCore (x y z t) :precision binary64 (if (<= y -3e-66) t (if (<= y 1.42e-101) (* x (/ (- t) y)) t)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3e-66) {
tmp = t;
} else if (y <= 1.42e-101) {
tmp = x * (-t / 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 (y <= (-3d-66)) then
tmp = t
else if (y <= 1.42d-101) then
tmp = x * (-t / 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 (y <= -3e-66) {
tmp = t;
} else if (y <= 1.42e-101) {
tmp = x * (-t / y);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -3e-66: tmp = t elif y <= 1.42e-101: tmp = x * (-t / y) else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -3e-66) tmp = t; elseif (y <= 1.42e-101) tmp = Float64(x * Float64(Float64(-t) / y)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -3e-66) tmp = t; elseif (y <= 1.42e-101) tmp = x * (-t / y); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -3e-66], t, If[LessEqual[y, 1.42e-101], N[(x * N[((-t) / y), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3 \cdot 10^{-66}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 1.42 \cdot 10^{-101}:\\
\;\;\;\;x \cdot \frac{-t}{y}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if y < -3.0000000000000002e-66 or 1.4200000000000001e-101 < y Initial program 98.1%
Taylor expanded in x around 0 61.4%
if -3.0000000000000002e-66 < y < 1.4200000000000001e-101Initial program 96.0%
Taylor expanded in z around 0 60.3%
mul-1-neg60.3%
unsub-neg60.3%
*-commutative60.3%
associate-*l/62.3%
cancel-sign-sub-inv62.3%
*-lft-identity62.3%
mul-1-neg62.3%
distribute-rgt-in62.3%
mul-1-neg62.3%
unsub-neg62.3%
Simplified62.3%
sub-neg62.3%
distribute-lft-in62.3%
*-commutative62.3%
*-un-lft-identity62.3%
distribute-rgt-neg-in62.3%
clear-num62.3%
div-inv62.3%
unsub-neg62.3%
div-inv62.3%
clear-num62.3%
Applied egg-rr62.3%
Taylor expanded in x around inf 48.0%
mul-1-neg48.0%
associate-*l/47.8%
distribute-lft-neg-in47.8%
*-commutative47.8%
distribute-neg-frac47.8%
Simplified47.8%
Final simplification56.2%
(FPCore (x y z t) :precision binary64 (+ t (* x (/ (- z t) y))))
double code(double x, double y, double z, double t) {
return t + (x * ((z - t) / 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 + (x * ((z - t) / y))
end function
public static double code(double x, double y, double z, double t) {
return t + (x * ((z - t) / y));
}
def code(x, y, z, t): return t + (x * ((z - t) / y))
function code(x, y, z, t) return Float64(t + Float64(x * Float64(Float64(z - t) / y))) end
function tmp = code(x, y, z, t) tmp = t + (x * ((z - t) / y)); end
code[x_, y_, z_, t_] := N[(t + N[(x * N[(N[(z - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
t + x \cdot \frac{z - t}{y}
\end{array}
Initial program 97.3%
remove-double-neg97.3%
unsub-neg97.3%
associate-*l/91.7%
associate-*r/94.0%
fma-neg94.0%
remove-double-neg94.0%
Simplified94.0%
fma-udef94.0%
Applied egg-rr94.0%
Final simplification94.0%
(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 97.3%
Taylor expanded in z around 0 63.5%
mul-1-neg63.5%
unsub-neg63.5%
*-commutative63.5%
associate-*l/68.3%
cancel-sign-sub-inv68.3%
*-lft-identity68.3%
mul-1-neg68.3%
distribute-rgt-in68.3%
mul-1-neg68.3%
unsub-neg68.3%
Simplified68.3%
Final simplification68.3%
(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 97.3%
Taylor expanded in x around 0 43.0%
Final simplification43.0%
(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 2023320
(FPCore (x y z t)
:name "Numeric.Signal.Multichannel:$cget from hsignal-0.2.7.1"
:precision binary64
:herbie-target
(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))