
(FPCore (x y z t a b) :precision binary64 (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)))
double code(double x, double y, double z, double t, double a, double b) {
return ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
code = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
}
def code(x, y, z, t, a, b): return ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(Float64(Float64(x + y) * z) + Float64(Float64(t + y) * a)) - Float64(y * b)) / Float64(Float64(x + t) + y)) end
function tmp = code(x, y, z, t, a, b) tmp = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(N[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(N[(x + t), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)))
double code(double x, double y, double z, double t, double a, double b) {
return ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
code = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
}
def code(x, y, z, t, a, b): return ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(Float64(Float64(x + y) * z) + Float64(Float64(t + y) * a)) - Float64(y * b)) / Float64(Float64(x + t) + y)) end
function tmp = code(x, y, z, t, a, b) tmp = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(N[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(N[(x + t), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- (+ (* (+ y t) a) (* z (+ x y))) (* y b)) (+ y (+ x t))))
(t_2 (- (+ z a) b)))
(if (<= t_1 -5e+251) t_2 (if (<= t_1 1e+308) t_1 t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((((y + t) * a) + (z * (x + y))) - (y * b)) / (y + (x + t));
double t_2 = (z + a) - b;
double tmp;
if (t_1 <= -5e+251) {
tmp = t_2;
} else if (t_1 <= 1e+308) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((((y + t) * a) + (z * (x + y))) - (y * b)) / (y + (x + t))
t_2 = (z + a) - b
if (t_1 <= (-5d+251)) then
tmp = t_2
else if (t_1 <= 1d+308) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((((y + t) * a) + (z * (x + y))) - (y * b)) / (y + (x + t));
double t_2 = (z + a) - b;
double tmp;
if (t_1 <= -5e+251) {
tmp = t_2;
} else if (t_1 <= 1e+308) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((((y + t) * a) + (z * (x + y))) - (y * b)) / (y + (x + t)) t_2 = (z + a) - b tmp = 0 if t_1 <= -5e+251: tmp = t_2 elif t_1 <= 1e+308: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(Float64(Float64(y + t) * a) + Float64(z * Float64(x + y))) - Float64(y * b)) / Float64(y + Float64(x + t))) t_2 = Float64(Float64(z + a) - b) tmp = 0.0 if (t_1 <= -5e+251) tmp = t_2; elseif (t_1 <= 1e+308) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((((y + t) * a) + (z * (x + y))) - (y * b)) / (y + (x + t)); t_2 = (z + a) - b; tmp = 0.0; if (t_1 <= -5e+251) tmp = t_2; elseif (t_1 <= 1e+308) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(N[(N[(y + t), $MachinePrecision] * a), $MachinePrecision] + N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+251], t$95$2, If[LessEqual[t$95$1, 1e+308], t$95$1, t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\left(\left(y + t\right) \cdot a + z \cdot \left(x + y\right)\right) - y \cdot b}{y + \left(x + t\right)}\\
t_2 := \left(z + a\right) - b\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+251}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 10^{+308}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < -5.0000000000000005e251 or 1e308 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) Initial program 7.4%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f6471.9%
Simplified71.9%
if -5.0000000000000005e251 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 1e308Initial program 99.7%
Final simplification88.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ t (+ x y))) (t_2 (* z (+ (/ a z) (/ 1.0 (/ t_1 (+ x y)))))))
(if (<= z -2.45e-164)
t_2
(if (<= z 8.2e-98)
(/ (- (* (+ y t) a) (* y b)) (+ y (+ x t)))
(if (<= z 0.00055) (* a (+ (/ z a) (/ 1.0 (/ t_1 (+ y t))))) t_2)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t + (x + y);
double t_2 = z * ((a / z) + (1.0 / (t_1 / (x + y))));
double tmp;
if (z <= -2.45e-164) {
tmp = t_2;
} else if (z <= 8.2e-98) {
tmp = (((y + t) * a) - (y * b)) / (y + (x + t));
} else if (z <= 0.00055) {
tmp = a * ((z / a) + (1.0 / (t_1 / (y + t))));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t + (x + y)
t_2 = z * ((a / z) + (1.0d0 / (t_1 / (x + y))))
if (z <= (-2.45d-164)) then
tmp = t_2
else if (z <= 8.2d-98) then
tmp = (((y + t) * a) - (y * b)) / (y + (x + t))
else if (z <= 0.00055d0) then
tmp = a * ((z / a) + (1.0d0 / (t_1 / (y + t))))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t + (x + y);
double t_2 = z * ((a / z) + (1.0 / (t_1 / (x + y))));
double tmp;
if (z <= -2.45e-164) {
tmp = t_2;
} else if (z <= 8.2e-98) {
tmp = (((y + t) * a) - (y * b)) / (y + (x + t));
} else if (z <= 0.00055) {
tmp = a * ((z / a) + (1.0 / (t_1 / (y + t))));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t + (x + y) t_2 = z * ((a / z) + (1.0 / (t_1 / (x + y)))) tmp = 0 if z <= -2.45e-164: tmp = t_2 elif z <= 8.2e-98: tmp = (((y + t) * a) - (y * b)) / (y + (x + t)) elif z <= 0.00055: tmp = a * ((z / a) + (1.0 / (t_1 / (y + t)))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t + Float64(x + y)) t_2 = Float64(z * Float64(Float64(a / z) + Float64(1.0 / Float64(t_1 / Float64(x + y))))) tmp = 0.0 if (z <= -2.45e-164) tmp = t_2; elseif (z <= 8.2e-98) tmp = Float64(Float64(Float64(Float64(y + t) * a) - Float64(y * b)) / Float64(y + Float64(x + t))); elseif (z <= 0.00055) tmp = Float64(a * Float64(Float64(z / a) + Float64(1.0 / Float64(t_1 / Float64(y + t))))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t + (x + y); t_2 = z * ((a / z) + (1.0 / (t_1 / (x + y)))); tmp = 0.0; if (z <= -2.45e-164) tmp = t_2; elseif (z <= 8.2e-98) tmp = (((y + t) * a) - (y * b)) / (y + (x + t)); elseif (z <= 0.00055) tmp = a * ((z / a) + (1.0 / (t_1 / (y + t)))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t + N[(x + y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(a / z), $MachinePrecision] + N[(1.0 / N[(t$95$1 / N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.45e-164], t$95$2, If[LessEqual[z, 8.2e-98], N[(N[(N[(N[(y + t), $MachinePrecision] * a), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.00055], N[(a * N[(N[(z / a), $MachinePrecision] + N[(1.0 / N[(t$95$1 / N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \left(x + y\right)\\
t_2 := z \cdot \left(\frac{a}{z} + \frac{1}{\frac{t\_1}{x + y}}\right)\\
\mathbf{if}\;z \leq -2.45 \cdot 10^{-164}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{-98}:\\
\;\;\;\;\frac{\left(y + t\right) \cdot a - y \cdot b}{y + \left(x + t\right)}\\
\mathbf{elif}\;z \leq 0.00055:\\
\;\;\;\;a \cdot \left(\frac{z}{a} + \frac{1}{\frac{t\_1}{y + t}}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -2.4499999999999998e-164 or 5.50000000000000033e-4 < z Initial program 54.9%
Taylor expanded in z around -inf
associate-*r*N/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
Simplified65.5%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
neg-sub0N/A
associate--l-N/A
+-commutativeN/A
--lowering--.f64N/A
+-lowering-+.f6465.5%
Applied egg-rr65.5%
Taylor expanded in t around inf
/-lowering-/.f6477.4%
Simplified77.4%
if -2.4499999999999998e-164 < z < 8.1999999999999996e-98Initial program 78.7%
Taylor expanded in z around 0
--lowering--.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6471.3%
Simplified71.3%
if 8.1999999999999996e-98 < z < 5.50000000000000033e-4Initial program 80.5%
Taylor expanded in a around -inf
associate-*r*N/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
Simplified80.4%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
neg-sub0N/A
associate--l-N/A
--lowering--.f64N/A
+-lowering-+.f6480.4%
Applied egg-rr80.4%
Taylor expanded in x around inf
/-lowering-/.f6481.0%
Simplified81.0%
Final simplification75.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- (+ z a) b)))
(if (<= y -6400000000.0)
t_1
(if (<= y 3.6e-46)
(* a (+ (/ t (+ x t)) (/ (* x z) (* a (+ x t)))))
(if (<= y 3.5e+47)
(/ -1.0 (/ (+ t (+ x y)) (- (* y b) (* z (+ x y)))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + a) - b;
double tmp;
if (y <= -6400000000.0) {
tmp = t_1;
} else if (y <= 3.6e-46) {
tmp = a * ((t / (x + t)) + ((x * z) / (a * (x + t))));
} else if (y <= 3.5e+47) {
tmp = -1.0 / ((t + (x + y)) / ((y * b) - (z * (x + y))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (z + a) - b
if (y <= (-6400000000.0d0)) then
tmp = t_1
else if (y <= 3.6d-46) then
tmp = a * ((t / (x + t)) + ((x * z) / (a * (x + t))))
else if (y <= 3.5d+47) then
tmp = (-1.0d0) / ((t + (x + y)) / ((y * b) - (z * (x + y))))
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 b) {
double t_1 = (z + a) - b;
double tmp;
if (y <= -6400000000.0) {
tmp = t_1;
} else if (y <= 3.6e-46) {
tmp = a * ((t / (x + t)) + ((x * z) / (a * (x + t))));
} else if (y <= 3.5e+47) {
tmp = -1.0 / ((t + (x + y)) / ((y * b) - (z * (x + y))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + a) - b tmp = 0 if y <= -6400000000.0: tmp = t_1 elif y <= 3.6e-46: tmp = a * ((t / (x + t)) + ((x * z) / (a * (x + t)))) elif y <= 3.5e+47: tmp = -1.0 / ((t + (x + y)) / ((y * b) - (z * (x + y)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + a) - b) tmp = 0.0 if (y <= -6400000000.0) tmp = t_1; elseif (y <= 3.6e-46) tmp = Float64(a * Float64(Float64(t / Float64(x + t)) + Float64(Float64(x * z) / Float64(a * Float64(x + t))))); elseif (y <= 3.5e+47) tmp = Float64(-1.0 / Float64(Float64(t + Float64(x + y)) / Float64(Float64(y * b) - Float64(z * Float64(x + y))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z + a) - b; tmp = 0.0; if (y <= -6400000000.0) tmp = t_1; elseif (y <= 3.6e-46) tmp = a * ((t / (x + t)) + ((x * z) / (a * (x + t)))); elseif (y <= 3.5e+47) tmp = -1.0 / ((t + (x + y)) / ((y * b) - (z * (x + y)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]}, If[LessEqual[y, -6400000000.0], t$95$1, If[LessEqual[y, 3.6e-46], N[(a * N[(N[(t / N[(x + t), $MachinePrecision]), $MachinePrecision] + N[(N[(x * z), $MachinePrecision] / N[(a * N[(x + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.5e+47], N[(-1.0 / N[(N[(t + N[(x + y), $MachinePrecision]), $MachinePrecision] / N[(N[(y * b), $MachinePrecision] - N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z + a\right) - b\\
\mathbf{if}\;y \leq -6400000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{-46}:\\
\;\;\;\;a \cdot \left(\frac{t}{x + t} + \frac{x \cdot z}{a \cdot \left(x + t\right)}\right)\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{+47}:\\
\;\;\;\;\frac{-1}{\frac{t + \left(x + y\right)}{y \cdot b - z \cdot \left(x + y\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -6.4e9 or 3.50000000000000015e47 < y Initial program 43.3%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f6478.4%
Simplified78.4%
if -6.4e9 < y < 3.6e-46Initial program 73.7%
Taylor expanded in y around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f6461.3%
Simplified61.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6469.0%
Simplified69.0%
if 3.6e-46 < y < 3.50000000000000015e47Initial program 96.0%
Taylor expanded in a around 0
--lowering--.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6477.3%
Simplified77.3%
clear-numN/A
/-lowering-/.f64N/A
+-commutativeN/A
associate-+r+N/A
+-commutativeN/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6477.3%
Applied egg-rr77.3%
Final simplification73.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- (+ z a) b)))
(if (<= y -6000000000.0)
t_1
(if (<= y 7.5e-46)
(* a (+ (/ t (+ x t)) (/ (* x z) (* a (+ x t)))))
(if (<= y 5.2e+46) (/ (- (* z (+ x y)) (* y b)) (+ y (+ x t))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + a) - b;
double tmp;
if (y <= -6000000000.0) {
tmp = t_1;
} else if (y <= 7.5e-46) {
tmp = a * ((t / (x + t)) + ((x * z) / (a * (x + t))));
} else if (y <= 5.2e+46) {
tmp = ((z * (x + y)) - (y * b)) / (y + (x + t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (z + a) - b
if (y <= (-6000000000.0d0)) then
tmp = t_1
else if (y <= 7.5d-46) then
tmp = a * ((t / (x + t)) + ((x * z) / (a * (x + t))))
else if (y <= 5.2d+46) then
tmp = ((z * (x + y)) - (y * b)) / (y + (x + 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 b) {
double t_1 = (z + a) - b;
double tmp;
if (y <= -6000000000.0) {
tmp = t_1;
} else if (y <= 7.5e-46) {
tmp = a * ((t / (x + t)) + ((x * z) / (a * (x + t))));
} else if (y <= 5.2e+46) {
tmp = ((z * (x + y)) - (y * b)) / (y + (x + t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + a) - b tmp = 0 if y <= -6000000000.0: tmp = t_1 elif y <= 7.5e-46: tmp = a * ((t / (x + t)) + ((x * z) / (a * (x + t)))) elif y <= 5.2e+46: tmp = ((z * (x + y)) - (y * b)) / (y + (x + t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + a) - b) tmp = 0.0 if (y <= -6000000000.0) tmp = t_1; elseif (y <= 7.5e-46) tmp = Float64(a * Float64(Float64(t / Float64(x + t)) + Float64(Float64(x * z) / Float64(a * Float64(x + t))))); elseif (y <= 5.2e+46) tmp = Float64(Float64(Float64(z * Float64(x + y)) - Float64(y * b)) / Float64(y + Float64(x + t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z + a) - b; tmp = 0.0; if (y <= -6000000000.0) tmp = t_1; elseif (y <= 7.5e-46) tmp = a * ((t / (x + t)) + ((x * z) / (a * (x + t)))); elseif (y <= 5.2e+46) tmp = ((z * (x + y)) - (y * b)) / (y + (x + t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]}, If[LessEqual[y, -6000000000.0], t$95$1, If[LessEqual[y, 7.5e-46], N[(a * N[(N[(t / N[(x + t), $MachinePrecision]), $MachinePrecision] + N[(N[(x * z), $MachinePrecision] / N[(a * N[(x + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.2e+46], N[(N[(N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z + a\right) - b\\
\mathbf{if}\;y \leq -6000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-46}:\\
\;\;\;\;a \cdot \left(\frac{t}{x + t} + \frac{x \cdot z}{a \cdot \left(x + t\right)}\right)\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{+46}:\\
\;\;\;\;\frac{z \cdot \left(x + y\right) - y \cdot b}{y + \left(x + t\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -6e9 or 5.20000000000000027e46 < y Initial program 43.3%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f6478.4%
Simplified78.4%
if -6e9 < y < 7.50000000000000027e-46Initial program 73.7%
Taylor expanded in y around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f6461.3%
Simplified61.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6469.0%
Simplified69.0%
if 7.50000000000000027e-46 < y < 5.20000000000000027e46Initial program 96.0%
Taylor expanded in a around 0
--lowering--.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6477.3%
Simplified77.3%
Final simplification73.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- (+ z a) b)))
(if (<= y -3.6e-35)
t_1
(if (<= y 5.5e-46)
(/ (+ (* t a) (* x z)) (+ x t))
(if (<= y 4e+46) (/ (- (* z (+ x y)) (* y b)) (+ y (+ x t))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + a) - b;
double tmp;
if (y <= -3.6e-35) {
tmp = t_1;
} else if (y <= 5.5e-46) {
tmp = ((t * a) + (x * z)) / (x + t);
} else if (y <= 4e+46) {
tmp = ((z * (x + y)) - (y * b)) / (y + (x + t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (z + a) - b
if (y <= (-3.6d-35)) then
tmp = t_1
else if (y <= 5.5d-46) then
tmp = ((t * a) + (x * z)) / (x + t)
else if (y <= 4d+46) then
tmp = ((z * (x + y)) - (y * b)) / (y + (x + 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 b) {
double t_1 = (z + a) - b;
double tmp;
if (y <= -3.6e-35) {
tmp = t_1;
} else if (y <= 5.5e-46) {
tmp = ((t * a) + (x * z)) / (x + t);
} else if (y <= 4e+46) {
tmp = ((z * (x + y)) - (y * b)) / (y + (x + t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + a) - b tmp = 0 if y <= -3.6e-35: tmp = t_1 elif y <= 5.5e-46: tmp = ((t * a) + (x * z)) / (x + t) elif y <= 4e+46: tmp = ((z * (x + y)) - (y * b)) / (y + (x + t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + a) - b) tmp = 0.0 if (y <= -3.6e-35) tmp = t_1; elseif (y <= 5.5e-46) tmp = Float64(Float64(Float64(t * a) + Float64(x * z)) / Float64(x + t)); elseif (y <= 4e+46) tmp = Float64(Float64(Float64(z * Float64(x + y)) - Float64(y * b)) / Float64(y + Float64(x + t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z + a) - b; tmp = 0.0; if (y <= -3.6e-35) tmp = t_1; elseif (y <= 5.5e-46) tmp = ((t * a) + (x * z)) / (x + t); elseif (y <= 4e+46) tmp = ((z * (x + y)) - (y * b)) / (y + (x + t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]}, If[LessEqual[y, -3.6e-35], t$95$1, If[LessEqual[y, 5.5e-46], N[(N[(N[(t * a), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision] / N[(x + t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4e+46], N[(N[(N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z + a\right) - b\\
\mathbf{if}\;y \leq -3.6 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-46}:\\
\;\;\;\;\frac{t \cdot a + x \cdot z}{x + t}\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+46}:\\
\;\;\;\;\frac{z \cdot \left(x + y\right) - y \cdot b}{y + \left(x + t\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.60000000000000019e-35 or 4e46 < y Initial program 45.5%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f6475.1%
Simplified75.1%
if -3.60000000000000019e-35 < y < 5.49999999999999983e-46Initial program 75.7%
Taylor expanded in y around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f6463.4%
Simplified63.4%
if 5.49999999999999983e-46 < y < 4e46Initial program 96.0%
Taylor expanded in a around 0
--lowering--.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6477.3%
Simplified77.3%
Final simplification70.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- (+ z a) b)))
(if (<= y -3.2e-35)
t_1
(if (<= y 1.15e-45)
(/ (+ (* t a) (* x z)) (+ x t))
(if (<= y 3.45e+47) (/ (* y t_1) (+ y (+ x t))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + a) - b;
double tmp;
if (y <= -3.2e-35) {
tmp = t_1;
} else if (y <= 1.15e-45) {
tmp = ((t * a) + (x * z)) / (x + t);
} else if (y <= 3.45e+47) {
tmp = (y * t_1) / (y + (x + t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (z + a) - b
if (y <= (-3.2d-35)) then
tmp = t_1
else if (y <= 1.15d-45) then
tmp = ((t * a) + (x * z)) / (x + t)
else if (y <= 3.45d+47) then
tmp = (y * t_1) / (y + (x + 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 b) {
double t_1 = (z + a) - b;
double tmp;
if (y <= -3.2e-35) {
tmp = t_1;
} else if (y <= 1.15e-45) {
tmp = ((t * a) + (x * z)) / (x + t);
} else if (y <= 3.45e+47) {
tmp = (y * t_1) / (y + (x + t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + a) - b tmp = 0 if y <= -3.2e-35: tmp = t_1 elif y <= 1.15e-45: tmp = ((t * a) + (x * z)) / (x + t) elif y <= 3.45e+47: tmp = (y * t_1) / (y + (x + t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + a) - b) tmp = 0.0 if (y <= -3.2e-35) tmp = t_1; elseif (y <= 1.15e-45) tmp = Float64(Float64(Float64(t * a) + Float64(x * z)) / Float64(x + t)); elseif (y <= 3.45e+47) tmp = Float64(Float64(y * t_1) / Float64(y + Float64(x + t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z + a) - b; tmp = 0.0; if (y <= -3.2e-35) tmp = t_1; elseif (y <= 1.15e-45) tmp = ((t * a) + (x * z)) / (x + t); elseif (y <= 3.45e+47) tmp = (y * t_1) / (y + (x + t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]}, If[LessEqual[y, -3.2e-35], t$95$1, If[LessEqual[y, 1.15e-45], N[(N[(N[(t * a), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision] / N[(x + t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.45e+47], N[(N[(y * t$95$1), $MachinePrecision] / N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z + a\right) - b\\
\mathbf{if}\;y \leq -3.2 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{-45}:\\
\;\;\;\;\frac{t \cdot a + x \cdot z}{x + t}\\
\mathbf{elif}\;y \leq 3.45 \cdot 10^{+47}:\\
\;\;\;\;\frac{y \cdot t\_1}{y + \left(x + t\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.1999999999999998e-35 or 3.4500000000000002e47 < y Initial program 45.5%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f6475.1%
Simplified75.1%
if -3.1999999999999998e-35 < y < 1.14999999999999996e-45Initial program 75.7%
Taylor expanded in y around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f6463.4%
Simplified63.4%
if 1.14999999999999996e-45 < y < 3.4500000000000002e47Initial program 96.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
+-lowering-+.f6470.4%
Simplified70.4%
Final simplification69.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- (+ z a) b)))
(if (<= y -6e-35)
t_1
(if (<= y 720000000000.0)
(/ (+ (* t a) (* x z)) (+ x t))
(if (<= y 8.9e+46) (* (/ 1.0 (+ t (+ x y))) (* y (- z b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + a) - b;
double tmp;
if (y <= -6e-35) {
tmp = t_1;
} else if (y <= 720000000000.0) {
tmp = ((t * a) + (x * z)) / (x + t);
} else if (y <= 8.9e+46) {
tmp = (1.0 / (t + (x + y))) * (y * (z - b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (z + a) - b
if (y <= (-6d-35)) then
tmp = t_1
else if (y <= 720000000000.0d0) then
tmp = ((t * a) + (x * z)) / (x + t)
else if (y <= 8.9d+46) then
tmp = (1.0d0 / (t + (x + y))) * (y * (z - b))
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 b) {
double t_1 = (z + a) - b;
double tmp;
if (y <= -6e-35) {
tmp = t_1;
} else if (y <= 720000000000.0) {
tmp = ((t * a) + (x * z)) / (x + t);
} else if (y <= 8.9e+46) {
tmp = (1.0 / (t + (x + y))) * (y * (z - b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + a) - b tmp = 0 if y <= -6e-35: tmp = t_1 elif y <= 720000000000.0: tmp = ((t * a) + (x * z)) / (x + t) elif y <= 8.9e+46: tmp = (1.0 / (t + (x + y))) * (y * (z - b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + a) - b) tmp = 0.0 if (y <= -6e-35) tmp = t_1; elseif (y <= 720000000000.0) tmp = Float64(Float64(Float64(t * a) + Float64(x * z)) / Float64(x + t)); elseif (y <= 8.9e+46) tmp = Float64(Float64(1.0 / Float64(t + Float64(x + y))) * Float64(y * Float64(z - b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z + a) - b; tmp = 0.0; if (y <= -6e-35) tmp = t_1; elseif (y <= 720000000000.0) tmp = ((t * a) + (x * z)) / (x + t); elseif (y <= 8.9e+46) tmp = (1.0 / (t + (x + y))) * (y * (z - b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]}, If[LessEqual[y, -6e-35], t$95$1, If[LessEqual[y, 720000000000.0], N[(N[(N[(t * a), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision] / N[(x + t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.9e+46], N[(N[(1.0 / N[(t + N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y * N[(z - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z + a\right) - b\\
\mathbf{if}\;y \leq -6 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 720000000000:\\
\;\;\;\;\frac{t \cdot a + x \cdot z}{x + t}\\
\mathbf{elif}\;y \leq 8.9 \cdot 10^{+46}:\\
\;\;\;\;\frac{1}{t + \left(x + y\right)} \cdot \left(y \cdot \left(z - b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.99999999999999978e-35 or 8.8999999999999997e46 < y Initial program 45.5%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f6475.1%
Simplified75.1%
if -5.99999999999999978e-35 < y < 7.2e11Initial program 79.0%
Taylor expanded in y around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f6460.8%
Simplified60.8%
if 7.2e11 < y < 8.8999999999999997e46Initial program 87.9%
Taylor expanded in a around 0
--lowering--.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6488.3%
Simplified88.3%
clear-numN/A
+-commutativeN/A
associate-+r+N/A
+-commutativeN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6488.3%
Applied egg-rr88.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
--lowering--.f6488.2%
Simplified88.2%
Final simplification68.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- (+ z a) b)))
(if (<= y -5.5e-35)
t_1
(if (<= y 1350000000000.0)
(/ (+ (* t a) (* x z)) (+ x t))
(if (<= y 4.1e+46) (/ (* y b) (- (- 0.0 y) (+ x t))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + a) - b;
double tmp;
if (y <= -5.5e-35) {
tmp = t_1;
} else if (y <= 1350000000000.0) {
tmp = ((t * a) + (x * z)) / (x + t);
} else if (y <= 4.1e+46) {
tmp = (y * b) / ((0.0 - y) - (x + t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (z + a) - b
if (y <= (-5.5d-35)) then
tmp = t_1
else if (y <= 1350000000000.0d0) then
tmp = ((t * a) + (x * z)) / (x + t)
else if (y <= 4.1d+46) then
tmp = (y * b) / ((0.0d0 - y) - (x + 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 b) {
double t_1 = (z + a) - b;
double tmp;
if (y <= -5.5e-35) {
tmp = t_1;
} else if (y <= 1350000000000.0) {
tmp = ((t * a) + (x * z)) / (x + t);
} else if (y <= 4.1e+46) {
tmp = (y * b) / ((0.0 - y) - (x + t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + a) - b tmp = 0 if y <= -5.5e-35: tmp = t_1 elif y <= 1350000000000.0: tmp = ((t * a) + (x * z)) / (x + t) elif y <= 4.1e+46: tmp = (y * b) / ((0.0 - y) - (x + t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + a) - b) tmp = 0.0 if (y <= -5.5e-35) tmp = t_1; elseif (y <= 1350000000000.0) tmp = Float64(Float64(Float64(t * a) + Float64(x * z)) / Float64(x + t)); elseif (y <= 4.1e+46) tmp = Float64(Float64(y * b) / Float64(Float64(0.0 - y) - Float64(x + t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z + a) - b; tmp = 0.0; if (y <= -5.5e-35) tmp = t_1; elseif (y <= 1350000000000.0) tmp = ((t * a) + (x * z)) / (x + t); elseif (y <= 4.1e+46) tmp = (y * b) / ((0.0 - y) - (x + t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]}, If[LessEqual[y, -5.5e-35], t$95$1, If[LessEqual[y, 1350000000000.0], N[(N[(N[(t * a), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision] / N[(x + t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.1e+46], N[(N[(y * b), $MachinePrecision] / N[(N[(0.0 - y), $MachinePrecision] - N[(x + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z + a\right) - b\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1350000000000:\\
\;\;\;\;\frac{t \cdot a + x \cdot z}{x + t}\\
\mathbf{elif}\;y \leq 4.1 \cdot 10^{+46}:\\
\;\;\;\;\frac{y \cdot b}{\left(0 - y\right) - \left(x + t\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.4999999999999997e-35 or 4.1e46 < y Initial program 45.5%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f6475.1%
Simplified75.1%
if -5.4999999999999997e-35 < y < 1.35e12Initial program 79.0%
Taylor expanded in y around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f6460.8%
Simplified60.8%
if 1.35e12 < y < 4.1e46Initial program 87.9%
Taylor expanded in a around 0
--lowering--.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6488.3%
Simplified88.3%
Taylor expanded in z around 0
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6468.0%
Simplified68.0%
Final simplification67.6%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* a (/ (+ y t) (+ t (+ x y)))))) (if (<= t -8.6e+79) t_1 (if (<= t 1.18e+119) (- (+ z a) b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * ((y + t) / (t + (x + y)));
double tmp;
if (t <= -8.6e+79) {
tmp = t_1;
} else if (t <= 1.18e+119) {
tmp = (z + a) - b;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((y + t) / (t + (x + y)))
if (t <= (-8.6d+79)) then
tmp = t_1
else if (t <= 1.18d+119) then
tmp = (z + a) - b
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 b) {
double t_1 = a * ((y + t) / (t + (x + y)));
double tmp;
if (t <= -8.6e+79) {
tmp = t_1;
} else if (t <= 1.18e+119) {
tmp = (z + a) - b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * ((y + t) / (t + (x + y))) tmp = 0 if t <= -8.6e+79: tmp = t_1 elif t <= 1.18e+119: tmp = (z + a) - b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(Float64(y + t) / Float64(t + Float64(x + y)))) tmp = 0.0 if (t <= -8.6e+79) tmp = t_1; elseif (t <= 1.18e+119) tmp = Float64(Float64(z + a) - b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * ((y + t) / (t + (x + y))); tmp = 0.0; if (t <= -8.6e+79) tmp = t_1; elseif (t <= 1.18e+119) tmp = (z + a) - b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(N[(y + t), $MachinePrecision] / N[(t + N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.6e+79], t$95$1, If[LessEqual[t, 1.18e+119], N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \frac{y + t}{t + \left(x + y\right)}\\
\mathbf{if}\;t \leq -8.6 \cdot 10^{+79}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.18 \cdot 10^{+119}:\\
\;\;\;\;\left(z + a\right) - b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -8.6000000000000006e79 or 1.1799999999999999e119 < t Initial program 54.1%
Taylor expanded in a around -inf
associate-*r*N/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
Simplified80.7%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f6432.1%
Simplified32.1%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f6465.1%
Applied egg-rr65.1%
if -8.6000000000000006e79 < t < 1.1799999999999999e119Initial program 69.4%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f6461.8%
Simplified61.8%
Final simplification63.0%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* a (/ t (+ x t))))) (if (<= t -6.8e+71) t_1 (if (<= t 5.4e+123) (- (+ z a) b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (t / (x + t));
double tmp;
if (t <= -6.8e+71) {
tmp = t_1;
} else if (t <= 5.4e+123) {
tmp = (z + a) - b;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = a * (t / (x + t))
if (t <= (-6.8d+71)) then
tmp = t_1
else if (t <= 5.4d+123) then
tmp = (z + a) - b
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 b) {
double t_1 = a * (t / (x + t));
double tmp;
if (t <= -6.8e+71) {
tmp = t_1;
} else if (t <= 5.4e+123) {
tmp = (z + a) - b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (t / (x + t)) tmp = 0 if t <= -6.8e+71: tmp = t_1 elif t <= 5.4e+123: tmp = (z + a) - b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(t / Float64(x + t))) tmp = 0.0 if (t <= -6.8e+71) tmp = t_1; elseif (t <= 5.4e+123) tmp = Float64(Float64(z + a) - b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (t / (x + t)); tmp = 0.0; if (t <= -6.8e+71) tmp = t_1; elseif (t <= 5.4e+123) tmp = (z + a) - b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(t / N[(x + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.8e+71], t$95$1, If[LessEqual[t, 5.4e+123], N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \frac{t}{x + t}\\
\mathbf{if}\;t \leq -6.8 \cdot 10^{+71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.4 \cdot 10^{+123}:\\
\;\;\;\;\left(z + a\right) - b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -6.7999999999999997e71 or 5.40000000000000026e123 < t Initial program 54.1%
Taylor expanded in y around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f6442.8%
Simplified42.8%
Taylor expanded in a around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f6463.1%
Simplified63.1%
if -6.7999999999999997e71 < t < 5.40000000000000026e123Initial program 69.4%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f6461.8%
Simplified61.8%
Final simplification62.3%
(FPCore (x y z t a b) :precision binary64 (if (<= t -9e+81) a (if (<= t 2.95e+181) (- (+ z a) b) a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -9e+81) {
tmp = a;
} else if (t <= 2.95e+181) {
tmp = (z + a) - b;
} else {
tmp = a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (t <= (-9d+81)) then
tmp = a
else if (t <= 2.95d+181) then
tmp = (z + a) - b
else
tmp = a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -9e+81) {
tmp = a;
} else if (t <= 2.95e+181) {
tmp = (z + a) - b;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -9e+81: tmp = a elif t <= 2.95e+181: tmp = (z + a) - b else: tmp = a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -9e+81) tmp = a; elseif (t <= 2.95e+181) tmp = Float64(Float64(z + a) - b); else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -9e+81) tmp = a; elseif (t <= 2.95e+181) tmp = (z + a) - b; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -9e+81], a, If[LessEqual[t, 2.95e+181], N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision], a]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9 \cdot 10^{+81}:\\
\;\;\;\;a\\
\mathbf{elif}\;t \leq 2.95 \cdot 10^{+181}:\\
\;\;\;\;\left(z + a\right) - b\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if t < -9.00000000000000034e81 or 2.9499999999999999e181 < t Initial program 51.3%
Taylor expanded in t around inf
Simplified64.2%
if -9.00000000000000034e81 < t < 2.9499999999999999e181Initial program 69.5%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f6461.3%
Simplified61.3%
Final simplification62.2%
(FPCore (x y z t a b) :precision binary64 (if (<= t -1.05e-119) a (if (<= t 2.5e+116) (- z b) a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.05e-119) {
tmp = a;
} else if (t <= 2.5e+116) {
tmp = z - b;
} else {
tmp = a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (t <= (-1.05d-119)) then
tmp = a
else if (t <= 2.5d+116) then
tmp = z - b
else
tmp = a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.05e-119) {
tmp = a;
} else if (t <= 2.5e+116) {
tmp = z - b;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -1.05e-119: tmp = a elif t <= 2.5e+116: tmp = z - b else: tmp = a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -1.05e-119) tmp = a; elseif (t <= 2.5e+116) tmp = Float64(z - b); else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -1.05e-119) tmp = a; elseif (t <= 2.5e+116) tmp = z - b; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.05e-119], a, If[LessEqual[t, 2.5e+116], N[(z - b), $MachinePrecision], a]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.05 \cdot 10^{-119}:\\
\;\;\;\;a\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{+116}:\\
\;\;\;\;z - b\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if t < -1.05e-119 or 2.50000000000000013e116 < t Initial program 59.3%
Taylor expanded in t around inf
Simplified56.0%
if -1.05e-119 < t < 2.50000000000000013e116Initial program 68.9%
Taylor expanded in a around 0
--lowering--.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6451.3%
Simplified51.3%
Taylor expanded in y around inf
--lowering--.f6448.0%
Simplified48.0%
(FPCore (x y z t a b) :precision binary64 (if (<= t -1.6e-114) a (if (<= t 950.0) z a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.6e-114) {
tmp = a;
} else if (t <= 950.0) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (t <= (-1.6d-114)) then
tmp = a
else if (t <= 950.0d0) then
tmp = z
else
tmp = a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.6e-114) {
tmp = a;
} else if (t <= 950.0) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -1.6e-114: tmp = a elif t <= 950.0: tmp = z else: tmp = a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -1.6e-114) tmp = a; elseif (t <= 950.0) tmp = z; else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -1.6e-114) tmp = a; elseif (t <= 950.0) tmp = z; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.6e-114], a, If[LessEqual[t, 950.0], z, a]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.6 \cdot 10^{-114}:\\
\;\;\;\;a\\
\mathbf{elif}\;t \leq 950:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if t < -1.6000000000000001e-114 or 950 < t Initial program 61.9%
Taylor expanded in t around inf
Simplified52.4%
if -1.6000000000000001e-114 < t < 950Initial program 67.2%
Taylor expanded in x around inf
Simplified48.9%
(FPCore (x y z t a b) :precision binary64 a)
double code(double x, double y, double z, double t, double a, double b) {
return a;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
code = a
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return a;
}
def code(x, y, z, t, a, b): return a
function code(x, y, z, t, a, b) return a end
function tmp = code(x, y, z, t, a, b) tmp = a; end
code[x_, y_, z_, t_, a_, b_] := a
\begin{array}{l}
\\
a
\end{array}
Initial program 64.0%
Taylor expanded in t around inf
Simplified38.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (+ x t) y))
(t_2 (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)))
(t_3 (/ t_2 t_1))
(t_4 (- (+ z a) b)))
(if (< t_3 -3.5813117084150564e+153)
t_4
(if (< t_3 1.2285964308315609e+82) (/ 1.0 (/ t_1 t_2)) t_4))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + t) + y;
double t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b);
double t_3 = t_2 / t_1;
double t_4 = (z + a) - b;
double tmp;
if (t_3 < -3.5813117084150564e+153) {
tmp = t_4;
} else if (t_3 < 1.2285964308315609e+82) {
tmp = 1.0 / (t_1 / t_2);
} else {
tmp = t_4;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (x + t) + y
t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b)
t_3 = t_2 / t_1
t_4 = (z + a) - b
if (t_3 < (-3.5813117084150564d+153)) then
tmp = t_4
else if (t_3 < 1.2285964308315609d+82) then
tmp = 1.0d0 / (t_1 / t_2)
else
tmp = t_4
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + t) + y;
double t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b);
double t_3 = t_2 / t_1;
double t_4 = (z + a) - b;
double tmp;
if (t_3 < -3.5813117084150564e+153) {
tmp = t_4;
} else if (t_3 < 1.2285964308315609e+82) {
tmp = 1.0 / (t_1 / t_2);
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + t) + y t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b) t_3 = t_2 / t_1 t_4 = (z + a) - b tmp = 0 if t_3 < -3.5813117084150564e+153: tmp = t_4 elif t_3 < 1.2285964308315609e+82: tmp = 1.0 / (t_1 / t_2) else: tmp = t_4 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + t) + y) t_2 = Float64(Float64(Float64(Float64(x + y) * z) + Float64(Float64(t + y) * a)) - Float64(y * b)) t_3 = Float64(t_2 / t_1) t_4 = Float64(Float64(z + a) - b) tmp = 0.0 if (t_3 < -3.5813117084150564e+153) tmp = t_4; elseif (t_3 < 1.2285964308315609e+82) tmp = Float64(1.0 / Float64(t_1 / t_2)); else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + t) + y; t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b); t_3 = t_2 / t_1; t_4 = (z + a) - b; tmp = 0.0; if (t_3 < -3.5813117084150564e+153) tmp = t_4; elseif (t_3 < 1.2285964308315609e+82) tmp = 1.0 / (t_1 / t_2); else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + t), $MachinePrecision] + y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 / t$95$1), $MachinePrecision]}, Block[{t$95$4 = N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]}, If[Less[t$95$3, -3.5813117084150564e+153], t$95$4, If[Less[t$95$3, 1.2285964308315609e+82], N[(1.0 / N[(t$95$1 / t$95$2), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + t\right) + y\\
t_2 := \left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b\\
t_3 := \frac{t\_2}{t\_1}\\
t_4 := \left(z + a\right) - b\\
\mathbf{if}\;t\_3 < -3.5813117084150564 \cdot 10^{+153}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t\_3 < 1.2285964308315609 \cdot 10^{+82}:\\
\;\;\;\;\frac{1}{\frac{t\_1}{t\_2}}\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
herbie shell --seed 2024161
(FPCore (x y z t a b)
:name "AI.Clustering.Hierarchical.Internal:ward from clustering-0.2.1"
:precision binary64
:alt
(! :herbie-platform default (if (< (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)) -3581311708415056400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (+ z a) b) (if (< (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)) 12285964308315609000000000000000000000000000000000000000000000000000000000000000000) (/ 1 (/ (+ (+ x t) y) (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)))) (- (+ z a) b))))
(/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)))