
(FPCore (x y z t a) :precision binary64 (- (+ x y) (/ (* (- z t) y) (- a t))))
double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - 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 - t) * y) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - t));
}
def code(x, y, z, t, a): return (x + y) - (((z - t) * y) / (a - t))
function code(x, y, z, t, a) return Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = (x + y) - (((z - t) * y) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 11 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (- (+ x y) (/ (* (- z t) y) (- a t))))
double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - 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 - t) * y) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - t));
}
def code(x, y, z, t, a): return (x + y) - (((z - t) * y) / (a - t))
function code(x, y, z, t, a) return Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = (x + y) - (((z - t) * y) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (+ x y) (/ (* y (- z t)) (- t a)))) (t_2 (/ y (- a t))))
(if (<= t_1 (- INFINITY))
(* z (- (fma -1.0 (/ (+ x (+ y (* t t_2))) z) t_2)))
(if (or (<= t_1 -1e-236) (and (not (<= t_1 0.0)) (<= t_1 1e+283)))
t_1
(+ x (* y (- (/ z t) (/ a t))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) + ((y * (z - t)) / (t - a));
double t_2 = y / (a - t);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = z * -fma(-1.0, ((x + (y + (t * t_2))) / z), t_2);
} else if ((t_1 <= -1e-236) || (!(t_1 <= 0.0) && (t_1 <= 1e+283))) {
tmp = t_1;
} else {
tmp = x + (y * ((z / t) - (a / t)));
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(x + y) + Float64(Float64(y * Float64(z - t)) / Float64(t - a))) t_2 = Float64(y / Float64(a - t)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(z * Float64(-fma(-1.0, Float64(Float64(x + Float64(y + Float64(t * t_2))) / z), t_2))); elseif ((t_1 <= -1e-236) || (!(t_1 <= 0.0) && (t_1 <= 1e+283))) tmp = t_1; else tmp = Float64(x + Float64(y * Float64(Float64(z / t) - Float64(a / t)))); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x + y), $MachinePrecision] + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(z * (-N[(-1.0 * N[(N[(x + N[(y + N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + t$95$2), $MachinePrecision])), $MachinePrecision], If[Or[LessEqual[t$95$1, -1e-236], And[N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision], LessEqual[t$95$1, 1e+283]]], t$95$1, N[(x + N[(y * N[(N[(z / t), $MachinePrecision] - N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + y\right) + \frac{y \cdot \left(z - t\right)}{t - a}\\
t_2 := \frac{y}{a - t}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;z \cdot \left(-\mathsf{fma}\left(-1, \frac{x + \left(y + t \cdot t\_2\right)}{z}, t\_2\right)\right)\\
\mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-236} \lor \neg \left(t\_1 \leq 0\right) \land t\_1 \leq 10^{+283}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(\frac{z}{t} - \frac{a}{t}\right)\\
\end{array}
\end{array}
if (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < -inf.0Initial program 38.1%
Taylor expanded in z around -inf 44.3%
mul-1-neg44.3%
distribute-rgt-neg-in44.3%
fma-neg44.3%
associate--l+44.3%
sub-neg44.3%
mul-1-neg44.3%
remove-double-neg44.3%
associate-/l*83.7%
neg-mul-183.7%
remove-double-neg83.7%
Simplified83.7%
if -inf.0 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < -1e-236 or 0.0 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < 9.99999999999999955e282Initial program 98.5%
if -1e-236 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < 0.0 or 9.99999999999999955e282 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) Initial program 36.1%
sub-neg36.1%
+-commutative36.1%
distribute-frac-neg36.1%
distribute-rgt-neg-out36.1%
associate-/l*45.3%
fma-define45.5%
distribute-frac-neg45.5%
distribute-neg-frac245.5%
sub-neg45.5%
distribute-neg-in45.5%
remove-double-neg45.5%
+-commutative45.5%
sub-neg45.5%
Simplified45.5%
Taylor expanded in t around inf 59.5%
associate--l+59.5%
associate-+r+67.8%
distribute-rgt1-in67.8%
metadata-eval67.8%
mul0-lft67.8%
associate-/l*78.2%
associate-/l*83.4%
Simplified83.4%
Taylor expanded in y around 0 88.9%
Final simplification94.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (+ x y) (/ (* y (- z t)) (- t a)))))
(if (<= t_1 -1e-236)
(fma (- z t) (/ y (- t a)) (+ x y))
(if (or (<= t_1 0.0) (not (<= t_1 1e+283)))
(+ x (* y (- (/ z t) (/ a t))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) + ((y * (z - t)) / (t - a));
double tmp;
if (t_1 <= -1e-236) {
tmp = fma((z - t), (y / (t - a)), (x + y));
} else if ((t_1 <= 0.0) || !(t_1 <= 1e+283)) {
tmp = x + (y * ((z / t) - (a / t)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(x + y) + Float64(Float64(y * Float64(z - t)) / Float64(t - a))) tmp = 0.0 if (t_1 <= -1e-236) tmp = fma(Float64(z - t), Float64(y / Float64(t - a)), Float64(x + y)); elseif ((t_1 <= 0.0) || !(t_1 <= 1e+283)) tmp = Float64(x + Float64(y * Float64(Float64(z / t) - Float64(a / t)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x + y), $MachinePrecision] + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e-236], N[(N[(z - t), $MachinePrecision] * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision] + N[(x + y), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t$95$1, 0.0], N[Not[LessEqual[t$95$1, 1e+283]], $MachinePrecision]], N[(x + N[(y * N[(N[(z / t), $MachinePrecision] - N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + y\right) + \frac{y \cdot \left(z - t\right)}{t - a}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-236}:\\
\;\;\;\;\mathsf{fma}\left(z - t, \frac{y}{t - a}, x + y\right)\\
\mathbf{elif}\;t\_1 \leq 0 \lor \neg \left(t\_1 \leq 10^{+283}\right):\\
\;\;\;\;x + y \cdot \left(\frac{z}{t} - \frac{a}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < -1e-236Initial program 84.5%
sub-neg84.5%
+-commutative84.5%
distribute-frac-neg84.5%
distribute-rgt-neg-out84.5%
associate-/l*92.0%
fma-define92.2%
distribute-frac-neg92.2%
distribute-neg-frac292.2%
sub-neg92.2%
distribute-neg-in92.2%
remove-double-neg92.2%
+-commutative92.2%
sub-neg92.2%
Simplified92.2%
if -1e-236 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < 0.0 or 9.99999999999999955e282 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) Initial program 36.1%
sub-neg36.1%
+-commutative36.1%
distribute-frac-neg36.1%
distribute-rgt-neg-out36.1%
associate-/l*45.3%
fma-define45.5%
distribute-frac-neg45.5%
distribute-neg-frac245.5%
sub-neg45.5%
distribute-neg-in45.5%
remove-double-neg45.5%
+-commutative45.5%
sub-neg45.5%
Simplified45.5%
Taylor expanded in t around inf 59.5%
associate--l+59.5%
associate-+r+67.8%
distribute-rgt1-in67.8%
metadata-eval67.8%
mul0-lft67.8%
associate-/l*78.2%
associate-/l*83.4%
Simplified83.4%
Taylor expanded in y around 0 88.9%
if 0.0 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < 9.99999999999999955e282Initial program 97.7%
Final simplification93.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (+ x y) (/ (* y (- z t)) (- t a)))))
(if (<= t_1 -1e-236)
(+ (+ x y) (* (/ y (- a t)) (- t z)))
(if (or (<= t_1 0.0) (not (<= t_1 1e+283)))
(+ x (* y (- (/ z t) (/ a t))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) + ((y * (z - t)) / (t - a));
double tmp;
if (t_1 <= -1e-236) {
tmp = (x + y) + ((y / (a - t)) * (t - z));
} else if ((t_1 <= 0.0) || !(t_1 <= 1e+283)) {
tmp = x + (y * ((z / t) - (a / t)));
} 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) + ((y * (z - t)) / (t - a))
if (t_1 <= (-1d-236)) then
tmp = (x + y) + ((y / (a - t)) * (t - z))
else if ((t_1 <= 0.0d0) .or. (.not. (t_1 <= 1d+283))) then
tmp = x + (y * ((z / t) - (a / t)))
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) + ((y * (z - t)) / (t - a));
double tmp;
if (t_1 <= -1e-236) {
tmp = (x + y) + ((y / (a - t)) * (t - z));
} else if ((t_1 <= 0.0) || !(t_1 <= 1e+283)) {
tmp = x + (y * ((z / t) - (a / t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x + y) + ((y * (z - t)) / (t - a)) tmp = 0 if t_1 <= -1e-236: tmp = (x + y) + ((y / (a - t)) * (t - z)) elif (t_1 <= 0.0) or not (t_1 <= 1e+283): tmp = x + (y * ((z / t) - (a / t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x + y) + Float64(Float64(y * Float64(z - t)) / Float64(t - a))) tmp = 0.0 if (t_1 <= -1e-236) tmp = Float64(Float64(x + y) + Float64(Float64(y / Float64(a - t)) * Float64(t - z))); elseif ((t_1 <= 0.0) || !(t_1 <= 1e+283)) tmp = Float64(x + Float64(y * Float64(Float64(z / t) - Float64(a / t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x + y) + ((y * (z - t)) / (t - a)); tmp = 0.0; if (t_1 <= -1e-236) tmp = (x + y) + ((y / (a - t)) * (t - z)); elseif ((t_1 <= 0.0) || ~((t_1 <= 1e+283))) tmp = x + (y * ((z / t) - (a / t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x + y), $MachinePrecision] + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e-236], N[(N[(x + y), $MachinePrecision] + N[(N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t$95$1, 0.0], N[Not[LessEqual[t$95$1, 1e+283]], $MachinePrecision]], N[(x + N[(y * N[(N[(z / t), $MachinePrecision] - N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + y\right) + \frac{y \cdot \left(z - t\right)}{t - a}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-236}:\\
\;\;\;\;\left(x + y\right) + \frac{y}{a - t} \cdot \left(t - z\right)\\
\mathbf{elif}\;t\_1 \leq 0 \lor \neg \left(t\_1 \leq 10^{+283}\right):\\
\;\;\;\;x + y \cdot \left(\frac{z}{t} - \frac{a}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < -1e-236Initial program 84.5%
associate-/l*92.0%
*-commutative92.0%
Applied egg-rr92.0%
if -1e-236 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < 0.0 or 9.99999999999999955e282 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) Initial program 36.1%
sub-neg36.1%
+-commutative36.1%
distribute-frac-neg36.1%
distribute-rgt-neg-out36.1%
associate-/l*45.3%
fma-define45.5%
distribute-frac-neg45.5%
distribute-neg-frac245.5%
sub-neg45.5%
distribute-neg-in45.5%
remove-double-neg45.5%
+-commutative45.5%
sub-neg45.5%
Simplified45.5%
Taylor expanded in t around inf 59.5%
associate--l+59.5%
associate-+r+67.8%
distribute-rgt1-in67.8%
metadata-eval67.8%
mul0-lft67.8%
associate-/l*78.2%
associate-/l*83.4%
Simplified83.4%
Taylor expanded in y around 0 88.9%
if 0.0 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < 9.99999999999999955e282Initial program 97.7%
Final simplification93.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1e+92) (not (<= t 1.4e+198))) (+ x (* y (- (/ z t) (/ a t)))) (+ (+ x y) (* (/ y (- a t)) (- t z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1e+92) || !(t <= 1.4e+198)) {
tmp = x + (y * ((z / t) - (a / t)));
} else {
tmp = (x + y) + ((y / (a - t)) * (t - 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 ((t <= (-1d+92)) .or. (.not. (t <= 1.4d+198))) then
tmp = x + (y * ((z / t) - (a / t)))
else
tmp = (x + y) + ((y / (a - t)) * (t - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1e+92) || !(t <= 1.4e+198)) {
tmp = x + (y * ((z / t) - (a / t)));
} else {
tmp = (x + y) + ((y / (a - t)) * (t - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1e+92) or not (t <= 1.4e+198): tmp = x + (y * ((z / t) - (a / t))) else: tmp = (x + y) + ((y / (a - t)) * (t - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1e+92) || !(t <= 1.4e+198)) tmp = Float64(x + Float64(y * Float64(Float64(z / t) - Float64(a / t)))); else tmp = Float64(Float64(x + y) + Float64(Float64(y / Float64(a - t)) * Float64(t - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1e+92) || ~((t <= 1.4e+198))) tmp = x + (y * ((z / t) - (a / t))); else tmp = (x + y) + ((y / (a - t)) * (t - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1e+92], N[Not[LessEqual[t, 1.4e+198]], $MachinePrecision]], N[(x + N[(y * N[(N[(z / t), $MachinePrecision] - N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + y), $MachinePrecision] + N[(N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{+92} \lor \neg \left(t \leq 1.4 \cdot 10^{+198}\right):\\
\;\;\;\;x + y \cdot \left(\frac{z}{t} - \frac{a}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) + \frac{y}{a - t} \cdot \left(t - z\right)\\
\end{array}
\end{array}
if t < -1e92 or 1.4e198 < t Initial program 50.5%
sub-neg50.5%
+-commutative50.5%
distribute-frac-neg50.5%
distribute-rgt-neg-out50.5%
associate-/l*62.7%
fma-define63.1%
distribute-frac-neg63.1%
distribute-neg-frac263.1%
sub-neg63.1%
distribute-neg-in63.1%
remove-double-neg63.1%
+-commutative63.1%
sub-neg63.1%
Simplified63.1%
Taylor expanded in t around inf 61.0%
associate--l+61.0%
associate-+r+66.7%
distribute-rgt1-in66.7%
metadata-eval66.7%
mul0-lft66.7%
associate-/l*75.7%
associate-/l*87.1%
Simplified87.1%
Taylor expanded in y around 0 89.7%
if -1e92 < t < 1.4e198Initial program 89.8%
associate-/l*92.1%
*-commutative92.1%
Applied egg-rr92.1%
Final simplification91.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.7e+201) (and (not (<= z -1.3e+177)) (<= z 6.2e+107))) (+ x y) (* z (/ y (- t a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.7e+201) || (!(z <= -1.3e+177) && (z <= 6.2e+107))) {
tmp = x + y;
} else {
tmp = z * (y / (t - 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 <= (-2.7d+201)) .or. (.not. (z <= (-1.3d+177))) .and. (z <= 6.2d+107)) then
tmp = x + y
else
tmp = z * (y / (t - 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 <= -2.7e+201) || (!(z <= -1.3e+177) && (z <= 6.2e+107))) {
tmp = x + y;
} else {
tmp = z * (y / (t - a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.7e+201) or (not (z <= -1.3e+177) and (z <= 6.2e+107)): tmp = x + y else: tmp = z * (y / (t - a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.7e+201) || (!(z <= -1.3e+177) && (z <= 6.2e+107))) tmp = Float64(x + y); else tmp = Float64(z * Float64(y / Float64(t - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.7e+201) || (~((z <= -1.3e+177)) && (z <= 6.2e+107))) tmp = x + y; else tmp = z * (y / (t - a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.7e+201], And[N[Not[LessEqual[z, -1.3e+177]], $MachinePrecision], LessEqual[z, 6.2e+107]]], N[(x + y), $MachinePrecision], N[(z * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{+201} \lor \neg \left(z \leq -1.3 \cdot 10^{+177}\right) \land z \leq 6.2 \cdot 10^{+107}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;z \cdot \frac{y}{t - a}\\
\end{array}
\end{array}
if z < -2.7e201 or -1.2999999999999999e177 < z < 6.20000000000000052e107Initial program 78.9%
Taylor expanded in a around inf 67.4%
+-commutative67.4%
Simplified67.4%
if -2.7e201 < z < -1.2999999999999999e177 or 6.20000000000000052e107 < z Initial program 75.6%
sub-neg75.6%
+-commutative75.6%
distribute-frac-neg75.6%
distribute-rgt-neg-out75.6%
associate-/l*89.6%
fma-define90.1%
distribute-frac-neg90.1%
distribute-neg-frac290.1%
sub-neg90.1%
distribute-neg-in90.1%
remove-double-neg90.1%
+-commutative90.1%
sub-neg90.1%
Simplified90.1%
Taylor expanded in z around -inf 79.5%
mul-1-neg79.5%
*-commutative79.5%
distribute-rgt-neg-in79.5%
Simplified79.5%
Taylor expanded in z around inf 67.0%
associate-*r/67.0%
mul-1-neg67.0%
Simplified67.0%
Taylor expanded in y around 0 53.2%
*-commutative53.2%
associate-*r/67.0%
Simplified67.0%
Final simplification67.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.2e-36) (not (<= a 1.7e+57))) (+ x y) (+ x (* (* y z) (/ 1.0 t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.2e-36) || !(a <= 1.7e+57)) {
tmp = x + y;
} else {
tmp = x + ((y * z) * (1.0 / 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 ((a <= (-1.2d-36)) .or. (.not. (a <= 1.7d+57))) then
tmp = x + y
else
tmp = x + ((y * z) * (1.0d0 / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.2e-36) || !(a <= 1.7e+57)) {
tmp = x + y;
} else {
tmp = x + ((y * z) * (1.0 / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.2e-36) or not (a <= 1.7e+57): tmp = x + y else: tmp = x + ((y * z) * (1.0 / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.2e-36) || !(a <= 1.7e+57)) tmp = Float64(x + y); else tmp = Float64(x + Float64(Float64(y * z) * Float64(1.0 / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.2e-36) || ~((a <= 1.7e+57))) tmp = x + y; else tmp = x + ((y * z) * (1.0 / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.2e-36], N[Not[LessEqual[a, 1.7e+57]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] * N[(1.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.2 \cdot 10^{-36} \lor \neg \left(a \leq 1.7 \cdot 10^{+57}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot z\right) \cdot \frac{1}{t}\\
\end{array}
\end{array}
if a < -1.2e-36 or 1.69999999999999996e57 < a Initial program 81.4%
Taylor expanded in a around inf 79.4%
+-commutative79.4%
Simplified79.4%
if -1.2e-36 < a < 1.69999999999999996e57Initial program 75.1%
sub-neg75.1%
+-commutative75.1%
distribute-frac-neg75.1%
distribute-rgt-neg-out75.1%
associate-/l*76.3%
fma-define76.5%
distribute-frac-neg76.5%
distribute-neg-frac276.5%
sub-neg76.5%
distribute-neg-in76.5%
remove-double-neg76.5%
+-commutative76.5%
sub-neg76.5%
Simplified76.5%
Taylor expanded in t around inf 70.0%
associate--l+70.0%
associate-+r+74.8%
distribute-rgt1-in74.8%
metadata-eval74.8%
mul0-lft74.8%
associate-/l*77.8%
associate-/l*77.5%
Simplified77.5%
Taylor expanded in a around 0 73.0%
div-inv73.0%
Applied egg-rr73.0%
Final simplification76.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2.6e-36) (not (<= a 4.9e+57))) (+ x y) (+ x (/ 1.0 (/ (/ t y) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.6e-36) || !(a <= 4.9e+57)) {
tmp = x + y;
} else {
tmp = x + (1.0 / ((t / y) / 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 ((a <= (-2.6d-36)) .or. (.not. (a <= 4.9d+57))) then
tmp = x + y
else
tmp = x + (1.0d0 / ((t / y) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.6e-36) || !(a <= 4.9e+57)) {
tmp = x + y;
} else {
tmp = x + (1.0 / ((t / y) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2.6e-36) or not (a <= 4.9e+57): tmp = x + y else: tmp = x + (1.0 / ((t / y) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2.6e-36) || !(a <= 4.9e+57)) tmp = Float64(x + y); else tmp = Float64(x + Float64(1.0 / Float64(Float64(t / y) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -2.6e-36) || ~((a <= 4.9e+57))) tmp = x + y; else tmp = x + (1.0 / ((t / y) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.6e-36], N[Not[LessEqual[a, 4.9e+57]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(1.0 / N[(N[(t / y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.6 \cdot 10^{-36} \lor \neg \left(a \leq 4.9 \cdot 10^{+57}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + \frac{1}{\frac{\frac{t}{y}}{z}}\\
\end{array}
\end{array}
if a < -2.6e-36 or 4.8999999999999999e57 < a Initial program 81.4%
Taylor expanded in a around inf 79.4%
+-commutative79.4%
Simplified79.4%
if -2.6e-36 < a < 4.8999999999999999e57Initial program 75.1%
sub-neg75.1%
+-commutative75.1%
distribute-frac-neg75.1%
distribute-rgt-neg-out75.1%
associate-/l*76.3%
fma-define76.5%
distribute-frac-neg76.5%
distribute-neg-frac276.5%
sub-neg76.5%
distribute-neg-in76.5%
remove-double-neg76.5%
+-commutative76.5%
sub-neg76.5%
Simplified76.5%
Taylor expanded in t around inf 70.0%
associate--l+70.0%
associate-+r+74.8%
distribute-rgt1-in74.8%
metadata-eval74.8%
mul0-lft74.8%
associate-/l*77.8%
associate-/l*77.5%
Simplified77.5%
Taylor expanded in a around 0 73.0%
clear-num73.0%
inv-pow73.0%
Applied egg-rr73.0%
unpow-173.0%
associate-/r*79.0%
Simplified79.0%
Final simplification79.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -9.5e-70) (not (<= a 2.1e-40))) (- (+ x y) (* y (/ z a))) (+ x (/ 1.0 (/ (/ t y) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -9.5e-70) || !(a <= 2.1e-40)) {
tmp = (x + y) - (y * (z / a));
} else {
tmp = x + (1.0 / ((t / y) / 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 ((a <= (-9.5d-70)) .or. (.not. (a <= 2.1d-40))) then
tmp = (x + y) - (y * (z / a))
else
tmp = x + (1.0d0 / ((t / y) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -9.5e-70) || !(a <= 2.1e-40)) {
tmp = (x + y) - (y * (z / a));
} else {
tmp = x + (1.0 / ((t / y) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -9.5e-70) or not (a <= 2.1e-40): tmp = (x + y) - (y * (z / a)) else: tmp = x + (1.0 / ((t / y) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -9.5e-70) || !(a <= 2.1e-40)) tmp = Float64(Float64(x + y) - Float64(y * Float64(z / a))); else tmp = Float64(x + Float64(1.0 / Float64(Float64(t / y) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -9.5e-70) || ~((a <= 2.1e-40))) tmp = (x + y) - (y * (z / a)); else tmp = x + (1.0 / ((t / y) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -9.5e-70], N[Not[LessEqual[a, 2.1e-40]], $MachinePrecision]], N[(N[(x + y), $MachinePrecision] - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(1.0 / N[(N[(t / y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.5 \cdot 10^{-70} \lor \neg \left(a \leq 2.1 \cdot 10^{-40}\right):\\
\;\;\;\;\left(x + y\right) - y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{1}{\frac{\frac{t}{y}}{z}}\\
\end{array}
\end{array}
if a < -9.4999999999999994e-70 or 2.10000000000000018e-40 < a Initial program 81.0%
Taylor expanded in t around 0 82.3%
+-commutative82.3%
associate-/l*86.8%
Simplified86.8%
if -9.4999999999999994e-70 < a < 2.10000000000000018e-40Initial program 74.1%
sub-neg74.1%
+-commutative74.1%
distribute-frac-neg74.1%
distribute-rgt-neg-out74.1%
associate-/l*75.6%
fma-define75.7%
distribute-frac-neg75.7%
distribute-neg-frac275.7%
sub-neg75.7%
distribute-neg-in75.7%
remove-double-neg75.7%
+-commutative75.7%
sub-neg75.7%
Simplified75.7%
Taylor expanded in t around inf 72.3%
associate--l+72.3%
associate-+r+77.4%
distribute-rgt1-in77.4%
metadata-eval77.4%
mul0-lft77.4%
associate-/l*81.0%
associate-/l*78.8%
Simplified78.8%
Taylor expanded in a around 0 73.7%
clear-num73.7%
inv-pow73.7%
Applied egg-rr73.7%
unpow-173.7%
associate-/r*81.2%
Simplified81.2%
Final simplification84.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2.2e-36) (not (<= a 5.9e+57))) (+ x y) (+ x (/ (* y z) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.2e-36) || !(a <= 5.9e+57)) {
tmp = x + y;
} else {
tmp = x + ((y * z) / 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 ((a <= (-2.2d-36)) .or. (.not. (a <= 5.9d+57))) then
tmp = x + y
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 a) {
double tmp;
if ((a <= -2.2e-36) || !(a <= 5.9e+57)) {
tmp = x + y;
} else {
tmp = x + ((y * z) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2.2e-36) or not (a <= 5.9e+57): tmp = x + y else: tmp = x + ((y * z) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2.2e-36) || !(a <= 5.9e+57)) tmp = Float64(x + y); else tmp = Float64(x + Float64(Float64(y * z) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -2.2e-36) || ~((a <= 5.9e+57))) tmp = x + y; else tmp = x + ((y * z) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.2e-36], N[Not[LessEqual[a, 5.9e+57]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2 \cdot 10^{-36} \lor \neg \left(a \leq 5.9 \cdot 10^{+57}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\end{array}
\end{array}
if a < -2.1999999999999999e-36 or 5.90000000000000013e57 < a Initial program 81.4%
Taylor expanded in a around inf 79.4%
+-commutative79.4%
Simplified79.4%
if -2.1999999999999999e-36 < a < 5.90000000000000013e57Initial program 75.1%
sub-neg75.1%
+-commutative75.1%
distribute-frac-neg75.1%
distribute-rgt-neg-out75.1%
associate-/l*76.3%
fma-define76.5%
distribute-frac-neg76.5%
distribute-neg-frac276.5%
sub-neg76.5%
distribute-neg-in76.5%
remove-double-neg76.5%
+-commutative76.5%
sub-neg76.5%
Simplified76.5%
Taylor expanded in t around inf 70.0%
associate--l+70.0%
associate-+r+74.8%
distribute-rgt1-in74.8%
metadata-eval74.8%
mul0-lft74.8%
associate-/l*77.8%
associate-/l*77.5%
Simplified77.5%
Taylor expanded in a around 0 73.0%
Final simplification76.2%
(FPCore (x y z t a) :precision binary64 (if (<= t -2e+102) x (if (<= t 3.8e-35) (+ x y) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2e+102) {
tmp = x;
} else if (t <= 3.8e-35) {
tmp = x + y;
} 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 (t <= (-2d+102)) then
tmp = x
else if (t <= 3.8d-35) then
tmp = x + y
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 (t <= -2e+102) {
tmp = x;
} else if (t <= 3.8e-35) {
tmp = x + y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2e+102: tmp = x elif t <= 3.8e-35: tmp = x + y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2e+102) tmp = x; elseif (t <= 3.8e-35) tmp = Float64(x + y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2e+102) tmp = x; elseif (t <= 3.8e-35) tmp = x + y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2e+102], x, If[LessEqual[t, 3.8e-35], N[(x + y), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2 \cdot 10^{+102}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{-35}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -1.99999999999999995e102 or 3.8000000000000001e-35 < t Initial program 61.2%
Taylor expanded in x around inf 68.6%
if -1.99999999999999995e102 < t < 3.8000000000000001e-35Initial program 91.8%
Taylor expanded in a around inf 62.9%
+-commutative62.9%
Simplified62.9%
Final simplification65.4%
(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 78.3%
Taylor expanded in x around inf 55.9%
Final simplification55.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)))
(t_2 (- (+ x y) (/ (* (- z t) y) (- a t)))))
(if (< t_2 -1.3664970889390727e-7)
t_1
(if (< t_2 1.4754293444577233e-239)
(/ (- (* y (- a z)) (* x t)) (- a t))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
double t_2 = (x + y) - (((z - t) * y) / (a - t));
double tmp;
if (t_2 < -1.3664970889390727e-7) {
tmp = t_1;
} else if (t_2 < 1.4754293444577233e-239) {
tmp = ((y * (a - z)) - (x * t)) / (a - t);
} 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 = (y + x) - (((z - t) * (1.0d0 / (a - t))) * y)
t_2 = (x + y) - (((z - t) * y) / (a - t))
if (t_2 < (-1.3664970889390727d-7)) then
tmp = t_1
else if (t_2 < 1.4754293444577233d-239) then
tmp = ((y * (a - z)) - (x * t)) / (a - t)
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 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
double t_2 = (x + y) - (((z - t) * y) / (a - t));
double tmp;
if (t_2 < -1.3664970889390727e-7) {
tmp = t_1;
} else if (t_2 < 1.4754293444577233e-239) {
tmp = ((y * (a - z)) - (x * t)) / (a - t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y) t_2 = (x + y) - (((z - t) * y) / (a - t)) tmp = 0 if t_2 < -1.3664970889390727e-7: tmp = t_1 elif t_2 < 1.4754293444577233e-239: tmp = ((y * (a - z)) - (x * t)) / (a - t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y + x) - Float64(Float64(Float64(z - t) * Float64(1.0 / Float64(a - t))) * y)) t_2 = Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) tmp = 0.0 if (t_2 < -1.3664970889390727e-7) tmp = t_1; elseif (t_2 < 1.4754293444577233e-239) tmp = Float64(Float64(Float64(y * Float64(a - z)) - Float64(x * t)) / Float64(a - t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y); t_2 = (x + y) - (((z - t) * y) / (a - t)); tmp = 0.0; if (t_2 < -1.3664970889390727e-7) tmp = t_1; elseif (t_2 < 1.4754293444577233e-239) tmp = ((y * (a - z)) - (x * t)) / (a - t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y + x), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * N[(1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$2, -1.3664970889390727e-7], t$95$1, If[Less[t$95$2, 1.4754293444577233e-239], N[(N[(N[(y * N[(a - z), $MachinePrecision]), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y + x\right) - \left(\left(z - t\right) \cdot \frac{1}{a - t}\right) \cdot y\\
t_2 := \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\\
\mathbf{if}\;t\_2 < -1.3664970889390727 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 < 1.4754293444577233 \cdot 10^{-239}:\\
\;\;\;\;\frac{y \cdot \left(a - z\right) - x \cdot t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024077
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
:precision binary64
:alt
(if (< (- (+ x y) (/ (* (- z t) y) (- a t))) -1.3664970889390727e-7) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)) (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) 1.4754293444577233e-239) (/ (- (* y (- a z)) (* x t)) (- a t)) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y))))
(- (+ x y) (/ (* (- z t) y) (- a t))))