
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) t) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * t) / (a - z));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - z) * t) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * t) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * t) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * t) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * t) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot t}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) t) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * t) / (a - z));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - z) * t) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * t) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * t) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * t) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * t) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot t}{a - z}
\end{array}
(FPCore (x y z t a) :precision binary64 (+ x (* (/ (- y z) (- a z)) t)))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) / (a - z)) * t);
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - z) / (a - z)) * t)
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) / (a - z)) * t);
}
def code(x, y, z, t, a): return x + (((y - z) / (a - z)) * t)
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) / Float64(a - z)) * t)) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) / (a - z)) * t); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y - z}{a - z} \cdot t
\end{array}
Initial program 88.6%
associate-*l/98.0%
Simplified98.0%
Final simplification98.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ t (+ (/ a z) -1.0)))) (t_2 (/ t (- a z))))
(if (<= z -7.6e+118)
t_1
(if (<= z 6.8e-53)
(+ x (/ t (/ (- a z) y)))
(if (<= z 7.2e+20)
(- x (* z t_2))
(if (<= z 8.1e+114) (+ x (* y t_2)) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (t / ((a / z) + -1.0));
double t_2 = t / (a - z);
double tmp;
if (z <= -7.6e+118) {
tmp = t_1;
} else if (z <= 6.8e-53) {
tmp = x + (t / ((a - z) / y));
} else if (z <= 7.2e+20) {
tmp = x - (z * t_2);
} else if (z <= 8.1e+114) {
tmp = x + (y * t_2);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x - (t / ((a / z) + (-1.0d0)))
t_2 = t / (a - z)
if (z <= (-7.6d+118)) then
tmp = t_1
else if (z <= 6.8d-53) then
tmp = x + (t / ((a - z) / y))
else if (z <= 7.2d+20) then
tmp = x - (z * t_2)
else if (z <= 8.1d+114) then
tmp = x + (y * t_2)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x - (t / ((a / z) + -1.0));
double t_2 = t / (a - z);
double tmp;
if (z <= -7.6e+118) {
tmp = t_1;
} else if (z <= 6.8e-53) {
tmp = x + (t / ((a - z) / y));
} else if (z <= 7.2e+20) {
tmp = x - (z * t_2);
} else if (z <= 8.1e+114) {
tmp = x + (y * t_2);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (t / ((a / z) + -1.0)) t_2 = t / (a - z) tmp = 0 if z <= -7.6e+118: tmp = t_1 elif z <= 6.8e-53: tmp = x + (t / ((a - z) / y)) elif z <= 7.2e+20: tmp = x - (z * t_2) elif z <= 8.1e+114: tmp = x + (y * t_2) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(t / Float64(Float64(a / z) + -1.0))) t_2 = Float64(t / Float64(a - z)) tmp = 0.0 if (z <= -7.6e+118) tmp = t_1; elseif (z <= 6.8e-53) tmp = Float64(x + Float64(t / Float64(Float64(a - z) / y))); elseif (z <= 7.2e+20) tmp = Float64(x - Float64(z * t_2)); elseif (z <= 8.1e+114) tmp = Float64(x + Float64(y * t_2)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (t / ((a / z) + -1.0)); t_2 = t / (a - z); tmp = 0.0; if (z <= -7.6e+118) tmp = t_1; elseif (z <= 6.8e-53) tmp = x + (t / ((a - z) / y)); elseif (z <= 7.2e+20) tmp = x - (z * t_2); elseif (z <= 8.1e+114) tmp = x + (y * t_2); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(t / N[(N[(a / z), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.6e+118], t$95$1, If[LessEqual[z, 6.8e-53], N[(x + N[(t / N[(N[(a - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.2e+20], N[(x - N[(z * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.1e+114], N[(x + N[(y * t$95$2), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{t}{\frac{a}{z} + -1}\\
t_2 := \frac{t}{a - z}\\
\mathbf{if}\;z \leq -7.6 \cdot 10^{+118}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{-53}:\\
\;\;\;\;x + \frac{t}{\frac{a - z}{y}}\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{+20}:\\
\;\;\;\;x - z \cdot t_2\\
\mathbf{elif}\;z \leq 8.1 \cdot 10^{+114}:\\
\;\;\;\;x + y \cdot t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -7.60000000000000033e118 or 8.1000000000000001e114 < z Initial program 74.1%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in y around 0 74.1%
mul-1-neg74.1%
*-commutative74.1%
associate-*r/91.7%
unsub-neg91.7%
associate-*r/74.1%
*-commutative74.1%
associate-/l*98.7%
div-sub98.7%
*-inverses98.7%
Simplified98.7%
if -7.60000000000000033e118 < z < 6.8e-53Initial program 94.7%
associate-*l/96.6%
Simplified96.6%
clear-num96.5%
associate-/r/96.5%
Applied egg-rr96.5%
Taylor expanded in y around inf 86.6%
associate-/l*90.4%
Simplified90.4%
if 6.8e-53 < z < 7.2e20Initial program 95.8%
associate-*l/99.8%
Simplified99.8%
clear-num99.8%
associate-/r/99.8%
Applied egg-rr99.8%
Taylor expanded in y around 0 83.4%
+-commutative83.4%
mul-1-neg83.4%
Simplified83.4%
+-commutative83.4%
unsub-neg83.4%
associate-/l*83.5%
associate-/r/83.5%
Applied egg-rr83.5%
if 7.2e20 < z < 8.1000000000000001e114Initial program 93.5%
associate-*l/99.8%
Simplified99.8%
Taylor expanded in y around inf 88.9%
*-commutative88.9%
associate-*r/95.1%
Simplified95.1%
Final simplification92.5%
(FPCore (x y z t a)
:precision binary64
(if (<= z -6.8e+118)
(+ x t)
(if (<= z -1e-29)
(- x (* t (/ y z)))
(if (<= z -8.8e-79)
(- x (/ (* z t) a))
(if (<= z 6.6e-45) (+ x (/ t (/ a y))) (+ x t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -6.8e+118) {
tmp = x + t;
} else if (z <= -1e-29) {
tmp = x - (t * (y / z));
} else if (z <= -8.8e-79) {
tmp = x - ((z * t) / a);
} else if (z <= 6.6e-45) {
tmp = x + (t / (a / y));
} else {
tmp = x + t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-6.8d+118)) then
tmp = x + t
else if (z <= (-1d-29)) then
tmp = x - (t * (y / z))
else if (z <= (-8.8d-79)) then
tmp = x - ((z * t) / a)
else if (z <= 6.6d-45) then
tmp = x + (t / (a / y))
else
tmp = x + t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -6.8e+118) {
tmp = x + t;
} else if (z <= -1e-29) {
tmp = x - (t * (y / z));
} else if (z <= -8.8e-79) {
tmp = x - ((z * t) / a);
} else if (z <= 6.6e-45) {
tmp = x + (t / (a / y));
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -6.8e+118: tmp = x + t elif z <= -1e-29: tmp = x - (t * (y / z)) elif z <= -8.8e-79: tmp = x - ((z * t) / a) elif z <= 6.6e-45: tmp = x + (t / (a / y)) else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -6.8e+118) tmp = Float64(x + t); elseif (z <= -1e-29) tmp = Float64(x - Float64(t * Float64(y / z))); elseif (z <= -8.8e-79) tmp = Float64(x - Float64(Float64(z * t) / a)); elseif (z <= 6.6e-45) tmp = Float64(x + Float64(t / Float64(a / y))); else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -6.8e+118) tmp = x + t; elseif (z <= -1e-29) tmp = x - (t * (y / z)); elseif (z <= -8.8e-79) tmp = x - ((z * t) / a); elseif (z <= 6.6e-45) tmp = x + (t / (a / y)); else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -6.8e+118], N[(x + t), $MachinePrecision], If[LessEqual[z, -1e-29], N[(x - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -8.8e-79], N[(x - N[(N[(z * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.6e-45], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + t), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.8 \cdot 10^{+118}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;z \leq -1 \cdot 10^{-29}:\\
\;\;\;\;x - t \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq -8.8 \cdot 10^{-79}:\\
\;\;\;\;x - \frac{z \cdot t}{a}\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{-45}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if z < -6.79999999999999973e118 or 6.6000000000000001e-45 < z Initial program 80.4%
associate-*l/99.9%
Simplified99.9%
Taylor expanded in z around inf 77.5%
if -6.79999999999999973e118 < z < -9.99999999999999943e-30Initial program 94.4%
associate-*l/99.9%
Simplified99.9%
clear-num99.8%
associate-/r/99.9%
Applied egg-rr99.9%
Taylor expanded in y around inf 87.4%
associate-/l*92.8%
Simplified92.8%
Taylor expanded in a around 0 71.1%
+-commutative71.1%
associate-*r/71.1%
*-commutative71.1%
neg-mul-171.1%
distribute-rgt-neg-in71.1%
Simplified71.1%
Taylor expanded in y around 0 71.1%
mul-1-neg71.1%
associate-*r/73.6%
distribute-lft-neg-in73.6%
cancel-sign-sub-inv73.6%
Simplified73.6%
if -9.99999999999999943e-30 < z < -8.7999999999999995e-79Initial program 100.0%
associate-*l/92.0%
Simplified92.0%
Taylor expanded in y around 0 91.7%
mul-1-neg91.7%
*-commutative91.7%
associate-*r/91.6%
unsub-neg91.6%
associate-*r/91.7%
*-commutative91.7%
associate-/l*83.6%
div-sub83.5%
*-inverses83.5%
Simplified83.5%
Taylor expanded in a around inf 83.3%
if -8.7999999999999995e-79 < z < 6.6000000000000001e-45Initial program 94.3%
associate-*l/96.1%
Simplified96.1%
Taylor expanded in z around 0 77.8%
+-commutative77.8%
associate-/l*81.9%
Simplified81.9%
Final simplification79.0%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.8e+74) (+ x t) (if (<= z 4.9e-256) x (if (<= z 5e-92) (* t (/ y a)) (+ x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.8e+74) {
tmp = x + t;
} else if (z <= 4.9e-256) {
tmp = x;
} else if (z <= 5e-92) {
tmp = t * (y / a);
} else {
tmp = x + t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.8d+74)) then
tmp = x + t
else if (z <= 4.9d-256) then
tmp = x
else if (z <= 5d-92) then
tmp = t * (y / a)
else
tmp = x + t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.8e+74) {
tmp = x + t;
} else if (z <= 4.9e-256) {
tmp = x;
} else if (z <= 5e-92) {
tmp = t * (y / a);
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.8e+74: tmp = x + t elif z <= 4.9e-256: tmp = x elif z <= 5e-92: tmp = t * (y / a) else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.8e+74) tmp = Float64(x + t); elseif (z <= 4.9e-256) tmp = x; elseif (z <= 5e-92) tmp = Float64(t * Float64(y / a)); else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.8e+74) tmp = x + t; elseif (z <= 4.9e-256) tmp = x; elseif (z <= 5e-92) tmp = t * (y / a); else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.8e+74], N[(x + t), $MachinePrecision], If[LessEqual[z, 4.9e-256], x, If[LessEqual[z, 5e-92], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], N[(x + t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.8 \cdot 10^{+74}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;z \leq 4.9 \cdot 10^{-256}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-92}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if z < -2.80000000000000002e74 or 5.00000000000000011e-92 < z Initial program 82.3%
associate-*l/99.9%
Simplified99.9%
Taylor expanded in z around inf 74.5%
if -2.80000000000000002e74 < z < 4.89999999999999996e-256Initial program 95.1%
associate-*l/95.0%
Simplified95.0%
Taylor expanded in x around inf 53.0%
if 4.89999999999999996e-256 < z < 5.00000000000000011e-92Initial program 94.1%
associate-/l*93.9%
Simplified93.9%
Taylor expanded in a around inf 88.0%
Taylor expanded in t around inf 58.5%
Taylor expanded in y around inf 53.2%
Final simplification63.7%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.95e+74) (+ x t) (if (<= z 1.9e-256) x (if (<= z 6e-92) (/ t (/ a y)) (+ x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.95e+74) {
tmp = x + t;
} else if (z <= 1.9e-256) {
tmp = x;
} else if (z <= 6e-92) {
tmp = t / (a / y);
} else {
tmp = x + t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.95d+74)) then
tmp = x + t
else if (z <= 1.9d-256) then
tmp = x
else if (z <= 6d-92) then
tmp = t / (a / y)
else
tmp = x + t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.95e+74) {
tmp = x + t;
} else if (z <= 1.9e-256) {
tmp = x;
} else if (z <= 6e-92) {
tmp = t / (a / y);
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.95e+74: tmp = x + t elif z <= 1.9e-256: tmp = x elif z <= 6e-92: tmp = t / (a / y) else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.95e+74) tmp = Float64(x + t); elseif (z <= 1.9e-256) tmp = x; elseif (z <= 6e-92) tmp = Float64(t / Float64(a / y)); else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.95e+74) tmp = x + t; elseif (z <= 1.9e-256) tmp = x; elseif (z <= 6e-92) tmp = t / (a / y); else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.95e+74], N[(x + t), $MachinePrecision], If[LessEqual[z, 1.9e-256], x, If[LessEqual[z, 6e-92], N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision], N[(x + t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.95 \cdot 10^{+74}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{-256}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 6 \cdot 10^{-92}:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if z < -1.95000000000000004e74 or 6.00000000000000027e-92 < z Initial program 82.3%
associate-*l/99.9%
Simplified99.9%
Taylor expanded in z around inf 74.5%
if -1.95000000000000004e74 < z < 1.89999999999999988e-256Initial program 95.1%
associate-*l/95.0%
Simplified95.0%
Taylor expanded in x around inf 53.0%
if 1.89999999999999988e-256 < z < 6.00000000000000027e-92Initial program 94.1%
associate-/l*93.9%
Simplified93.9%
Taylor expanded in a around inf 88.0%
Taylor expanded in t around inf 58.5%
Taylor expanded in y around inf 53.2%
clear-num53.2%
un-div-inv53.3%
Applied egg-rr53.3%
Final simplification63.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.05e+121) (not (<= z 1.5e+117))) (+ x t) (+ x (* y (/ t (- a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.05e+121) || !(z <= 1.5e+117)) {
tmp = x + t;
} else {
tmp = x + (y * (t / (a - z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-1.05d+121)) .or. (.not. (z <= 1.5d+117))) then
tmp = x + t
else
tmp = x + (y * (t / (a - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.05e+121) || !(z <= 1.5e+117)) {
tmp = x + t;
} else {
tmp = x + (y * (t / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.05e+121) or not (z <= 1.5e+117): tmp = x + t else: tmp = x + (y * (t / (a - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.05e+121) || !(z <= 1.5e+117)) tmp = Float64(x + t); else tmp = Float64(x + Float64(y * Float64(t / Float64(a - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.05e+121) || ~((z <= 1.5e+117))) tmp = x + t; else tmp = x + (y * (t / (a - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.05e+121], N[Not[LessEqual[z, 1.5e+117]], $MachinePrecision]], N[(x + t), $MachinePrecision], N[(x + N[(y * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{+121} \lor \neg \left(z \leq 1.5 \cdot 10^{+117}\right):\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a - z}\\
\end{array}
\end{array}
if z < -1.0500000000000001e121 or 1.5e117 < z Initial program 74.1%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in z around inf 85.6%
if -1.0500000000000001e121 < z < 1.5e117Initial program 94.7%
associate-*l/97.2%
Simplified97.2%
Taylor expanded in y around inf 83.2%
*-commutative83.2%
associate-*r/86.6%
Simplified86.6%
Final simplification86.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -6.8e+118) (not (<= z 3.5e+99))) (+ x (/ t (/ z (- z y)))) (+ x (* y (/ t (- a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -6.8e+118) || !(z <= 3.5e+99)) {
tmp = x + (t / (z / (z - y)));
} else {
tmp = x + (y * (t / (a - z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-6.8d+118)) .or. (.not. (z <= 3.5d+99))) then
tmp = x + (t / (z / (z - y)))
else
tmp = x + (y * (t / (a - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -6.8e+118) || !(z <= 3.5e+99)) {
tmp = x + (t / (z / (z - y)));
} else {
tmp = x + (y * (t / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -6.8e+118) or not (z <= 3.5e+99): tmp = x + (t / (z / (z - y))) else: tmp = x + (y * (t / (a - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -6.8e+118) || !(z <= 3.5e+99)) tmp = Float64(x + Float64(t / Float64(z / Float64(z - y)))); else tmp = Float64(x + Float64(y * Float64(t / Float64(a - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -6.8e+118) || ~((z <= 3.5e+99))) tmp = x + (t / (z / (z - y))); else tmp = x + (y * (t / (a - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -6.8e+118], N[Not[LessEqual[z, 3.5e+99]], $MachinePrecision]], N[(x + N[(t / N[(z / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.8 \cdot 10^{+118} \lor \neg \left(z \leq 3.5 \cdot 10^{+99}\right):\\
\;\;\;\;x + \frac{t}{\frac{z}{z - y}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a - z}\\
\end{array}
\end{array}
if z < -6.79999999999999973e118 or 3.4999999999999998e99 < z Initial program 74.7%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in a around 0 87.2%
associate-*r/87.2%
neg-mul-187.2%
Simplified87.2%
Taylor expanded in t around 0 67.8%
associate-/l*87.2%
Simplified87.2%
if -6.79999999999999973e118 < z < 3.4999999999999998e99Initial program 94.7%
associate-*l/97.2%
Simplified97.2%
Taylor expanded in y around inf 83.3%
*-commutative83.3%
associate-*r/86.8%
Simplified86.8%
Final simplification86.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.3e+119) (not (<= z 3.5e+90))) (+ x (/ t (/ z (- z y)))) (+ x (/ t (/ (- a z) y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.3e+119) || !(z <= 3.5e+90)) {
tmp = x + (t / (z / (z - y)));
} else {
tmp = x + (t / ((a - z) / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-2.3d+119)) .or. (.not. (z <= 3.5d+90))) then
tmp = x + (t / (z / (z - y)))
else
tmp = x + (t / ((a - z) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.3e+119) || !(z <= 3.5e+90)) {
tmp = x + (t / (z / (z - y)));
} else {
tmp = x + (t / ((a - z) / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.3e+119) or not (z <= 3.5e+90): tmp = x + (t / (z / (z - y))) else: tmp = x + (t / ((a - z) / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.3e+119) || !(z <= 3.5e+90)) tmp = Float64(x + Float64(t / Float64(z / Float64(z - y)))); else tmp = Float64(x + Float64(t / Float64(Float64(a - z) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.3e+119) || ~((z <= 3.5e+90))) tmp = x + (t / (z / (z - y))); else tmp = x + (t / ((a - z) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.3e+119], N[Not[LessEqual[z, 3.5e+90]], $MachinePrecision]], N[(x + N[(t / N[(z / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(N[(a - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.3 \cdot 10^{+119} \lor \neg \left(z \leq 3.5 \cdot 10^{+90}\right):\\
\;\;\;\;x + \frac{t}{\frac{z}{z - y}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a - z}{y}}\\
\end{array}
\end{array}
if z < -2.3000000000000001e119 or 3.4999999999999998e90 < z Initial program 75.1%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in a around 0 87.3%
associate-*r/87.3%
neg-mul-187.3%
Simplified87.3%
Taylor expanded in t around 0 68.2%
associate-/l*87.3%
Simplified87.3%
if -2.3000000000000001e119 < z < 3.4999999999999998e90Initial program 94.6%
associate-*l/97.2%
Simplified97.2%
clear-num97.1%
associate-/r/97.2%
Applied egg-rr97.2%
Taylor expanded in y around inf 83.2%
associate-/l*87.3%
Simplified87.3%
Final simplification87.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ t (- a z))))
(if (<= y -1.42e+41)
(+ x (* y t_1))
(if (<= y 5e-36) (- x (* z t_1)) (+ x (/ t (/ (- a z) y)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t / (a - z);
double tmp;
if (y <= -1.42e+41) {
tmp = x + (y * t_1);
} else if (y <= 5e-36) {
tmp = x - (z * t_1);
} else {
tmp = x + (t / ((a - z) / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t / (a - z)
if (y <= (-1.42d+41)) then
tmp = x + (y * t_1)
else if (y <= 5d-36) then
tmp = x - (z * t_1)
else
tmp = x + (t / ((a - z) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t / (a - z);
double tmp;
if (y <= -1.42e+41) {
tmp = x + (y * t_1);
} else if (y <= 5e-36) {
tmp = x - (z * t_1);
} else {
tmp = x + (t / ((a - z) / y));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t / (a - z) tmp = 0 if y <= -1.42e+41: tmp = x + (y * t_1) elif y <= 5e-36: tmp = x - (z * t_1) else: tmp = x + (t / ((a - z) / y)) return tmp
function code(x, y, z, t, a) t_1 = Float64(t / Float64(a - z)) tmp = 0.0 if (y <= -1.42e+41) tmp = Float64(x + Float64(y * t_1)); elseif (y <= 5e-36) tmp = Float64(x - Float64(z * t_1)); else tmp = Float64(x + Float64(t / Float64(Float64(a - z) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t / (a - z); tmp = 0.0; if (y <= -1.42e+41) tmp = x + (y * t_1); elseif (y <= 5e-36) tmp = x - (z * t_1); else tmp = x + (t / ((a - z) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.42e+41], N[(x + N[(y * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5e-36], N[(x - N[(z * t$95$1), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(N[(a - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{a - z}\\
\mathbf{if}\;y \leq -1.42 \cdot 10^{+41}:\\
\;\;\;\;x + y \cdot t_1\\
\mathbf{elif}\;y \leq 5 \cdot 10^{-36}:\\
\;\;\;\;x - z \cdot t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a - z}{y}}\\
\end{array}
\end{array}
if y < -1.42000000000000007e41Initial program 82.6%
associate-*l/96.0%
Simplified96.0%
Taylor expanded in y around inf 73.6%
*-commutative73.6%
associate-*r/81.0%
Simplified81.0%
if -1.42000000000000007e41 < y < 5.00000000000000004e-36Initial program 93.0%
associate-*l/98.5%
Simplified98.5%
clear-num98.5%
associate-/r/98.4%
Applied egg-rr98.4%
Taylor expanded in y around 0 84.9%
+-commutative84.9%
mul-1-neg84.9%
Simplified84.9%
+-commutative84.9%
unsub-neg84.9%
associate-/l*90.2%
associate-/r/89.7%
Applied egg-rr89.7%
if 5.00000000000000004e-36 < y Initial program 84.5%
associate-*l/98.6%
Simplified98.6%
clear-num98.5%
associate-/r/98.6%
Applied egg-rr98.6%
Taylor expanded in y around inf 82.5%
associate-/l*90.6%
Simplified90.6%
Final simplification88.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -9e+101) (not (<= z 6.6e-45))) (+ x t) (+ x (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -9e+101) || !(z <= 6.6e-45)) {
tmp = x + t;
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-9d+101)) .or. (.not. (z <= 6.6d-45))) then
tmp = x + t
else
tmp = x + (t * (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -9e+101) || !(z <= 6.6e-45)) {
tmp = x + t;
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -9e+101) or not (z <= 6.6e-45): tmp = x + t else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -9e+101) || !(z <= 6.6e-45)) tmp = Float64(x + t); else tmp = Float64(x + Float64(t * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -9e+101) || ~((z <= 6.6e-45))) tmp = x + t; else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -9e+101], N[Not[LessEqual[z, 6.6e-45]], $MachinePrecision]], N[(x + t), $MachinePrecision], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{+101} \lor \neg \left(z \leq 6.6 \cdot 10^{-45}\right):\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -9.0000000000000004e101 or 6.6000000000000001e-45 < z Initial program 80.9%
associate-*l/99.9%
Simplified99.9%
Taylor expanded in z around inf 77.3%
if -9.0000000000000004e101 < z < 6.6000000000000001e-45Initial program 94.7%
associate-*l/96.6%
Simplified96.6%
Taylor expanded in z around 0 77.1%
Final simplification77.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -8.2e+101) (not (<= z 5.8e-45))) (+ x t) (+ x (/ t (/ a y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -8.2e+101) || !(z <= 5.8e-45)) {
tmp = x + t;
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-8.2d+101)) .or. (.not. (z <= 5.8d-45))) then
tmp = x + t
else
tmp = x + (t / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -8.2e+101) || !(z <= 5.8e-45)) {
tmp = x + t;
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -8.2e+101) or not (z <= 5.8e-45): tmp = x + t else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -8.2e+101) || !(z <= 5.8e-45)) tmp = Float64(x + t); else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -8.2e+101) || ~((z <= 5.8e-45))) tmp = x + t; else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -8.2e+101], N[Not[LessEqual[z, 5.8e-45]], $MachinePrecision]], N[(x + t), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.2 \cdot 10^{+101} \lor \neg \left(z \leq 5.8 \cdot 10^{-45}\right):\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if z < -8.1999999999999999e101 or 5.8e-45 < z Initial program 80.9%
associate-*l/99.9%
Simplified99.9%
Taylor expanded in z around inf 77.3%
if -8.1999999999999999e101 < z < 5.8e-45Initial program 94.7%
associate-*l/96.6%
Simplified96.6%
Taylor expanded in z around 0 73.8%
+-commutative73.8%
associate-/l*77.3%
Simplified77.3%
Final simplification77.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -3.2e+74) (not (<= z 5.55e-45))) (+ x t) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.2e+74) || !(z <= 5.55e-45)) {
tmp = x + t;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-3.2d+74)) .or. (.not. (z <= 5.55d-45))) then
tmp = x + t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.2e+74) || !(z <= 5.55e-45)) {
tmp = x + t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -3.2e+74) or not (z <= 5.55e-45): tmp = x + t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -3.2e+74) || !(z <= 5.55e-45)) tmp = Float64(x + t); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -3.2e+74) || ~((z <= 5.55e-45))) tmp = x + t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3.2e+74], N[Not[LessEqual[z, 5.55e-45]], $MachinePrecision]], N[(x + t), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.2 \cdot 10^{+74} \lor \neg \left(z \leq 5.55 \cdot 10^{-45}\right):\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -3.19999999999999995e74 or 5.55e-45 < z Initial program 81.2%
associate-*l/99.9%
Simplified99.9%
Taylor expanded in z around inf 75.4%
if -3.19999999999999995e74 < z < 5.55e-45Initial program 95.1%
associate-*l/96.4%
Simplified96.4%
Taylor expanded in x around inf 48.9%
Final simplification61.3%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 88.6%
associate-*l/98.0%
Simplified98.0%
Taylor expanded in x around inf 51.1%
Final simplification51.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (/ (- y z) (- a z)) t))))
(if (< t -1.0682974490174067e-39)
t_1
(if (< t 3.9110949887586375e-141) (+ x (/ (* (- y z) t) (- a z))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) / (a - z)) * t);
double tmp;
if (t < -1.0682974490174067e-39) {
tmp = t_1;
} else if (t < 3.9110949887586375e-141) {
tmp = x + (((y - z) * t) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - z) / (a - z)) * t)
if (t < (-1.0682974490174067d-39)) then
tmp = t_1
else if (t < 3.9110949887586375d-141) then
tmp = x + (((y - z) * t) / (a - z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) / (a - z)) * t);
double tmp;
if (t < -1.0682974490174067e-39) {
tmp = t_1;
} else if (t < 3.9110949887586375e-141) {
tmp = x + (((y - z) * t) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - z) / (a - z)) * t) tmp = 0 if t < -1.0682974490174067e-39: tmp = t_1 elif t < 3.9110949887586375e-141: tmp = x + (((y - z) * t) / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) / Float64(a - z)) * t)) tmp = 0.0 if (t < -1.0682974490174067e-39) tmp = t_1; elseif (t < 3.9110949887586375e-141) tmp = Float64(x + Float64(Float64(Float64(y - z) * t) / Float64(a - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - z) / (a - z)) * t); tmp = 0.0; if (t < -1.0682974490174067e-39) tmp = t_1; elseif (t < 3.9110949887586375e-141) tmp = x + (((y - z) * t) / (a - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -1.0682974490174067e-39], t$95$1, If[Less[t, 3.9110949887586375e-141], N[(x + N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - z}{a - z} \cdot t\\
\mathbf{if}\;t < -1.0682974490174067 \cdot 10^{-39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t < 3.9110949887586375 \cdot 10^{-141}:\\
\;\;\;\;x + \frac{\left(y - z\right) \cdot t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2024019
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(if (< t -1.0682974490174067e-39) (+ x (* (/ (- y z) (- a z)) t)) (if (< t 3.9110949887586375e-141) (+ x (/ (* (- y z) t) (- a z))) (+ x (* (/ (- y z) (- a z)) t))))
(+ x (/ (* (- y z) t) (- a z))))