
(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.3%
Final simplification98.3%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.45e-18) (not (<= z 4.9e-82))) (+ t (* x (/ z y))) (* t (- 1.0 (/ x y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.45e-18) || !(z <= 4.9e-82)) {
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 <= (-1.45d-18)) .or. (.not. (z <= 4.9d-82))) 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 <= -1.45e-18) || !(z <= 4.9e-82)) {
tmp = t + (x * (z / y));
} else {
tmp = t * (1.0 - (x / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1.45e-18) or not (z <= 4.9e-82): 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 <= -1.45e-18) || !(z <= 4.9e-82)) 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 <= -1.45e-18) || ~((z <= 4.9e-82))) 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, -1.45e-18], N[Not[LessEqual[z, 4.9e-82]], $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 -1.45 \cdot 10^{-18} \lor \neg \left(z \leq 4.9 \cdot 10^{-82}\right):\\
\;\;\;\;t + x \cdot \frac{z}{y}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 - \frac{x}{y}\right)\\
\end{array}
\end{array}
if z < -1.45e-18 or 4.9000000000000003e-82 < z Initial program 98.5%
Taylor expanded in z around inf 82.1%
associate-/l*88.0%
Simplified88.0%
if -1.45e-18 < z < 4.9000000000000003e-82Initial program 98.0%
associate-*l/94.9%
associate-/l*92.4%
fma-define92.4%
Simplified92.4%
Taylor expanded in z around 0 80.9%
mul-1-neg80.9%
*-rgt-identity80.9%
associate-/l*84.0%
distribute-rgt-neg-in84.0%
mul-1-neg84.0%
distribute-lft-in84.1%
mul-1-neg84.1%
unsub-neg84.1%
Simplified84.1%
Final simplification86.4%
(FPCore (x y z t) :precision binary64 (if (or (<= z -7.2e-20) (not (<= z 7.2e-79))) (+ t (* (/ x y) z)) (* t (- 1.0 (/ x y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -7.2e-20) || !(z <= 7.2e-79)) {
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 <= (-7.2d-20)) .or. (.not. (z <= 7.2d-79))) 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 <= -7.2e-20) || !(z <= 7.2e-79)) {
tmp = t + ((x / y) * z);
} else {
tmp = t * (1.0 - (x / y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -7.2e-20) or not (z <= 7.2e-79): 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 <= -7.2e-20) || !(z <= 7.2e-79)) 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 <= -7.2e-20) || ~((z <= 7.2e-79))) 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, -7.2e-20], N[Not[LessEqual[z, 7.2e-79]], $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 -7.2 \cdot 10^{-20} \lor \neg \left(z \leq 7.2 \cdot 10^{-79}\right):\\
\;\;\;\;t + \frac{x}{y} \cdot z\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 - \frac{x}{y}\right)\\
\end{array}
\end{array}
if z < -7.19999999999999948e-20 or 7.2000000000000005e-79 < z Initial program 98.5%
Taylor expanded in z around inf 82.1%
*-commutative82.1%
associate-/l*89.4%
Applied egg-rr89.4%
if -7.19999999999999948e-20 < z < 7.2000000000000005e-79Initial program 98.0%
associate-*l/94.9%
associate-/l*92.4%
fma-define92.4%
Simplified92.4%
Taylor expanded in z around 0 80.9%
mul-1-neg80.9%
*-rgt-identity80.9%
associate-/l*84.0%
distribute-rgt-neg-in84.0%
mul-1-neg84.0%
distribute-lft-in84.1%
mul-1-neg84.1%
unsub-neg84.1%
Simplified84.1%
Final simplification87.3%
(FPCore (x y z t) :precision binary64 (if (or (<= z -7.6e-19) (not (<= z 1.6e-79))) (+ t (* (/ x y) z)) (- t (/ t (/ y x)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -7.6e-19) || !(z <= 1.6e-79)) {
tmp = t + ((x / y) * z);
} else {
tmp = t - (t / (y / x));
}
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 <= (-7.6d-19)) .or. (.not. (z <= 1.6d-79))) then
tmp = t + ((x / y) * z)
else
tmp = t - (t / (y / x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -7.6e-19) || !(z <= 1.6e-79)) {
tmp = t + ((x / y) * z);
} else {
tmp = t - (t / (y / x));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -7.6e-19) or not (z <= 1.6e-79): tmp = t + ((x / y) * z) else: tmp = t - (t / (y / x)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -7.6e-19) || !(z <= 1.6e-79)) tmp = Float64(t + Float64(Float64(x / y) * z)); else tmp = Float64(t - Float64(t / Float64(y / x))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -7.6e-19) || ~((z <= 1.6e-79))) tmp = t + ((x / y) * z); else tmp = t - (t / (y / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -7.6e-19], N[Not[LessEqual[z, 1.6e-79]], $MachinePrecision]], N[(t + N[(N[(x / y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], N[(t - N[(t / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.6 \cdot 10^{-19} \lor \neg \left(z \leq 1.6 \cdot 10^{-79}\right):\\
\;\;\;\;t + \frac{x}{y} \cdot z\\
\mathbf{else}:\\
\;\;\;\;t - \frac{t}{\frac{y}{x}}\\
\end{array}
\end{array}
if z < -7.6e-19 or 1.59999999999999994e-79 < z Initial program 98.5%
Taylor expanded in z around inf 82.1%
*-commutative82.1%
associate-/l*89.4%
Applied egg-rr89.4%
if -7.6e-19 < z < 1.59999999999999994e-79Initial program 98.0%
Taylor expanded in x around 0 94.9%
associate-/l*92.4%
*-commutative92.4%
associate-/r/98.0%
Simplified98.0%
Taylor expanded in z around 0 80.9%
mul-1-neg80.9%
associate-*l/80.3%
distribute-rgt-neg-in80.3%
Simplified80.3%
+-commutative80.3%
distribute-rgt-neg-out80.3%
unsub-neg80.3%
associate-/r/84.1%
Applied egg-rr84.1%
Final simplification87.3%
(FPCore (x y z t) :precision binary64 (if (or (<= x -1060000000.0) (not (<= x 8.5e-36))) (* (/ x y) (- t)) t))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1060000000.0) || !(x <= 8.5e-36)) {
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 <= (-1060000000.0d0)) .or. (.not. (x <= 8.5d-36))) 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 <= -1060000000.0) || !(x <= 8.5e-36)) {
tmp = (x / y) * -t;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -1060000000.0) or not (x <= 8.5e-36): tmp = (x / y) * -t else: tmp = t return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -1060000000.0) || !(x <= 8.5e-36)) tmp = Float64(Float64(x / y) * Float64(-t)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -1060000000.0) || ~((x <= 8.5e-36))) tmp = (x / y) * -t; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -1060000000.0], N[Not[LessEqual[x, 8.5e-36]], $MachinePrecision]], N[(N[(x / y), $MachinePrecision] * (-t)), $MachinePrecision], t]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1060000000 \lor \neg \left(x \leq 8.5 \cdot 10^{-36}\right):\\
\;\;\;\;\frac{x}{y} \cdot \left(-t\right)\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if x < -1.06e9 or 8.5000000000000007e-36 < x Initial program 97.8%
associate-*l/84.8%
associate-/l*97.2%
fma-define97.2%
Simplified97.2%
Taylor expanded in z around 0 42.7%
mul-1-neg42.7%
*-rgt-identity42.7%
associate-/l*48.6%
distribute-rgt-neg-in48.6%
mul-1-neg48.6%
distribute-lft-in48.6%
mul-1-neg48.6%
unsub-neg48.6%
Simplified48.6%
Taylor expanded in x around inf 37.8%
associate-*r/37.8%
neg-mul-137.8%
Simplified37.8%
if -1.06e9 < x < 8.5000000000000007e-36Initial program 98.9%
associate-*l/98.8%
associate-/l*89.3%
fma-define89.3%
Simplified89.3%
Taylor expanded in x around 0 57.3%
Final simplification46.8%
(FPCore (x y z t) :precision binary64 (if (<= x -2700000000.0) (* (/ x y) (- t)) (if (<= x 2.5e-40) t (/ (* x t) (- y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -2700000000.0) {
tmp = (x / y) * -t;
} else if (x <= 2.5e-40) {
tmp = t;
} else {
tmp = (x * 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 <= (-2700000000.0d0)) then
tmp = (x / y) * -t
else if (x <= 2.5d-40) then
tmp = t
else
tmp = (x * t) / -y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -2700000000.0) {
tmp = (x / y) * -t;
} else if (x <= 2.5e-40) {
tmp = t;
} else {
tmp = (x * t) / -y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -2700000000.0: tmp = (x / y) * -t elif x <= 2.5e-40: tmp = t else: tmp = (x * t) / -y return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -2700000000.0) tmp = Float64(Float64(x / y) * Float64(-t)); elseif (x <= 2.5e-40) tmp = t; else tmp = Float64(Float64(x * t) / Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -2700000000.0) tmp = (x / y) * -t; elseif (x <= 2.5e-40) tmp = t; else tmp = (x * t) / -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -2700000000.0], N[(N[(x / y), $MachinePrecision] * (-t)), $MachinePrecision], If[LessEqual[x, 2.5e-40], t, N[(N[(x * t), $MachinePrecision] / (-y)), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2700000000:\\
\;\;\;\;\frac{x}{y} \cdot \left(-t\right)\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{-40}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot t}{-y}\\
\end{array}
\end{array}
if x < -2.7e9Initial program 99.9%
associate-*l/78.1%
associate-/l*99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 38.0%
mul-1-neg38.0%
*-rgt-identity38.0%
associate-/l*49.7%
distribute-rgt-neg-in49.7%
mul-1-neg49.7%
distribute-lft-in49.7%
mul-1-neg49.7%
unsub-neg49.7%
Simplified49.7%
Taylor expanded in x around inf 41.3%
associate-*r/41.3%
neg-mul-141.3%
Simplified41.3%
if -2.7e9 < x < 2.49999999999999982e-40Initial program 98.9%
associate-*l/98.8%
associate-/l*89.3%
fma-define89.3%
Simplified89.3%
Taylor expanded in x around 0 57.3%
if 2.49999999999999982e-40 < x Initial program 96.5%
associate-*l/89.4%
associate-/l*95.4%
fma-define95.4%
Simplified95.4%
Taylor expanded in z around 0 45.9%
mul-1-neg45.9%
*-rgt-identity45.9%
associate-/l*47.9%
distribute-rgt-neg-in47.9%
mul-1-neg47.9%
distribute-lft-in47.9%
mul-1-neg47.9%
unsub-neg47.9%
Simplified47.9%
Taylor expanded in x around inf 35.4%
associate-*r/35.4%
neg-mul-135.4%
Simplified35.4%
*-commutative35.4%
distribute-frac-neg35.4%
distribute-frac-neg235.4%
associate-*l/36.4%
Applied egg-rr36.4%
Final simplification47.1%
(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.3%
associate-*l/91.3%
associate-/l*93.5%
fma-define93.6%
Simplified93.6%
Taylor expanded in z around 0 54.8%
mul-1-neg54.8%
*-rgt-identity54.8%
associate-/l*58.4%
distribute-rgt-neg-in58.4%
mul-1-neg58.4%
distribute-lft-in58.4%
mul-1-neg58.4%
unsub-neg58.4%
Simplified58.4%
Final simplification58.4%
(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.3%
associate-*l/91.3%
associate-/l*93.5%
fma-define93.6%
Simplified93.6%
Taylor expanded in x around 0 33.8%
Final simplification33.8%
(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 2024066
(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))