
(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 12 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 (/ (- (+ (* z (+ x y)) (* a (+ y t))) (* y b)) (+ y (+ x t))))
(t_2 (* (+ x y) (+ x y))))
(if (<= t_1 (- INFINITY))
(fma (- z b) (/ y (+ y t)) a)
(if (<= t_1 5e+278)
t_1
(fma
b
(/ y (- (- y) x))
(fma
t
(- (fma y (/ b t_2) (/ a (+ x y))) (fma a (/ y t_2) (/ z (+ x y))))
(fma a (/ y (+ x y)) z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (((z * (x + y)) + (a * (y + t))) - (y * b)) / (y + (x + t));
double t_2 = (x + y) * (x + y);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = fma((z - b), (y / (y + t)), a);
} else if (t_1 <= 5e+278) {
tmp = t_1;
} else {
tmp = fma(b, (y / (-y - x)), fma(t, (fma(y, (b / t_2), (a / (x + y))) - fma(a, (y / t_2), (z / (x + y)))), fma(a, (y / (x + y)), z)));
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(Float64(z * Float64(x + y)) + Float64(a * Float64(y + t))) - Float64(y * b)) / Float64(y + Float64(x + t))) t_2 = Float64(Float64(x + y) * Float64(x + y)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = fma(Float64(z - b), Float64(y / Float64(y + t)), a); elseif (t_1 <= 5e+278) tmp = t_1; else tmp = fma(b, Float64(y / Float64(Float64(-y) - x)), fma(t, Float64(fma(y, Float64(b / t_2), Float64(a / Float64(x + y))) - fma(a, Float64(y / t_2), Float64(z / Float64(x + y)))), fma(a, Float64(y / Float64(x + y)), z))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision] + N[(a * N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + y), $MachinePrecision] * N[(x + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(z - b), $MachinePrecision] * N[(y / N[(y + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision], If[LessEqual[t$95$1, 5e+278], t$95$1, N[(b * N[(y / N[((-y) - x), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(y * N[(b / t$95$2), $MachinePrecision] + N[(a / N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(y / t$95$2), $MachinePrecision] + N[(z / N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(y / N[(x + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\left(z \cdot \left(x + y\right) + a \cdot \left(y + t\right)\right) - y \cdot b}{y + \left(x + t\right)}\\
t_2 := \left(x + y\right) \cdot \left(x + y\right)\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\mathsf{fma}\left(z - b, \frac{y}{y + t}, a\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+278}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(b, \frac{y}{\left(-y\right) - x}, \mathsf{fma}\left(t, \mathsf{fma}\left(y, \frac{b}{t\_2}, \frac{a}{x + y}\right) - \mathsf{fma}\left(a, \frac{y}{t\_2}, \frac{z}{x + y}\right), \mathsf{fma}\left(a, \frac{y}{x + y}, z\right)\right)\right)\\
\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)) < -inf.0Initial program 6.3%
Taylor expanded in b around 0
mul-1-negN/A
+-commutativeN/A
associate-+l+N/A
associate-/l*N/A
sub-negN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-+.f64N/A
+-commutativeN/A
lower-+.f64N/A
div-subN/A
lower-/.f64N/A
Simplified41.7%
Taylor expanded in x around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
+-commutativeN/A
lower-+.f6476.9
Simplified76.9%
Taylor expanded in a around 0
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower--.f64N/A
lower-/.f64N/A
+-commutativeN/A
lower-+.f6480.4
Simplified80.4%
if -inf.0 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 5.00000000000000029e278Initial program 99.6%
if 5.00000000000000029e278 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) Initial program 4.5%
Taylor expanded in t around 0
sub-negN/A
+-commutativeN/A
associate-/l*N/A
distribute-rgt-neg-inN/A
lower-fma.f64N/A
Simplified83.3%
Final simplification92.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- (+ (* z (+ x y)) (* a (+ y t))) (* y b)) (+ y (+ x t)))))
(if (<= t_1 (- INFINITY))
(fma (- z b) (/ y (+ y t)) a)
(if (<= t_1 1e+271) t_1 (fma a (/ (+ y t) (+ t (+ x y))) (- z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (((z * (x + y)) + (a * (y + t))) - (y * b)) / (y + (x + t));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = fma((z - b), (y / (y + t)), a);
} else if (t_1 <= 1e+271) {
tmp = t_1;
} else {
tmp = fma(a, ((y + t) / (t + (x + y))), (z - b));
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(Float64(z * Float64(x + y)) + Float64(a * Float64(y + t))) - Float64(y * b)) / Float64(y + Float64(x + t))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = fma(Float64(z - b), Float64(y / Float64(y + t)), a); elseif (t_1 <= 1e+271) tmp = t_1; else tmp = fma(a, Float64(Float64(y + t) / Float64(t + Float64(x + y))), Float64(z - b)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision] + N[(a * N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(z - b), $MachinePrecision] * N[(y / N[(y + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision], If[LessEqual[t$95$1, 1e+271], t$95$1, N[(a * N[(N[(y + t), $MachinePrecision] / N[(t + N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z - b), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\left(z \cdot \left(x + y\right) + a \cdot \left(y + t\right)\right) - y \cdot b}{y + \left(x + t\right)}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\mathsf{fma}\left(z - b, \frac{y}{y + t}, a\right)\\
\mathbf{elif}\;t\_1 \leq 10^{+271}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(a, \frac{y + t}{t + \left(x + y\right)}, z - b\right)\\
\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)) < -inf.0Initial program 6.3%
Taylor expanded in b around 0
mul-1-negN/A
+-commutativeN/A
associate-+l+N/A
associate-/l*N/A
sub-negN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-+.f64N/A
+-commutativeN/A
lower-+.f64N/A
div-subN/A
lower-/.f64N/A
Simplified41.7%
Taylor expanded in x around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
+-commutativeN/A
lower-+.f6476.9
Simplified76.9%
Taylor expanded in a around 0
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower--.f64N/A
lower-/.f64N/A
+-commutativeN/A
lower-+.f6480.4
Simplified80.4%
if -inf.0 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 9.99999999999999953e270Initial program 99.6%
if 9.99999999999999953e270 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) Initial program 6.5%
Taylor expanded in b around 0
mul-1-negN/A
+-commutativeN/A
associate-+l+N/A
associate-/l*N/A
sub-negN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-+.f64N/A
+-commutativeN/A
lower-+.f64N/A
div-subN/A
lower-/.f64N/A
Simplified31.3%
Taylor expanded in y around inf
lower--.f6481.5
Simplified81.5%
Final simplification92.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- (+ (* z (+ x y)) (* a (+ y t))) (* y b)) (+ y (+ x t)))))
(if (<= t_1 -4e+108)
(+ z a)
(if (<= t_1 5e+80) (- a (/ (* y b) t)) (+ a (- z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (((z * (x + y)) + (a * (y + t))) - (y * b)) / (y + (x + t));
double tmp;
if (t_1 <= -4e+108) {
tmp = z + a;
} else if (t_1 <= 5e+80) {
tmp = a - ((y * b) / t);
} else {
tmp = a + (z - b);
}
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 * (x + y)) + (a * (y + t))) - (y * b)) / (y + (x + t))
if (t_1 <= (-4d+108)) then
tmp = z + a
else if (t_1 <= 5d+80) then
tmp = a - ((y * b) / t)
else
tmp = a + (z - b)
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 * (x + y)) + (a * (y + t))) - (y * b)) / (y + (x + t));
double tmp;
if (t_1 <= -4e+108) {
tmp = z + a;
} else if (t_1 <= 5e+80) {
tmp = a - ((y * b) / t);
} else {
tmp = a + (z - b);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (((z * (x + y)) + (a * (y + t))) - (y * b)) / (y + (x + t)) tmp = 0 if t_1 <= -4e+108: tmp = z + a elif t_1 <= 5e+80: tmp = a - ((y * b) / t) else: tmp = a + (z - b) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(Float64(z * Float64(x + y)) + Float64(a * Float64(y + t))) - Float64(y * b)) / Float64(y + Float64(x + t))) tmp = 0.0 if (t_1 <= -4e+108) tmp = Float64(z + a); elseif (t_1 <= 5e+80) tmp = Float64(a - Float64(Float64(y * b) / t)); else tmp = Float64(a + Float64(z - b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (((z * (x + y)) + (a * (y + t))) - (y * b)) / (y + (x + t)); tmp = 0.0; if (t_1 <= -4e+108) tmp = z + a; elseif (t_1 <= 5e+80) tmp = a - ((y * b) / t); else tmp = a + (z - b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision] + N[(a * N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -4e+108], N[(z + a), $MachinePrecision], If[LessEqual[t$95$1, 5e+80], N[(a - N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(a + N[(z - b), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\left(z \cdot \left(x + y\right) + a \cdot \left(y + t\right)\right) - y \cdot b}{y + \left(x + t\right)}\\
\mathbf{if}\;t\_1 \leq -4 \cdot 10^{+108}:\\
\;\;\;\;z + a\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+80}:\\
\;\;\;\;a - \frac{y \cdot b}{t}\\
\mathbf{else}:\\
\;\;\;\;a + \left(z - b\right)\\
\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)) < -4.0000000000000001e108Initial program 31.9%
Taylor expanded in y around inf
associate--l+N/A
lower-+.f64N/A
lower--.f6464.3
Simplified64.3%
Taylor expanded in b around 0
+-commutativeN/A
lower-+.f6465.3
Simplified65.3%
if -4.0000000000000001e108 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 4.99999999999999961e80Initial program 99.6%
Taylor expanded in t around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Simplified52.8%
Taylor expanded in b around inf
lower-*.f6443.0
Simplified43.0%
if 4.99999999999999961e80 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) Initial program 36.7%
Taylor expanded in y around inf
associate--l+N/A
lower-+.f64N/A
lower--.f6468.1
Simplified68.1%
Final simplification56.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma y (- (/ a x) (/ b x)) z)))
(if (<= x -2.15e+98)
t_1
(if (<= x 4.2e+148) (fma (- z b) (/ y (+ y t)) a) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(y, ((a / x) - (b / x)), z);
double tmp;
if (x <= -2.15e+98) {
tmp = t_1;
} else if (x <= 4.2e+148) {
tmp = fma((z - b), (y / (y + t)), a);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(y, Float64(Float64(a / x) - Float64(b / x)), z) tmp = 0.0 if (x <= -2.15e+98) tmp = t_1; elseif (x <= 4.2e+148) tmp = fma(Float64(z - b), Float64(y / Float64(y + t)), a); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(N[(a / x), $MachinePrecision] - N[(b / x), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]}, If[LessEqual[x, -2.15e+98], t$95$1, If[LessEqual[x, 4.2e+148], N[(N[(z - b), $MachinePrecision] * N[(y / N[(y + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, \frac{a}{x} - \frac{b}{x}, z\right)\\
\mathbf{if}\;x \leq -2.15 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{+148}:\\
\;\;\;\;\mathsf{fma}\left(z - b, \frac{y}{y + t}, a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.1500000000000001e98 or 4.19999999999999998e148 < x Initial program 56.1%
Taylor expanded in t around 0
lower-/.f64N/A
associate--l+N/A
lower-fma.f64N/A
distribute-rgt-inN/A
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-lft-out--N/A
lower-*.f64N/A
lower--.f64N/A
+-commutativeN/A
lower-+.f6446.1
Simplified46.1%
Taylor expanded in y around 0
+-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower-/.f6472.0
Simplified72.0%
if -2.1500000000000001e98 < x < 4.19999999999999998e148Initial program 65.7%
Taylor expanded in b around 0
mul-1-negN/A
+-commutativeN/A
associate-+l+N/A
associate-/l*N/A
sub-negN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-+.f64N/A
+-commutativeN/A
lower-+.f64N/A
div-subN/A
lower-/.f64N/A
Simplified79.5%
Taylor expanded in x around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
+-commutativeN/A
lower-+.f6481.0
Simplified81.0%
Taylor expanded in a around 0
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower--.f64N/A
lower-/.f64N/A
+-commutativeN/A
lower-+.f6483.6
Simplified83.6%
(FPCore (x y z t a b) :precision binary64 (if (<= x -2.1e+193) z (if (<= x 7e+157) (fma (- z b) (/ y (+ y t)) a) z)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -2.1e+193) {
tmp = z;
} else if (x <= 7e+157) {
tmp = fma((z - b), (y / (y + t)), a);
} else {
tmp = z;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -2.1e+193) tmp = z; elseif (x <= 7e+157) tmp = fma(Float64(z - b), Float64(y / Float64(y + t)), a); else tmp = z; end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -2.1e+193], z, If[LessEqual[x, 7e+157], N[(N[(z - b), $MachinePrecision] * N[(y / N[(y + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision], z]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.1 \cdot 10^{+193}:\\
\;\;\;\;z\\
\mathbf{elif}\;x \leq 7 \cdot 10^{+157}:\\
\;\;\;\;\mathsf{fma}\left(z - b, \frac{y}{y + t}, a\right)\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if x < -2.1e193 or 7.00000000000000004e157 < x Initial program 55.6%
Taylor expanded in z around -inf
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
Simplified73.7%
Taylor expanded in x around inf
mul-1-negN/A
lower-neg.f6454.0
Simplified54.0%
if -2.1e193 < x < 7.00000000000000004e157Initial program 65.1%
Taylor expanded in b around 0
mul-1-negN/A
+-commutativeN/A
associate-+l+N/A
associate-/l*N/A
sub-negN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-+.f64N/A
+-commutativeN/A
lower-+.f64N/A
div-subN/A
lower-/.f64N/A
Simplified78.3%
Taylor expanded in x around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
+-commutativeN/A
lower-+.f6478.1
Simplified78.1%
Taylor expanded in a around 0
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower--.f64N/A
lower-/.f64N/A
+-commutativeN/A
lower-+.f6480.4
Simplified80.4%
Final simplification74.2%
(FPCore (x y z t a b) :precision binary64 (if (<= x -2.1e+193) z (if (<= x 6.8e+157) (fma y (/ (- z b) (+ y t)) a) z)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -2.1e+193) {
tmp = z;
} else if (x <= 6.8e+157) {
tmp = fma(y, ((z - b) / (y + t)), a);
} else {
tmp = z;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -2.1e+193) tmp = z; elseif (x <= 6.8e+157) tmp = fma(y, Float64(Float64(z - b) / Float64(y + t)), a); else tmp = z; end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -2.1e+193], z, If[LessEqual[x, 6.8e+157], N[(y * N[(N[(z - b), $MachinePrecision] / N[(y + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision], z]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.1 \cdot 10^{+193}:\\
\;\;\;\;z\\
\mathbf{elif}\;x \leq 6.8 \cdot 10^{+157}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{z - b}{y + t}, a\right)\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if x < -2.1e193 or 6.79999999999999958e157 < x Initial program 55.6%
Taylor expanded in z around -inf
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
Simplified73.7%
Taylor expanded in x around inf
mul-1-negN/A
lower-neg.f6454.0
Simplified54.0%
if -2.1e193 < x < 6.79999999999999958e157Initial program 65.1%
Taylor expanded in b around 0
mul-1-negN/A
+-commutativeN/A
associate-+l+N/A
associate-/l*N/A
sub-negN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-+.f64N/A
+-commutativeN/A
lower-+.f64N/A
div-subN/A
lower-/.f64N/A
Simplified78.3%
Taylor expanded in x around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
+-commutativeN/A
lower-+.f6478.1
Simplified78.1%
Final simplification72.4%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (fma y (/ (- z b) t) a))) (if (<= t -2.5e+115) t_1 (if (<= t 6.5e+99) (+ a (- z b)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(y, ((z - b) / t), a);
double tmp;
if (t <= -2.5e+115) {
tmp = t_1;
} else if (t <= 6.5e+99) {
tmp = a + (z - b);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(y, Float64(Float64(z - b) / t), a) tmp = 0.0 if (t <= -2.5e+115) tmp = t_1; elseif (t <= 6.5e+99) tmp = Float64(a + Float64(z - b)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(N[(z - b), $MachinePrecision] / t), $MachinePrecision] + a), $MachinePrecision]}, If[LessEqual[t, -2.5e+115], t$95$1, If[LessEqual[t, 6.5e+99], N[(a + N[(z - b), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, \frac{z - b}{t}, a\right)\\
\mathbf{if}\;t \leq -2.5 \cdot 10^{+115}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{+99}:\\
\;\;\;\;a + \left(z - b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.50000000000000004e115 or 6.5000000000000004e99 < t Initial program 56.1%
Taylor expanded in b around 0
mul-1-negN/A
+-commutativeN/A
associate-+l+N/A
associate-/l*N/A
sub-negN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-+.f64N/A
+-commutativeN/A
lower-+.f64N/A
div-subN/A
lower-/.f64N/A
Simplified81.7%
Taylor expanded in x around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
+-commutativeN/A
lower-+.f6481.4
Simplified81.4%
Taylor expanded in y around 0
div-subN/A
associate-/l*N/A
+-commutativeN/A
associate-/l*N/A
div-subN/A
lower-fma.f64N/A
div-subN/A
lower-/.f64N/A
lower--.f6473.5
Simplified73.5%
if -2.50000000000000004e115 < t < 6.5000000000000004e99Initial program 66.4%
Taylor expanded in y around inf
associate--l+N/A
lower-+.f64N/A
lower--.f6451.3
Simplified51.3%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (+ a (- z b)))) (if (<= y -3.1e+165) t_1 (if (<= y 4.1e+14) (+ z a) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a + (z - b);
double tmp;
if (y <= -3.1e+165) {
tmp = t_1;
} else if (y <= 4.1e+14) {
tmp = z + a;
} 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 + (z - b)
if (y <= (-3.1d+165)) then
tmp = t_1
else if (y <= 4.1d+14) then
tmp = z + a
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 + (z - b);
double tmp;
if (y <= -3.1e+165) {
tmp = t_1;
} else if (y <= 4.1e+14) {
tmp = z + a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a + (z - b) tmp = 0 if y <= -3.1e+165: tmp = t_1 elif y <= 4.1e+14: tmp = z + a else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a + Float64(z - b)) tmp = 0.0 if (y <= -3.1e+165) tmp = t_1; elseif (y <= 4.1e+14) tmp = Float64(z + a); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a + (z - b); tmp = 0.0; if (y <= -3.1e+165) tmp = t_1; elseif (y <= 4.1e+14) tmp = z + a; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a + N[(z - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.1e+165], t$95$1, If[LessEqual[y, 4.1e+14], N[(z + a), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(z - b\right)\\
\mathbf{if}\;y \leq -3.1 \cdot 10^{+165}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.1 \cdot 10^{+14}:\\
\;\;\;\;z + a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.1000000000000002e165 or 4.1e14 < y Initial program 33.2%
Taylor expanded in y around inf
associate--l+N/A
lower-+.f64N/A
lower--.f6482.0
Simplified82.0%
if -3.1000000000000002e165 < y < 4.1e14Initial program 76.5%
Taylor expanded in y around inf
associate--l+N/A
lower-+.f64N/A
lower--.f6430.4
Simplified30.4%
Taylor expanded in b around 0
+-commutativeN/A
lower-+.f6443.2
Simplified43.2%
(FPCore (x y z t a b) :precision binary64 (if (<= y -1.5e+204) (- z b) (if (<= y 1.85e+84) (+ z a) (- z b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.5e+204) {
tmp = z - b;
} else if (y <= 1.85e+84) {
tmp = z + a;
} else {
tmp = z - b;
}
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 (y <= (-1.5d+204)) then
tmp = z - b
else if (y <= 1.85d+84) then
tmp = z + a
else
tmp = z - b
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 (y <= -1.5e+204) {
tmp = z - b;
} else if (y <= 1.85e+84) {
tmp = z + a;
} else {
tmp = z - b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.5e+204: tmp = z - b elif y <= 1.85e+84: tmp = z + a else: tmp = z - b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.5e+204) tmp = Float64(z - b); elseif (y <= 1.85e+84) tmp = Float64(z + a); else tmp = Float64(z - b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.5e+204) tmp = z - b; elseif (y <= 1.85e+84) tmp = z + a; else tmp = z - b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.5e+204], N[(z - b), $MachinePrecision], If[LessEqual[y, 1.85e+84], N[(z + a), $MachinePrecision], N[(z - b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.5 \cdot 10^{+204}:\\
\;\;\;\;z - b\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{+84}:\\
\;\;\;\;z + a\\
\mathbf{else}:\\
\;\;\;\;z - b\\
\end{array}
\end{array}
if y < -1.49999999999999991e204 or 1.85e84 < y Initial program 22.5%
Taylor expanded in y around inf
associate--l+N/A
lower-+.f64N/A
lower--.f6484.0
Simplified84.0%
Taylor expanded in a around 0
lower--.f6473.1
Simplified73.1%
if -1.49999999999999991e204 < y < 1.85e84Initial program 73.6%
Taylor expanded in y around inf
associate--l+N/A
lower-+.f64N/A
lower--.f6436.7
Simplified36.7%
Taylor expanded in b around 0
+-commutativeN/A
lower-+.f6445.8
Simplified45.8%
(FPCore (x y z t a b) :precision binary64 (if (<= y 4.9e+193) (+ z a) (- a b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 4.9e+193) {
tmp = z + a;
} else {
tmp = a - b;
}
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 (y <= 4.9d+193) then
tmp = z + a
else
tmp = a - b
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 (y <= 4.9e+193) {
tmp = z + a;
} else {
tmp = a - b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 4.9e+193: tmp = z + a else: tmp = a - b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 4.9e+193) tmp = Float64(z + a); else tmp = Float64(a - b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= 4.9e+193) tmp = z + a; else tmp = a - b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 4.9e+193], N[(z + a), $MachinePrecision], N[(a - b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 4.9 \cdot 10^{+193}:\\
\;\;\;\;z + a\\
\mathbf{else}:\\
\;\;\;\;a - b\\
\end{array}
\end{array}
if y < 4.9000000000000003e193Initial program 66.7%
Taylor expanded in y around inf
associate--l+N/A
lower-+.f64N/A
lower--.f6443.9
Simplified43.9%
Taylor expanded in b around 0
+-commutativeN/A
lower-+.f6446.8
Simplified46.8%
if 4.9000000000000003e193 < y Initial program 14.8%
Taylor expanded in y around inf
associate--l+N/A
lower-+.f64N/A
lower--.f6481.0
Simplified81.0%
Taylor expanded in z around 0
lower--.f6460.5
Simplified60.5%
(FPCore (x y z t a b) :precision binary64 (+ z a))
double code(double x, double y, double z, double t, double a, double b) {
return z + 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 = z + a
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return z + a;
}
def code(x, y, z, t, a, b): return z + a
function code(x, y, z, t, a, b) return Float64(z + a) end
function tmp = code(x, y, z, t, a, b) tmp = z + a; end
code[x_, y_, z_, t_, a_, b_] := N[(z + a), $MachinePrecision]
\begin{array}{l}
\\
z + a
\end{array}
Initial program 62.8%
Taylor expanded in y around inf
associate--l+N/A
lower-+.f64N/A
lower--.f6446.7
Simplified46.7%
Taylor expanded in b around 0
+-commutativeN/A
lower-+.f6446.0
Simplified46.0%
(FPCore (x y z t a b) :precision binary64 (- b))
double code(double x, double y, double z, double t, double a, double b) {
return -b;
}
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 = -b
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return -b;
}
def code(x, y, z, t, a, b): return -b
function code(x, y, z, t, a, b) return Float64(-b) end
function tmp = code(x, y, z, t, a, b) tmp = -b; end
code[x_, y_, z_, t_, a_, b_] := (-b)
\begin{array}{l}
\\
-b
\end{array}
Initial program 62.8%
Taylor expanded in y around inf
associate--l+N/A
lower-+.f64N/A
lower--.f6446.7
Simplified46.7%
Taylor expanded in b around inf
mul-1-negN/A
lower-neg.f6413.0
Simplified13.0%
(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 2024215
(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)))