
(FPCore (x y z t) :precision binary64 (+ x (/ (* (- y x) z) t)))
double code(double x, double y, double z, double t) {
return x + (((y - x) * 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 - x) * z) / t)
end function
public static double code(double x, double y, double z, double t) {
return x + (((y - x) * z) / t);
}
def code(x, y, z, t): return x + (((y - x) * z) / t)
function code(x, y, z, t) return Float64(x + Float64(Float64(Float64(y - x) * z) / t)) end
function tmp = code(x, y, z, t) tmp = x + (((y - x) * z) / t); end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot z}{t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ x (/ (* (- y x) z) t)))
double code(double x, double y, double z, double t) {
return x + (((y - x) * 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 - x) * z) / t)
end function
public static double code(double x, double y, double z, double t) {
return x + (((y - x) * z) / t);
}
def code(x, y, z, t): return x + (((y - x) * z) / t)
function code(x, y, z, t) return Float64(x + Float64(Float64(Float64(y - x) * z) / t)) end
function tmp = code(x, y, z, t) tmp = x + (((y - x) * z) / t); end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot z}{t}
\end{array}
(FPCore (x y z t) :precision binary64 (+ x (* (- y x) (/ z t))))
double code(double x, double y, double z, double t) {
return x + ((y - x) * (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 - x) * (z / t))
end function
public static double code(double x, double y, double z, double t) {
return x + ((y - x) * (z / t));
}
def code(x, y, z, t): return x + ((y - x) * (z / t))
function code(x, y, z, t) return Float64(x + Float64(Float64(y - x) * Float64(z / t))) end
function tmp = code(x, y, z, t) tmp = x + ((y - x) * (z / t)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - x\right) \cdot \frac{z}{t}
\end{array}
Initial program 92.9%
associate-/l*98.0%
Simplified98.0%
Final simplification98.0%
(FPCore (x y z t)
:precision binary64
(if (<= t -4.5e+38)
x
(if (or (<= t -0.056) (and (not (<= t -5e-96)) (<= t 4e-49)))
(* z (/ x (- t)))
x)))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -4.5e+38) {
tmp = x;
} else if ((t <= -0.056) || (!(t <= -5e-96) && (t <= 4e-49))) {
tmp = z * (x / -t);
} else {
tmp = 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 (t <= (-4.5d+38)) then
tmp = x
else if ((t <= (-0.056d0)) .or. (.not. (t <= (-5d-96))) .and. (t <= 4d-49)) then
tmp = z * (x / -t)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -4.5e+38) {
tmp = x;
} else if ((t <= -0.056) || (!(t <= -5e-96) && (t <= 4e-49))) {
tmp = z * (x / -t);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -4.5e+38: tmp = x elif (t <= -0.056) or (not (t <= -5e-96) and (t <= 4e-49)): tmp = z * (x / -t) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -4.5e+38) tmp = x; elseif ((t <= -0.056) || (!(t <= -5e-96) && (t <= 4e-49))) tmp = Float64(z * Float64(x / Float64(-t))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -4.5e+38) tmp = x; elseif ((t <= -0.056) || (~((t <= -5e-96)) && (t <= 4e-49))) tmp = z * (x / -t); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -4.5e+38], x, If[Or[LessEqual[t, -0.056], And[N[Not[LessEqual[t, -5e-96]], $MachinePrecision], LessEqual[t, 4e-49]]], N[(z * N[(x / (-t)), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.5 \cdot 10^{+38}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq -0.056 \lor \neg \left(t \leq -5 \cdot 10^{-96}\right) \land t \leq 4 \cdot 10^{-49}:\\
\;\;\;\;z \cdot \frac{x}{-t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -4.4999999999999998e38 or -0.0560000000000000012 < t < -4.99999999999999995e-96 or 3.99999999999999975e-49 < t Initial program 88.8%
associate-/l*98.4%
Simplified98.4%
Taylor expanded in y around inf 88.2%
associate-*r/90.0%
Simplified90.0%
Taylor expanded in x around inf 61.0%
if -4.4999999999999998e38 < t < -0.0560000000000000012 or -4.99999999999999995e-96 < t < 3.99999999999999975e-49Initial program 98.2%
Taylor expanded in y around 0 57.1%
mul-1-neg57.1%
distribute-lft-neg-out57.1%
*-commutative57.1%
Simplified57.1%
div-inv57.1%
*-commutative57.1%
*-commutative57.1%
add-sqr-sqrt28.4%
sqrt-unprod31.6%
sqr-neg31.6%
sqrt-unprod4.8%
add-sqr-sqrt9.2%
remove-double-neg9.2%
distribute-rgt-neg-out9.2%
cancel-sign-sub-inv9.2%
div-inv9.2%
associate-/l*7.5%
add-sqr-sqrt2.6%
sqrt-unprod26.8%
sqr-neg26.8%
sqrt-unprod26.2%
add-sqr-sqrt51.9%
Applied egg-rr51.9%
Taylor expanded in z around inf 50.9%
mul-1-neg50.9%
*-commutative50.9%
distribute-frac-neg250.9%
associate-*r/47.5%
Simplified47.5%
Final simplification55.1%
(FPCore (x y z t)
:precision binary64
(if (<= t -3.2e+38)
x
(if (<= t -5.6e-5)
(* z (/ x (- t)))
(if (<= t -3e-96) x (if (<= t 3.4e-53) (/ z (/ (- t) x)) x)))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -3.2e+38) {
tmp = x;
} else if (t <= -5.6e-5) {
tmp = z * (x / -t);
} else if (t <= -3e-96) {
tmp = x;
} else if (t <= 3.4e-53) {
tmp = z / (-t / x);
} else {
tmp = 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 (t <= (-3.2d+38)) then
tmp = x
else if (t <= (-5.6d-5)) then
tmp = z * (x / -t)
else if (t <= (-3d-96)) then
tmp = x
else if (t <= 3.4d-53) then
tmp = z / (-t / x)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -3.2e+38) {
tmp = x;
} else if (t <= -5.6e-5) {
tmp = z * (x / -t);
} else if (t <= -3e-96) {
tmp = x;
} else if (t <= 3.4e-53) {
tmp = z / (-t / x);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -3.2e+38: tmp = x elif t <= -5.6e-5: tmp = z * (x / -t) elif t <= -3e-96: tmp = x elif t <= 3.4e-53: tmp = z / (-t / x) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -3.2e+38) tmp = x; elseif (t <= -5.6e-5) tmp = Float64(z * Float64(x / Float64(-t))); elseif (t <= -3e-96) tmp = x; elseif (t <= 3.4e-53) tmp = Float64(z / Float64(Float64(-t) / x)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -3.2e+38) tmp = x; elseif (t <= -5.6e-5) tmp = z * (x / -t); elseif (t <= -3e-96) tmp = x; elseif (t <= 3.4e-53) tmp = z / (-t / x); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -3.2e+38], x, If[LessEqual[t, -5.6e-5], N[(z * N[(x / (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3e-96], x, If[LessEqual[t, 3.4e-53], N[(z / N[((-t) / x), $MachinePrecision]), $MachinePrecision], x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{+38}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq -5.6 \cdot 10^{-5}:\\
\;\;\;\;z \cdot \frac{x}{-t}\\
\mathbf{elif}\;t \leq -3 \cdot 10^{-96}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-53}:\\
\;\;\;\;\frac{z}{\frac{-t}{x}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -3.19999999999999985e38 or -5.59999999999999992e-5 < t < -3e-96 or 3.4e-53 < t Initial program 88.8%
associate-/l*98.4%
Simplified98.4%
Taylor expanded in y around inf 88.2%
associate-*r/90.0%
Simplified90.0%
Taylor expanded in x around inf 61.0%
if -3.19999999999999985e38 < t < -5.59999999999999992e-5Initial program 93.4%
Taylor expanded in y around 0 54.7%
mul-1-neg54.7%
distribute-lft-neg-out54.7%
*-commutative54.7%
Simplified54.7%
div-inv54.7%
*-commutative54.7%
*-commutative54.7%
add-sqr-sqrt18.7%
sqrt-unprod19.7%
sqr-neg19.7%
sqrt-unprod7.5%
add-sqr-sqrt8.1%
remove-double-neg8.1%
distribute-rgt-neg-out8.1%
cancel-sign-sub-inv8.1%
div-inv8.1%
associate-/l*8.1%
add-sqr-sqrt0.6%
sqrt-unprod22.9%
sqr-neg22.9%
sqrt-unprod36.1%
add-sqr-sqrt54.8%
Applied egg-rr54.8%
Taylor expanded in z around inf 47.3%
mul-1-neg47.3%
*-commutative47.3%
distribute-frac-neg247.3%
associate-*r/47.4%
Simplified47.4%
if -3e-96 < t < 3.4e-53Initial program 98.9%
Taylor expanded in y around 0 57.4%
mul-1-neg57.4%
distribute-lft-neg-out57.4%
*-commutative57.4%
Simplified57.4%
div-inv57.4%
*-commutative57.4%
*-commutative57.4%
add-sqr-sqrt29.8%
sqrt-unprod33.3%
sqr-neg33.3%
sqrt-unprod4.4%
add-sqr-sqrt9.4%
remove-double-neg9.4%
distribute-rgt-neg-out9.4%
cancel-sign-sub-inv9.4%
div-inv9.4%
associate-/l*7.4%
add-sqr-sqrt2.9%
sqrt-unprod27.4%
sqr-neg27.4%
sqrt-unprod24.7%
add-sqr-sqrt51.5%
Applied egg-rr51.5%
Taylor expanded in z around inf 51.4%
mul-1-neg51.4%
*-commutative51.4%
associate-*l/53.4%
associate-/r/48.1%
distribute-neg-frac248.1%
Simplified48.1%
Final simplification55.4%
(FPCore (x y z t) :precision binary64 (if (or (<= x -3.7e+63) (not (<= x 2.95e+87))) (* x (- 1.0 (/ z t))) (+ x (* y (/ z t)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -3.7e+63) || !(x <= 2.95e+87)) {
tmp = x * (1.0 - (z / t));
} else {
tmp = x + (y * (z / 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 <= (-3.7d+63)) .or. (.not. (x <= 2.95d+87))) then
tmp = x * (1.0d0 - (z / t))
else
tmp = x + (y * (z / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -3.7e+63) || !(x <= 2.95e+87)) {
tmp = x * (1.0 - (z / t));
} else {
tmp = x + (y * (z / t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -3.7e+63) or not (x <= 2.95e+87): tmp = x * (1.0 - (z / t)) else: tmp = x + (y * (z / t)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -3.7e+63) || !(x <= 2.95e+87)) tmp = Float64(x * Float64(1.0 - Float64(z / t))); else tmp = Float64(x + Float64(y * Float64(z / t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -3.7e+63) || ~((x <= 2.95e+87))) tmp = x * (1.0 - (z / t)); else tmp = x + (y * (z / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -3.7e+63], N[Not[LessEqual[x, 2.95e+87]], $MachinePrecision]], N[(x * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.7 \cdot 10^{+63} \lor \neg \left(x \leq 2.95 \cdot 10^{+87}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if x < -3.69999999999999968e63 or 2.9499999999999998e87 < x Initial program 87.1%
Taylor expanded in y around 0 82.4%
mul-1-neg82.4%
distribute-lft-neg-out82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in x around 0 94.3%
mul-1-neg94.3%
unsub-neg94.3%
Simplified94.3%
if -3.69999999999999968e63 < x < 2.9499999999999998e87Initial program 96.3%
associate-/l*96.8%
Simplified96.8%
Taylor expanded in y around inf 85.1%
associate-*r/86.2%
Simplified86.2%
Final simplification89.2%
(FPCore (x y z t) :precision binary64 (if (or (<= x -1.8e+67) (not (<= x 5.2e+87))) (- x (* x (/ z t))) (+ x (* y (/ z t)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.8e+67) || !(x <= 5.2e+87)) {
tmp = x - (x * (z / t));
} else {
tmp = x + (y * (z / 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 <= (-1.8d+67)) .or. (.not. (x <= 5.2d+87))) then
tmp = x - (x * (z / t))
else
tmp = x + (y * (z / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.8e+67) || !(x <= 5.2e+87)) {
tmp = x - (x * (z / t));
} else {
tmp = x + (y * (z / t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -1.8e+67) or not (x <= 5.2e+87): tmp = x - (x * (z / t)) else: tmp = x + (y * (z / t)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -1.8e+67) || !(x <= 5.2e+87)) tmp = Float64(x - Float64(x * Float64(z / t))); else tmp = Float64(x + Float64(y * Float64(z / t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -1.8e+67) || ~((x <= 5.2e+87))) tmp = x - (x * (z / t)); else tmp = x + (y * (z / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -1.8e+67], N[Not[LessEqual[x, 5.2e+87]], $MachinePrecision]], N[(x - N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.8 \cdot 10^{+67} \lor \neg \left(x \leq 5.2 \cdot 10^{+87}\right):\\
\;\;\;\;x - x \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if x < -1.7999999999999999e67 or 5.19999999999999997e87 < x Initial program 87.1%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 82.4%
*-commutative82.4%
associate-*l/94.3%
neg-mul-194.3%
distribute-rgt-neg-out94.3%
Simplified94.3%
if -1.7999999999999999e67 < x < 5.19999999999999997e87Initial program 96.3%
associate-/l*96.8%
Simplified96.8%
Taylor expanded in y around inf 85.1%
associate-*r/86.2%
Simplified86.2%
Final simplification89.2%
(FPCore (x y z t) :precision binary64 (* x (- 1.0 (/ z t))))
double code(double x, double y, double z, double t) {
return x * (1.0 - (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 * (1.0d0 - (z / t))
end function
public static double code(double x, double y, double z, double t) {
return x * (1.0 - (z / t));
}
def code(x, y, z, t): return x * (1.0 - (z / t))
function code(x, y, z, t) return Float64(x * Float64(1.0 - Float64(z / t))) end
function tmp = code(x, y, z, t) tmp = x * (1.0 - (z / t)); end
code[x_, y_, z_, t_] := N[(x * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(1 - \frac{z}{t}\right)
\end{array}
Initial program 92.9%
Taylor expanded in y around 0 60.4%
mul-1-neg60.4%
distribute-lft-neg-out60.4%
*-commutative60.4%
Simplified60.4%
Taylor expanded in x around 0 65.2%
mul-1-neg65.2%
unsub-neg65.2%
Simplified65.2%
Final simplification65.2%
(FPCore (x y z t) :precision binary64 x)
double code(double x, double y, double z, double t) {
return x;
}
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
end function
public static double code(double x, double y, double z, double t) {
return x;
}
def code(x, y, z, t): return x
function code(x, y, z, t) return x end
function tmp = code(x, y, z, t) tmp = x; end
code[x_, y_, z_, t_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 92.9%
associate-/l*98.0%
Simplified98.0%
Taylor expanded in y around inf 77.1%
associate-*r/78.5%
Simplified78.5%
Taylor expanded in x around inf 38.5%
Final simplification38.5%
(FPCore (x y z t)
:precision binary64
(if (< x -9.025511195533005e-135)
(- x (* (/ z t) (- x y)))
(if (< x 4.275032163700715e-250)
(+ x (* (/ (- y x) t) z))
(+ x (/ (- y x) (/ t z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (x < -9.025511195533005e-135) {
tmp = x - ((z / t) * (x - y));
} else if (x < 4.275032163700715e-250) {
tmp = x + (((y - x) / t) * z);
} else {
tmp = x + ((y - x) / (t / 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 < (-9.025511195533005d-135)) then
tmp = x - ((z / t) * (x - y))
else if (x < 4.275032163700715d-250) then
tmp = x + (((y - x) / t) * z)
else
tmp = x + ((y - x) / (t / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x < -9.025511195533005e-135) {
tmp = x - ((z / t) * (x - y));
} else if (x < 4.275032163700715e-250) {
tmp = x + (((y - x) / t) * z);
} else {
tmp = x + ((y - x) / (t / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x < -9.025511195533005e-135: tmp = x - ((z / t) * (x - y)) elif x < 4.275032163700715e-250: tmp = x + (((y - x) / t) * z) else: tmp = x + ((y - x) / (t / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (x < -9.025511195533005e-135) tmp = Float64(x - Float64(Float64(z / t) * Float64(x - y))); elseif (x < 4.275032163700715e-250) tmp = Float64(x + Float64(Float64(Float64(y - x) / t) * z)); else tmp = Float64(x + Float64(Float64(y - x) / Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x < -9.025511195533005e-135) tmp = x - ((z / t) * (x - y)); elseif (x < 4.275032163700715e-250) tmp = x + (((y - x) / t) * z); else tmp = x + ((y - x) / (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Less[x, -9.025511195533005e-135], N[(x - N[(N[(z / t), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[x, 4.275032163700715e-250], N[(x + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x < -9.025511195533005 \cdot 10^{-135}:\\
\;\;\;\;x - \frac{z}{t} \cdot \left(x - y\right)\\
\mathbf{elif}\;x < 4.275032163700715 \cdot 10^{-250}:\\
\;\;\;\;x + \frac{y - x}{t} \cdot z\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{t}{z}}\\
\end{array}
\end{array}
herbie shell --seed 2024055
(FPCore (x y z t)
:name "Numeric.Histogram:binBounds from Chart-1.5.3"
:precision binary64
:alt
(if (< x -9.025511195533005e-135) (- x (* (/ z t) (- x y))) (if (< x 4.275032163700715e-250) (+ x (* (/ (- y x) t) z)) (+ x (/ (- y x) (/ t z)))))
(+ x (/ (* (- y x) z) t)))