
(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 12 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 (if (or (<= a -6.8e-100) (not (<= a 5.5e-101))) (+ x (fma (/ (- t z) (- a t)) y y)) (- x (* z (/ y (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -6.8e-100) || !(a <= 5.5e-101)) {
tmp = x + fma(((t - z) / (a - t)), y, y);
} else {
tmp = x - (z * (y / (a - t)));
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -6.8e-100) || !(a <= 5.5e-101)) tmp = Float64(x + fma(Float64(Float64(t - z) / Float64(a - t)), y, y)); else tmp = Float64(x - Float64(z * Float64(y / Float64(a - t)))); end return tmp end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -6.8e-100], N[Not[LessEqual[a, 5.5e-101]], $MachinePrecision]], N[(x + N[(N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] * y + y), $MachinePrecision]), $MachinePrecision], N[(x - N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.8 \cdot 10^{-100} \lor \neg \left(a \leq 5.5 \cdot 10^{-101}\right):\\
\;\;\;\;x + \mathsf{fma}\left(\frac{t - z}{a - t}, y, y\right)\\
\mathbf{else}:\\
\;\;\;\;x - z \cdot \frac{y}{a - t}\\
\end{array}
\end{array}
if a < -6.79999999999999953e-100 or 5.49999999999999973e-101 < a Initial program 86.8%
associate--l+89.1%
sub-neg89.1%
+-commutative89.1%
associate-/l*90.7%
distribute-neg-frac90.7%
associate-/r/95.0%
fma-def95.0%
sub-neg95.0%
+-commutative95.0%
distribute-neg-in95.0%
unsub-neg95.0%
remove-double-neg95.0%
Simplified95.0%
if -6.79999999999999953e-100 < a < 5.49999999999999973e-101Initial program 70.0%
associate--l+76.5%
sub-neg76.5%
+-commutative76.5%
associate-/l*80.8%
distribute-neg-frac80.8%
associate-/r/80.8%
fma-def80.8%
sub-neg80.8%
+-commutative80.8%
distribute-neg-in80.8%
unsub-neg80.8%
remove-double-neg80.8%
Simplified80.8%
Taylor expanded in z around inf 91.8%
mul-1-neg91.8%
*-commutative91.8%
associate-*r/93.9%
distribute-lft-neg-in93.9%
Simplified93.9%
Final simplification94.6%
(FPCore (x y z t a)
:precision binary64
(if (<= t -2.8e+142)
(+ x (* y (/ z t)))
(if (<= t 9e+113)
(+ x (+ y (/ (- t z) (/ (- a t) y))))
(+ x (* (/ y t) (- z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.8e+142) {
tmp = x + (y * (z / t));
} else if (t <= 9e+113) {
tmp = x + (y + ((t - z) / ((a - t) / y)));
} else {
tmp = x + ((y / t) * (z - 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 (t <= (-2.8d+142)) then
tmp = x + (y * (z / t))
else if (t <= 9d+113) then
tmp = x + (y + ((t - z) / ((a - t) / y)))
else
tmp = x + ((y / t) * (z - a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.8e+142) {
tmp = x + (y * (z / t));
} else if (t <= 9e+113) {
tmp = x + (y + ((t - z) / ((a - t) / y)));
} else {
tmp = x + ((y / t) * (z - a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.8e+142: tmp = x + (y * (z / t)) elif t <= 9e+113: tmp = x + (y + ((t - z) / ((a - t) / y))) else: tmp = x + ((y / t) * (z - a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.8e+142) tmp = Float64(x + Float64(y * Float64(z / t))); elseif (t <= 9e+113) tmp = Float64(x + Float64(y + Float64(Float64(t - z) / Float64(Float64(a - t) / y)))); else tmp = Float64(x + Float64(Float64(y / t) * Float64(z - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.8e+142) tmp = x + (y * (z / t)); elseif (t <= 9e+113) tmp = x + (y + ((t - z) / ((a - t) / y))); else tmp = x + ((y / t) * (z - a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.8e+142], N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e+113], N[(x + N[(y + N[(N[(t - z), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y / t), $MachinePrecision] * N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.8 \cdot 10^{+142}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\mathbf{elif}\;t \leq 9 \cdot 10^{+113}:\\
\;\;\;\;x + \left(y + \frac{t - z}{\frac{a - t}{y}}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{t} \cdot \left(z - a\right)\\
\end{array}
\end{array}
if t < -2.8e142Initial program 56.2%
associate-*l/64.0%
Simplified64.0%
Taylor expanded in a around 0 53.8%
associate--l+53.8%
sub-neg53.8%
mul-1-neg53.8%
remove-double-neg53.8%
*-commutative53.8%
associate-/l*61.8%
Simplified61.8%
Taylor expanded in y around 0 80.9%
associate-/l*96.2%
Simplified96.2%
Taylor expanded in y around 0 80.9%
associate-*r/96.3%
Simplified96.3%
if -2.8e142 < t < 9.0000000000000001e113Initial program 90.6%
associate--l+92.4%
associate-/l*94.1%
Simplified94.1%
if 9.0000000000000001e113 < t Initial program 59.0%
associate-*l/68.4%
Simplified68.4%
Taylor expanded in t around -inf 82.5%
+-commutative82.5%
mul-1-neg82.5%
unsub-neg82.5%
distribute-lft-out--82.6%
Simplified82.6%
expm1-log1p-u76.5%
expm1-udef67.6%
associate-/l*72.6%
Applied egg-rr72.6%
expm1-def79.0%
expm1-log1p90.7%
associate-/r/91.4%
Simplified91.4%
Final simplification94.1%
(FPCore (x y z t a)
:precision binary64
(if (<= t -3.8e+143)
(+ (- x (/ y (/ t a))) (/ y (/ t z)))
(if (<= t 6e+114)
(+ x (+ y (/ (- t z) (/ (- a t) y))))
(+ x (* (/ y t) (- z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.8e+143) {
tmp = (x - (y / (t / a))) + (y / (t / z));
} else if (t <= 6e+114) {
tmp = x + (y + ((t - z) / ((a - t) / y)));
} else {
tmp = x + ((y / t) * (z - 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 (t <= (-3.8d+143)) then
tmp = (x - (y / (t / a))) + (y / (t / z))
else if (t <= 6d+114) then
tmp = x + (y + ((t - z) / ((a - t) / y)))
else
tmp = x + ((y / t) * (z - a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.8e+143) {
tmp = (x - (y / (t / a))) + (y / (t / z));
} else if (t <= 6e+114) {
tmp = x + (y + ((t - z) / ((a - t) / y)));
} else {
tmp = x + ((y / t) * (z - a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.8e+143: tmp = (x - (y / (t / a))) + (y / (t / z)) elif t <= 6e+114: tmp = x + (y + ((t - z) / ((a - t) / y))) else: tmp = x + ((y / t) * (z - a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.8e+143) tmp = Float64(Float64(x - Float64(y / Float64(t / a))) + Float64(y / Float64(t / z))); elseif (t <= 6e+114) tmp = Float64(x + Float64(y + Float64(Float64(t - z) / Float64(Float64(a - t) / y)))); else tmp = Float64(x + Float64(Float64(y / t) * Float64(z - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.8e+143) tmp = (x - (y / (t / a))) + (y / (t / z)); elseif (t <= 6e+114) tmp = x + (y + ((t - z) / ((a - t) / y))); else tmp = x + ((y / t) * (z - a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.8e+143], N[(N[(x - N[(y / N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6e+114], N[(x + N[(y + N[(N[(t - z), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y / t), $MachinePrecision] * N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.8 \cdot 10^{+143}:\\
\;\;\;\;\left(x - \frac{y}{\frac{t}{a}}\right) + \frac{y}{\frac{t}{z}}\\
\mathbf{elif}\;t \leq 6 \cdot 10^{+114}:\\
\;\;\;\;x + \left(y + \frac{t - z}{\frac{a - t}{y}}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{t} \cdot \left(z - a\right)\\
\end{array}
\end{array}
if t < -3.8e143Initial program 56.2%
associate-*l/64.0%
Simplified64.0%
Taylor expanded in t around inf 78.4%
sub-neg78.4%
+-commutative78.4%
mul-1-neg78.4%
unsub-neg78.4%
associate-/l*80.9%
mul-1-neg80.9%
remove-double-neg80.9%
associate-/l*97.4%
Simplified97.4%
if -3.8e143 < t < 6.0000000000000001e114Initial program 90.6%
associate--l+92.4%
associate-/l*94.1%
Simplified94.1%
if 6.0000000000000001e114 < t Initial program 59.0%
associate-*l/68.4%
Simplified68.4%
Taylor expanded in t around -inf 82.5%
+-commutative82.5%
mul-1-neg82.5%
unsub-neg82.5%
distribute-lft-out--82.6%
Simplified82.6%
expm1-log1p-u76.5%
expm1-udef67.6%
associate-/l*72.6%
Applied egg-rr72.6%
expm1-def79.0%
expm1-log1p90.7%
associate-/r/91.4%
Simplified91.4%
Final simplification94.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.15e-71) (not (<= a 2e-39))) (+ y (- x (/ y (/ a z)))) (+ x (* (/ y t) (- z a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.15e-71) || !(a <= 2e-39)) {
tmp = y + (x - (y / (a / z)));
} else {
tmp = x + ((y / t) * (z - 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 ((a <= (-1.15d-71)) .or. (.not. (a <= 2d-39))) then
tmp = y + (x - (y / (a / z)))
else
tmp = x + ((y / t) * (z - a))
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.15e-71) || !(a <= 2e-39)) {
tmp = y + (x - (y / (a / z)));
} else {
tmp = x + ((y / t) * (z - a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.15e-71) or not (a <= 2e-39): tmp = y + (x - (y / (a / z))) else: tmp = x + ((y / t) * (z - a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.15e-71) || !(a <= 2e-39)) tmp = Float64(y + Float64(x - Float64(y / Float64(a / z)))); else tmp = Float64(x + Float64(Float64(y / t) * Float64(z - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.15e-71) || ~((a <= 2e-39))) tmp = y + (x - (y / (a / z))); else tmp = x + ((y / t) * (z - a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.15e-71], N[Not[LessEqual[a, 2e-39]], $MachinePrecision]], N[(y + N[(x - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y / t), $MachinePrecision] * N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.15 \cdot 10^{-71} \lor \neg \left(a \leq 2 \cdot 10^{-39}\right):\\
\;\;\;\;y + \left(x - \frac{y}{\frac{a}{z}}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{t} \cdot \left(z - a\right)\\
\end{array}
\end{array}
if a < -1.1499999999999999e-71 or 1.99999999999999986e-39 < a Initial program 88.6%
associate-*l/94.0%
Simplified94.0%
Taylor expanded in t around 0 83.8%
associate--l+83.8%
associate-/l*86.4%
Simplified86.4%
if -1.1499999999999999e-71 < a < 1.99999999999999986e-39Initial program 70.2%
associate-*l/69.9%
Simplified69.9%
Taylor expanded in t around -inf 83.1%
+-commutative83.1%
mul-1-neg83.1%
unsub-neg83.1%
distribute-lft-out--83.1%
Simplified83.1%
expm1-log1p-u61.3%
expm1-udef56.1%
associate-/l*53.8%
Applied egg-rr53.8%
expm1-def57.4%
expm1-log1p81.1%
associate-/r/85.7%
Simplified85.7%
Final simplification86.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -8.5e+51) (not (<= a 1.45e-37))) (- (+ x y) (* y (/ z a))) (- x (* z (/ y (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -8.5e+51) || !(a <= 1.45e-37)) {
tmp = (x + y) - (y * (z / a));
} else {
tmp = x - (z * (y / (a - 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 <= (-8.5d+51)) .or. (.not. (a <= 1.45d-37))) then
tmp = (x + y) - (y * (z / a))
else
tmp = x - (z * (y / (a - 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 <= -8.5e+51) || !(a <= 1.45e-37)) {
tmp = (x + y) - (y * (z / a));
} else {
tmp = x - (z * (y / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -8.5e+51) or not (a <= 1.45e-37): tmp = (x + y) - (y * (z / a)) else: tmp = x - (z * (y / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -8.5e+51) || !(a <= 1.45e-37)) tmp = Float64(Float64(x + y) - Float64(y * Float64(z / a))); else tmp = Float64(x - Float64(z * Float64(y / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -8.5e+51) || ~((a <= 1.45e-37))) tmp = (x + y) - (y * (z / a)); else tmp = x - (z * (y / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -8.5e+51], N[Not[LessEqual[a, 1.45e-37]], $MachinePrecision]], N[(N[(x + y), $MachinePrecision] - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.5 \cdot 10^{+51} \lor \neg \left(a \leq 1.45 \cdot 10^{-37}\right):\\
\;\;\;\;\left(x + y\right) - y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;x - z \cdot \frac{y}{a - t}\\
\end{array}
\end{array}
if a < -8.4999999999999999e51 or 1.45000000000000002e-37 < a Initial program 90.3%
associate-*l/95.7%
Simplified95.7%
Taylor expanded in t around 0 89.2%
if -8.4999999999999999e51 < a < 1.45000000000000002e-37Initial program 70.8%
associate--l+77.9%
sub-neg77.9%
+-commutative77.9%
associate-/l*80.9%
distribute-neg-frac80.9%
associate-/r/82.9%
fma-def82.9%
sub-neg82.9%
+-commutative82.9%
distribute-neg-in82.9%
unsub-neg82.9%
remove-double-neg82.9%
Simplified82.9%
Taylor expanded in z around inf 84.2%
mul-1-neg84.2%
*-commutative84.2%
associate-*r/87.3%
distribute-lft-neg-in87.3%
Simplified87.3%
Final simplification88.2%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.8e-36) (+ x (* y (/ z t))) (if (<= t 2.95e+110) (+ y (- x (/ y (/ a z)))) (+ x (* z (/ y t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.8e-36) {
tmp = x + (y * (z / t));
} else if (t <= 2.95e+110) {
tmp = y + (x - (y / (a / z)));
} else {
tmp = x + (z * (y / 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 (t <= (-1.8d-36)) then
tmp = x + (y * (z / t))
else if (t <= 2.95d+110) then
tmp = y + (x - (y / (a / z)))
else
tmp = x + (z * (y / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.8e-36) {
tmp = x + (y * (z / t));
} else if (t <= 2.95e+110) {
tmp = y + (x - (y / (a / z)));
} else {
tmp = x + (z * (y / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.8e-36: tmp = x + (y * (z / t)) elif t <= 2.95e+110: tmp = y + (x - (y / (a / z))) else: tmp = x + (z * (y / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.8e-36) tmp = Float64(x + Float64(y * Float64(z / t))); elseif (t <= 2.95e+110) tmp = Float64(y + Float64(x - Float64(y / Float64(a / z)))); else tmp = Float64(x + Float64(z * Float64(y / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.8e-36) tmp = x + (y * (z / t)); elseif (t <= 2.95e+110) tmp = y + (x - (y / (a / z))); else tmp = x + (z * (y / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.8e-36], N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.95e+110], N[(y + N[(x - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.8 \cdot 10^{-36}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\mathbf{elif}\;t \leq 2.95 \cdot 10^{+110}:\\
\;\;\;\;y + \left(x - \frac{y}{\frac{a}{z}}\right)\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y}{t}\\
\end{array}
\end{array}
if t < -1.80000000000000016e-36Initial program 66.3%
associate-*l/73.7%
Simplified73.7%
Taylor expanded in a around 0 58.5%
associate--l+58.5%
sub-neg58.5%
mul-1-neg58.5%
remove-double-neg58.5%
*-commutative58.5%
associate-/l*64.9%
Simplified64.9%
Taylor expanded in y around 0 79.8%
associate-/l*88.8%
Simplified88.8%
Taylor expanded in y around 0 79.8%
associate-*r/88.8%
Simplified88.8%
if -1.80000000000000016e-36 < t < 2.9499999999999999e110Initial program 94.2%
associate-*l/92.9%
Simplified92.9%
Taylor expanded in t around 0 82.2%
associate--l+82.2%
associate-/l*83.6%
Simplified83.6%
if 2.9499999999999999e110 < t Initial program 60.1%
associate-*l/69.2%
Simplified69.2%
Taylor expanded in a around 0 54.5%
associate--l+54.5%
sub-neg54.5%
mul-1-neg54.5%
remove-double-neg54.5%
*-commutative54.5%
associate-/l*63.7%
Simplified63.7%
Taylor expanded in y around 0 76.3%
associate-/l*81.6%
Simplified81.6%
associate-/r/81.7%
Applied egg-rr81.7%
Final simplification84.9%
(FPCore (x y z t a) :precision binary64 (if (<= a -5e-71) (+ y (- x (/ y (/ a z)))) (if (<= a 2.15e-41) (+ x (* (/ y t) (- z a))) (- (+ x y) (* y (/ z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5e-71) {
tmp = y + (x - (y / (a / z)));
} else if (a <= 2.15e-41) {
tmp = x + ((y / t) * (z - a));
} else {
tmp = (x + y) - (y * (z / 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 (a <= (-5d-71)) then
tmp = y + (x - (y / (a / z)))
else if (a <= 2.15d-41) then
tmp = x + ((y / t) * (z - a))
else
tmp = (x + y) - (y * (z / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5e-71) {
tmp = y + (x - (y / (a / z)));
} else if (a <= 2.15e-41) {
tmp = x + ((y / t) * (z - a));
} else {
tmp = (x + y) - (y * (z / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -5e-71: tmp = y + (x - (y / (a / z))) elif a <= 2.15e-41: tmp = x + ((y / t) * (z - a)) else: tmp = (x + y) - (y * (z / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -5e-71) tmp = Float64(y + Float64(x - Float64(y / Float64(a / z)))); elseif (a <= 2.15e-41) tmp = Float64(x + Float64(Float64(y / t) * Float64(z - a))); else tmp = Float64(Float64(x + y) - Float64(y * Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -5e-71) tmp = y + (x - (y / (a / z))); elseif (a <= 2.15e-41) tmp = x + ((y / t) * (z - a)); else tmp = (x + y) - (y * (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -5e-71], N[(y + N[(x - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.15e-41], N[(x + N[(N[(y / t), $MachinePrecision] * N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + y), $MachinePrecision] - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5 \cdot 10^{-71}:\\
\;\;\;\;y + \left(x - \frac{y}{\frac{a}{z}}\right)\\
\mathbf{elif}\;a \leq 2.15 \cdot 10^{-41}:\\
\;\;\;\;x + \frac{y}{t} \cdot \left(z - a\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) - y \cdot \frac{z}{a}\\
\end{array}
\end{array}
if a < -4.99999999999999998e-71Initial program 87.3%
associate-*l/92.3%
Simplified92.3%
Taylor expanded in t around 0 79.6%
associate--l+79.6%
associate-/l*83.3%
Simplified83.3%
if -4.99999999999999998e-71 < a < 2.1499999999999999e-41Initial program 70.2%
associate-*l/69.9%
Simplified69.9%
Taylor expanded in t around -inf 83.1%
+-commutative83.1%
mul-1-neg83.1%
unsub-neg83.1%
distribute-lft-out--83.1%
Simplified83.1%
expm1-log1p-u61.3%
expm1-udef56.1%
associate-/l*53.8%
Applied egg-rr53.8%
expm1-def57.4%
expm1-log1p81.1%
associate-/r/85.7%
Simplified85.7%
if 2.1499999999999999e-41 < a Initial program 89.9%
associate-*l/95.7%
Simplified95.7%
Taylor expanded in t around 0 89.7%
Final simplification86.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.75e-70) (not (<= a 9.2e-42))) (+ x y) (+ x (* z (/ y t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.75e-70) || !(a <= 9.2e-42)) {
tmp = x + y;
} else {
tmp = x + (z * (y / 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.75d-70)) .or. (.not. (a <= 9.2d-42))) then
tmp = x + y
else
tmp = x + (z * (y / 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.75e-70) || !(a <= 9.2e-42)) {
tmp = x + y;
} else {
tmp = x + (z * (y / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.75e-70) or not (a <= 9.2e-42): tmp = x + y else: tmp = x + (z * (y / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.75e-70) || !(a <= 9.2e-42)) tmp = Float64(x + y); else tmp = Float64(x + Float64(z * Float64(y / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.75e-70) || ~((a <= 9.2e-42))) tmp = x + y; else tmp = x + (z * (y / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.75e-70], N[Not[LessEqual[a, 9.2e-42]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.75 \cdot 10^{-70} \lor \neg \left(a \leq 9.2 \cdot 10^{-42}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y}{t}\\
\end{array}
\end{array}
if a < -1.74999999999999987e-70 or 9.20000000000000015e-42 < a Initial program 88.6%
associate-*l/94.0%
Simplified94.0%
Taylor expanded in a around inf 79.3%
if -1.74999999999999987e-70 < a < 9.20000000000000015e-42Initial program 70.2%
associate-*l/69.9%
Simplified69.9%
Taylor expanded in a around 0 58.0%
associate--l+58.0%
sub-neg58.0%
mul-1-neg58.0%
remove-double-neg58.0%
*-commutative58.0%
associate-/l*57.3%
Simplified57.3%
Taylor expanded in y around 0 79.2%
associate-/l*77.2%
Simplified77.2%
associate-/r/81.8%
Applied egg-rr81.8%
Final simplification80.4%
(FPCore (x y z t a) :precision binary64 (if (<= a -2.4e-69) (+ x y) (if (<= a 2.1e-41) (+ x (* y (/ z t))) (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.4e-69) {
tmp = x + y;
} else if (a <= 2.1e-41) {
tmp = x + (y * (z / t));
} else {
tmp = x + 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 (a <= (-2.4d-69)) then
tmp = x + y
else if (a <= 2.1d-41) then
tmp = x + (y * (z / t))
else
tmp = x + y
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.4e-69) {
tmp = x + y;
} else if (a <= 2.1e-41) {
tmp = x + (y * (z / t));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.4e-69: tmp = x + y elif a <= 2.1e-41: tmp = x + (y * (z / t)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.4e-69) tmp = Float64(x + y); elseif (a <= 2.1e-41) tmp = Float64(x + Float64(y * Float64(z / t))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.4e-69) tmp = x + y; elseif (a <= 2.1e-41) tmp = x + (y * (z / t)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.4e-69], N[(x + y), $MachinePrecision], If[LessEqual[a, 2.1e-41], N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.4 \cdot 10^{-69}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-41}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if a < -2.4000000000000001e-69 or 2.10000000000000013e-41 < a Initial program 88.6%
associate-*l/94.0%
Simplified94.0%
Taylor expanded in a around inf 79.3%
if -2.4000000000000001e-69 < a < 2.10000000000000013e-41Initial program 70.2%
associate-*l/69.9%
Simplified69.9%
Taylor expanded in a around 0 58.0%
associate--l+58.0%
sub-neg58.0%
mul-1-neg58.0%
remove-double-neg58.0%
*-commutative58.0%
associate-/l*57.3%
Simplified57.3%
Taylor expanded in y around 0 79.2%
associate-/l*77.2%
Simplified77.2%
Taylor expanded in y around 0 79.2%
associate-*r/76.8%
Simplified76.8%
Final simplification78.2%
(FPCore (x y z t a) :precision binary64 (if (<= a -3.4e-100) (+ x y) (if (<= a 4.6e-98) x (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.4e-100) {
tmp = x + y;
} else if (a <= 4.6e-98) {
tmp = x;
} else {
tmp = x + 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 (a <= (-3.4d-100)) then
tmp = x + y
else if (a <= 4.6d-98) then
tmp = x
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.4e-100) {
tmp = x + y;
} else if (a <= 4.6e-98) {
tmp = x;
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.4e-100: tmp = x + y elif a <= 4.6e-98: tmp = x else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.4e-100) tmp = Float64(x + y); elseif (a <= 4.6e-98) tmp = x; else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.4e-100) tmp = x + y; elseif (a <= 4.6e-98) tmp = x; else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.4e-100], N[(x + y), $MachinePrecision], If[LessEqual[a, 4.6e-98], x, N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.4 \cdot 10^{-100}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;a \leq 4.6 \cdot 10^{-98}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if a < -3.39999999999999976e-100 or 4.60000000000000001e-98 < a Initial program 87.3%
associate-*l/92.7%
Simplified92.7%
Taylor expanded in a around inf 76.3%
if -3.39999999999999976e-100 < a < 4.60000000000000001e-98Initial program 69.3%
associate-*l/67.9%
Simplified67.9%
Taylor expanded in x around inf 47.0%
Final simplification65.4%
(FPCore (x y z t a) :precision binary64 (if (<= x -4.5e-111) x (if (<= x 2.3e-15) y x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -4.5e-111) {
tmp = x;
} else if (x <= 2.3e-15) {
tmp = 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 (x <= (-4.5d-111)) then
tmp = x
else if (x <= 2.3d-15) then
tmp = 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 (x <= -4.5e-111) {
tmp = x;
} else if (x <= 2.3e-15) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -4.5e-111: tmp = x elif x <= 2.3e-15: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -4.5e-111) tmp = x; elseif (x <= 2.3e-15) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -4.5e-111) tmp = x; elseif (x <= 2.3e-15) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -4.5e-111], x, If[LessEqual[x, 2.3e-15], y, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.5 \cdot 10^{-111}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-15}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -4.49999999999999994e-111 or 2.2999999999999999e-15 < x Initial program 85.6%
associate-*l/90.4%
Simplified90.4%
Taylor expanded in x around inf 69.5%
if -4.49999999999999994e-111 < x < 2.2999999999999999e-15Initial program 73.2%
associate-*l/73.2%
Simplified73.2%
associate-*l/73.2%
flip-+53.4%
frac-sub42.8%
difference-of-squares42.8%
+-commutative42.8%
*-commutative42.8%
Applied egg-rr42.8%
Taylor expanded in a around inf 31.7%
Taylor expanded in y around inf 39.4%
*-commutative39.4%
associate-/l*36.0%
Simplified36.0%
Taylor expanded in a around inf 37.1%
Final simplification56.6%
(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 80.6%
associate-*l/83.5%
Simplified83.5%
Taylor expanded in x around inf 49.4%
Final simplification49.4%
(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 2023181
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
:precision binary64
:herbie-target
(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))))