
(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 15 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 (+ x t)))
(t_2 (/ (- (+ (* (+ y t) a) (* z (+ x y))) (* y b)) t_1))
(t_3 (- (+ z a) b)))
(if (or (<= t_2 -2e+238) (not (<= t_2 5e+242)))
t_3
(/ (+ (* t a) (+ (* x z) (* y t_3))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (x + t);
double t_2 = ((((y + t) * a) + (z * (x + y))) - (y * b)) / t_1;
double t_3 = (z + a) - b;
double tmp;
if ((t_2 <= -2e+238) || !(t_2 <= 5e+242)) {
tmp = t_3;
} else {
tmp = ((t * a) + ((x * z) + (y * t_3))) / 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) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = y + (x + t)
t_2 = ((((y + t) * a) + (z * (x + y))) - (y * b)) / t_1
t_3 = (z + a) - b
if ((t_2 <= (-2d+238)) .or. (.not. (t_2 <= 5d+242))) then
tmp = t_3
else
tmp = ((t * a) + ((x * z) + (y * t_3))) / 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 = y + (x + t);
double t_2 = ((((y + t) * a) + (z * (x + y))) - (y * b)) / t_1;
double t_3 = (z + a) - b;
double tmp;
if ((t_2 <= -2e+238) || !(t_2 <= 5e+242)) {
tmp = t_3;
} else {
tmp = ((t * a) + ((x * z) + (y * t_3))) / t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y + (x + t) t_2 = ((((y + t) * a) + (z * (x + y))) - (y * b)) / t_1 t_3 = (z + a) - b tmp = 0 if (t_2 <= -2e+238) or not (t_2 <= 5e+242): tmp = t_3 else: tmp = ((t * a) + ((x * z) + (y * t_3))) / t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y + Float64(x + t)) t_2 = Float64(Float64(Float64(Float64(Float64(y + t) * a) + Float64(z * Float64(x + y))) - Float64(y * b)) / t_1) t_3 = Float64(Float64(z + a) - b) tmp = 0.0 if ((t_2 <= -2e+238) || !(t_2 <= 5e+242)) tmp = t_3; else tmp = Float64(Float64(Float64(t * a) + Float64(Float64(x * z) + Float64(y * t_3))) / t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y + (x + t); t_2 = ((((y + t) * a) + (z * (x + y))) - (y * b)) / t_1; t_3 = (z + a) - b; tmp = 0.0; if ((t_2 <= -2e+238) || ~((t_2 <= 5e+242))) tmp = t_3; else tmp = ((t * a) + ((x * z) + (y * t_3))) / t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(y + t), $MachinePrecision] * a), $MachinePrecision] + N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]}, If[Or[LessEqual[t$95$2, -2e+238], N[Not[LessEqual[t$95$2, 5e+242]], $MachinePrecision]], t$95$3, N[(N[(N[(t * a), $MachinePrecision] + N[(N[(x * z), $MachinePrecision] + N[(y * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + \left(x + t\right)\\
t_2 := \frac{\left(\left(y + t\right) \cdot a + z \cdot \left(x + y\right)\right) - y \cdot b}{t_1}\\
t_3 := \left(z + a\right) - b\\
\mathbf{if}\;t_2 \leq -2 \cdot 10^{+238} \lor \neg \left(t_2 \leq 5 \cdot 10^{+242}\right):\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;\frac{t \cdot a + \left(x \cdot z + y \cdot t_3\right)}{t_1}\\
\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)) < -2.0000000000000001e238 or 5.0000000000000004e242 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) Initial program 9.7%
Taylor expanded in y around inf 81.6%
if -2.0000000000000001e238 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 5.0000000000000004e242Initial program 99.7%
Taylor expanded in y around 0 99.7%
Final simplification93.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ y (+ x t)))
(t_2 (+ a (* (- (* z (+ x y)) (* y b)) (/ 1.0 t_1))))
(t_3 (- (+ z a) b))
(t_4 (/ a (/ t_1 (+ y t)))))
(if (<= y -6.2e+45)
t_3
(if (<= y -5.5e-203)
(/ (- (* (+ y t) a) (* y b)) t_1)
(if (<= y 9.5e-73)
(+ t_4 (/ (* x z) (+ x t)))
(if (<= y 4e+23)
t_2
(if (<= y 4.9e+73) (+ z t_4) (if (<= y 2.85e+124) t_2 t_3))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (x + t);
double t_2 = a + (((z * (x + y)) - (y * b)) * (1.0 / t_1));
double t_3 = (z + a) - b;
double t_4 = a / (t_1 / (y + t));
double tmp;
if (y <= -6.2e+45) {
tmp = t_3;
} else if (y <= -5.5e-203) {
tmp = (((y + t) * a) - (y * b)) / t_1;
} else if (y <= 9.5e-73) {
tmp = t_4 + ((x * z) / (x + t));
} else if (y <= 4e+23) {
tmp = t_2;
} else if (y <= 4.9e+73) {
tmp = z + t_4;
} else if (y <= 2.85e+124) {
tmp = t_2;
} else {
tmp = t_3;
}
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 = y + (x + t)
t_2 = a + (((z * (x + y)) - (y * b)) * (1.0d0 / t_1))
t_3 = (z + a) - b
t_4 = a / (t_1 / (y + t))
if (y <= (-6.2d+45)) then
tmp = t_3
else if (y <= (-5.5d-203)) then
tmp = (((y + t) * a) - (y * b)) / t_1
else if (y <= 9.5d-73) then
tmp = t_4 + ((x * z) / (x + t))
else if (y <= 4d+23) then
tmp = t_2
else if (y <= 4.9d+73) then
tmp = z + t_4
else if (y <= 2.85d+124) then
tmp = t_2
else
tmp = t_3
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 + (x + t);
double t_2 = a + (((z * (x + y)) - (y * b)) * (1.0 / t_1));
double t_3 = (z + a) - b;
double t_4 = a / (t_1 / (y + t));
double tmp;
if (y <= -6.2e+45) {
tmp = t_3;
} else if (y <= -5.5e-203) {
tmp = (((y + t) * a) - (y * b)) / t_1;
} else if (y <= 9.5e-73) {
tmp = t_4 + ((x * z) / (x + t));
} else if (y <= 4e+23) {
tmp = t_2;
} else if (y <= 4.9e+73) {
tmp = z + t_4;
} else if (y <= 2.85e+124) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y + (x + t) t_2 = a + (((z * (x + y)) - (y * b)) * (1.0 / t_1)) t_3 = (z + a) - b t_4 = a / (t_1 / (y + t)) tmp = 0 if y <= -6.2e+45: tmp = t_3 elif y <= -5.5e-203: tmp = (((y + t) * a) - (y * b)) / t_1 elif y <= 9.5e-73: tmp = t_4 + ((x * z) / (x + t)) elif y <= 4e+23: tmp = t_2 elif y <= 4.9e+73: tmp = z + t_4 elif y <= 2.85e+124: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y + Float64(x + t)) t_2 = Float64(a + Float64(Float64(Float64(z * Float64(x + y)) - Float64(y * b)) * Float64(1.0 / t_1))) t_3 = Float64(Float64(z + a) - b) t_4 = Float64(a / Float64(t_1 / Float64(y + t))) tmp = 0.0 if (y <= -6.2e+45) tmp = t_3; elseif (y <= -5.5e-203) tmp = Float64(Float64(Float64(Float64(y + t) * a) - Float64(y * b)) / t_1); elseif (y <= 9.5e-73) tmp = Float64(t_4 + Float64(Float64(x * z) / Float64(x + t))); elseif (y <= 4e+23) tmp = t_2; elseif (y <= 4.9e+73) tmp = Float64(z + t_4); elseif (y <= 2.85e+124) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y + (x + t); t_2 = a + (((z * (x + y)) - (y * b)) * (1.0 / t_1)); t_3 = (z + a) - b; t_4 = a / (t_1 / (y + t)); tmp = 0.0; if (y <= -6.2e+45) tmp = t_3; elseif (y <= -5.5e-203) tmp = (((y + t) * a) - (y * b)) / t_1; elseif (y <= 9.5e-73) tmp = t_4 + ((x * z) / (x + t)); elseif (y <= 4e+23) tmp = t_2; elseif (y <= 4.9e+73) tmp = z + t_4; elseif (y <= 2.85e+124) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a + N[(N[(N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] * N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]}, Block[{t$95$4 = N[(a / N[(t$95$1 / N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.2e+45], t$95$3, If[LessEqual[y, -5.5e-203], N[(N[(N[(N[(y + t), $MachinePrecision] * a), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[y, 9.5e-73], N[(t$95$4 + N[(N[(x * z), $MachinePrecision] / N[(x + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4e+23], t$95$2, If[LessEqual[y, 4.9e+73], N[(z + t$95$4), $MachinePrecision], If[LessEqual[y, 2.85e+124], t$95$2, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + \left(x + t\right)\\
t_2 := a + \left(z \cdot \left(x + y\right) - y \cdot b\right) \cdot \frac{1}{t_1}\\
t_3 := \left(z + a\right) - b\\
t_4 := \frac{a}{\frac{t_1}{y + t}}\\
\mathbf{if}\;y \leq -6.2 \cdot 10^{+45}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -5.5 \cdot 10^{-203}:\\
\;\;\;\;\frac{\left(y + t\right) \cdot a - y \cdot b}{t_1}\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-73}:\\
\;\;\;\;t_4 + \frac{x \cdot z}{x + t}\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+23}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 4.9 \cdot 10^{+73}:\\
\;\;\;\;z + t_4\\
\mathbf{elif}\;y \leq 2.85 \cdot 10^{+124}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -6.19999999999999975e45 or 2.85000000000000011e124 < y Initial program 35.8%
Taylor expanded in y around inf 80.9%
if -6.19999999999999975e45 < y < -5.5000000000000002e-203Initial program 90.5%
Taylor expanded in z around 0 76.2%
*-commutative76.2%
Simplified76.2%
if -5.5000000000000002e-203 < y < 9.50000000000000005e-73Initial program 86.1%
Taylor expanded in z around inf 86.2%
associate--l+86.2%
associate-/l*93.0%
associate-+r+93.0%
div-sub93.0%
+-commutative93.0%
*-commutative93.0%
associate-+r+93.0%
Simplified93.0%
Taylor expanded in y around 0 85.7%
if 9.50000000000000005e-73 < y < 3.9999999999999997e23 or 4.8999999999999999e73 < y < 2.85000000000000011e124Initial program 87.0%
Taylor expanded in z around inf 87.0%
associate--l+87.0%
associate-/l*94.6%
associate-+r+94.6%
div-sub94.7%
+-commutative94.7%
*-commutative94.7%
associate-+r+94.7%
Simplified94.7%
div-inv94.5%
+-commutative94.5%
+-commutative94.5%
Applied egg-rr94.5%
Taylor expanded in t around inf 85.9%
if 3.9999999999999997e23 < y < 4.8999999999999999e73Initial program 68.9%
Taylor expanded in z around inf 68.9%
associate--l+68.9%
associate-/l*79.3%
associate-+r+79.3%
div-sub79.3%
+-commutative79.3%
*-commutative79.3%
associate-+r+79.3%
Simplified79.3%
Taylor expanded in x around inf 89.1%
Final simplification82.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ y (+ x t))) (t_2 (+ z (/ a (/ t_1 (+ y t))))))
(if (<= x -8e+175)
t_2
(if (<= x -1.38e+73)
(+ a (/ z (/ t_1 (+ x y))))
(if (<= x -6.2e+62)
(/ (- (* (+ y t) a) (* y b)) t_1)
(if (<= x 4.1e+40)
(+ a (* (- (* z (+ x y)) (* y b)) (/ 1.0 t_1)))
t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (x + t);
double t_2 = z + (a / (t_1 / (y + t)));
double tmp;
if (x <= -8e+175) {
tmp = t_2;
} else if (x <= -1.38e+73) {
tmp = a + (z / (t_1 / (x + y)));
} else if (x <= -6.2e+62) {
tmp = (((y + t) * a) - (y * b)) / t_1;
} else if (x <= 4.1e+40) {
tmp = a + (((z * (x + y)) - (y * b)) * (1.0 / 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 + (x + t)
t_2 = z + (a / (t_1 / (y + t)))
if (x <= (-8d+175)) then
tmp = t_2
else if (x <= (-1.38d+73)) then
tmp = a + (z / (t_1 / (x + y)))
else if (x <= (-6.2d+62)) then
tmp = (((y + t) * a) - (y * b)) / t_1
else if (x <= 4.1d+40) then
tmp = a + (((z * (x + y)) - (y * b)) * (1.0d0 / 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 + (x + t);
double t_2 = z + (a / (t_1 / (y + t)));
double tmp;
if (x <= -8e+175) {
tmp = t_2;
} else if (x <= -1.38e+73) {
tmp = a + (z / (t_1 / (x + y)));
} else if (x <= -6.2e+62) {
tmp = (((y + t) * a) - (y * b)) / t_1;
} else if (x <= 4.1e+40) {
tmp = a + (((z * (x + y)) - (y * b)) * (1.0 / t_1));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y + (x + t) t_2 = z + (a / (t_1 / (y + t))) tmp = 0 if x <= -8e+175: tmp = t_2 elif x <= -1.38e+73: tmp = a + (z / (t_1 / (x + y))) elif x <= -6.2e+62: tmp = (((y + t) * a) - (y * b)) / t_1 elif x <= 4.1e+40: tmp = a + (((z * (x + y)) - (y * b)) * (1.0 / t_1)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y + Float64(x + t)) t_2 = Float64(z + Float64(a / Float64(t_1 / Float64(y + t)))) tmp = 0.0 if (x <= -8e+175) tmp = t_2; elseif (x <= -1.38e+73) tmp = Float64(a + Float64(z / Float64(t_1 / Float64(x + y)))); elseif (x <= -6.2e+62) tmp = Float64(Float64(Float64(Float64(y + t) * a) - Float64(y * b)) / t_1); elseif (x <= 4.1e+40) tmp = Float64(a + Float64(Float64(Float64(z * Float64(x + y)) - Float64(y * b)) * Float64(1.0 / t_1))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y + (x + t); t_2 = z + (a / (t_1 / (y + t))); tmp = 0.0; if (x <= -8e+175) tmp = t_2; elseif (x <= -1.38e+73) tmp = a + (z / (t_1 / (x + y))); elseif (x <= -6.2e+62) tmp = (((y + t) * a) - (y * b)) / t_1; elseif (x <= 4.1e+40) tmp = a + (((z * (x + y)) - (y * b)) * (1.0 / t_1)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z + N[(a / N[(t$95$1 / N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -8e+175], t$95$2, If[LessEqual[x, -1.38e+73], N[(a + N[(z / N[(t$95$1 / N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6.2e+62], N[(N[(N[(N[(y + t), $MachinePrecision] * a), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[x, 4.1e+40], N[(a + N[(N[(N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] * N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + \left(x + t\right)\\
t_2 := z + \frac{a}{\frac{t_1}{y + t}}\\
\mathbf{if}\;x \leq -8 \cdot 10^{+175}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.38 \cdot 10^{+73}:\\
\;\;\;\;a + \frac{z}{\frac{t_1}{x + y}}\\
\mathbf{elif}\;x \leq -6.2 \cdot 10^{+62}:\\
\;\;\;\;\frac{\left(y + t\right) \cdot a - y \cdot b}{t_1}\\
\mathbf{elif}\;x \leq 4.1 \cdot 10^{+40}:\\
\;\;\;\;a + \left(z \cdot \left(x + y\right) - y \cdot b\right) \cdot \frac{1}{t_1}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -7.9999999999999995e175 or 4.1000000000000002e40 < x Initial program 57.8%
Taylor expanded in z around inf 57.8%
associate--l+57.8%
associate-/l*61.6%
associate-+r+61.6%
div-sub61.6%
+-commutative61.6%
*-commutative61.6%
associate-+r+61.6%
Simplified61.6%
Taylor expanded in x around inf 80.3%
if -7.9999999999999995e175 < x < -1.38000000000000007e73Initial program 52.5%
Taylor expanded in z around inf 52.5%
associate--l+52.5%
associate-/l*62.9%
associate-+r+62.9%
div-sub62.9%
+-commutative62.9%
*-commutative62.9%
associate-+r+62.9%
Simplified62.9%
div-inv62.9%
+-commutative62.9%
+-commutative62.9%
Applied egg-rr62.9%
Taylor expanded in z around inf 54.2%
associate-/l*85.7%
+-commutative85.7%
+-commutative85.7%
associate-+l+85.7%
+-commutative85.7%
+-commutative85.7%
Simplified85.7%
Taylor expanded in t around inf 80.2%
if -1.38000000000000007e73 < x < -6.20000000000000029e62Initial program 99.2%
Taylor expanded in z around 0 99.2%
*-commutative99.2%
Simplified99.2%
if -6.20000000000000029e62 < x < 4.1000000000000002e40Initial program 75.4%
Taylor expanded in z around inf 75.4%
associate--l+75.4%
associate-/l*83.9%
associate-+r+83.9%
div-sub83.9%
+-commutative83.9%
*-commutative83.9%
associate-+r+83.9%
Simplified83.9%
div-inv83.8%
+-commutative83.8%
+-commutative83.8%
Applied egg-rr83.8%
Taylor expanded in t around inf 78.0%
Final simplification79.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- (+ a (/ y (/ t z))) (/ b (/ t y)))) (t_2 (+ y (+ x t))))
(if (<= t -7e+77)
t_1
(if (<= t 7e-44)
(+ z (/ a (/ t_2 (+ y t))))
(if (<= t 4.35e+15)
(/ (+ (* z (+ x y)) (* y (- a b))) (+ x y))
(if (<= t 1.3e+97)
(- (+ z a) b)
(if (<= t 4e+146) t_1 (+ a (/ z (/ t_2 (+ x y)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a + (y / (t / z))) - (b / (t / y));
double t_2 = y + (x + t);
double tmp;
if (t <= -7e+77) {
tmp = t_1;
} else if (t <= 7e-44) {
tmp = z + (a / (t_2 / (y + t)));
} else if (t <= 4.35e+15) {
tmp = ((z * (x + y)) + (y * (a - b))) / (x + y);
} else if (t <= 1.3e+97) {
tmp = (z + a) - b;
} else if (t <= 4e+146) {
tmp = t_1;
} else {
tmp = a + (z / (t_2 / (x + y)));
}
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 = (a + (y / (t / z))) - (b / (t / y))
t_2 = y + (x + t)
if (t <= (-7d+77)) then
tmp = t_1
else if (t <= 7d-44) then
tmp = z + (a / (t_2 / (y + t)))
else if (t <= 4.35d+15) then
tmp = ((z * (x + y)) + (y * (a - b))) / (x + y)
else if (t <= 1.3d+97) then
tmp = (z + a) - b
else if (t <= 4d+146) then
tmp = t_1
else
tmp = a + (z / (t_2 / (x + y)))
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 / z))) - (b / (t / y));
double t_2 = y + (x + t);
double tmp;
if (t <= -7e+77) {
tmp = t_1;
} else if (t <= 7e-44) {
tmp = z + (a / (t_2 / (y + t)));
} else if (t <= 4.35e+15) {
tmp = ((z * (x + y)) + (y * (a - b))) / (x + y);
} else if (t <= 1.3e+97) {
tmp = (z + a) - b;
} else if (t <= 4e+146) {
tmp = t_1;
} else {
tmp = a + (z / (t_2 / (x + y)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a + (y / (t / z))) - (b / (t / y)) t_2 = y + (x + t) tmp = 0 if t <= -7e+77: tmp = t_1 elif t <= 7e-44: tmp = z + (a / (t_2 / (y + t))) elif t <= 4.35e+15: tmp = ((z * (x + y)) + (y * (a - b))) / (x + y) elif t <= 1.3e+97: tmp = (z + a) - b elif t <= 4e+146: tmp = t_1 else: tmp = a + (z / (t_2 / (x + y))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a + Float64(y / Float64(t / z))) - Float64(b / Float64(t / y))) t_2 = Float64(y + Float64(x + t)) tmp = 0.0 if (t <= -7e+77) tmp = t_1; elseif (t <= 7e-44) tmp = Float64(z + Float64(a / Float64(t_2 / Float64(y + t)))); elseif (t <= 4.35e+15) tmp = Float64(Float64(Float64(z * Float64(x + y)) + Float64(y * Float64(a - b))) / Float64(x + y)); elseif (t <= 1.3e+97) tmp = Float64(Float64(z + a) - b); elseif (t <= 4e+146) tmp = t_1; else tmp = Float64(a + Float64(z / Float64(t_2 / Float64(x + y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a + (y / (t / z))) - (b / (t / y)); t_2 = y + (x + t); tmp = 0.0; if (t <= -7e+77) tmp = t_1; elseif (t <= 7e-44) tmp = z + (a / (t_2 / (y + t))); elseif (t <= 4.35e+15) tmp = ((z * (x + y)) + (y * (a - b))) / (x + y); elseif (t <= 1.3e+97) tmp = (z + a) - b; elseif (t <= 4e+146) tmp = t_1; else tmp = a + (z / (t_2 / (x + y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7e+77], t$95$1, If[LessEqual[t, 7e-44], N[(z + N[(a / N[(t$95$2 / N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.35e+15], N[(N[(N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision] + N[(y * N[(a - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.3e+97], N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision], If[LessEqual[t, 4e+146], t$95$1, N[(a + N[(z / N[(t$95$2 / N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a + \frac{y}{\frac{t}{z}}\right) - \frac{b}{\frac{t}{y}}\\
t_2 := y + \left(x + t\right)\\
\mathbf{if}\;t \leq -7 \cdot 10^{+77}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-44}:\\
\;\;\;\;z + \frac{a}{\frac{t_2}{y + t}}\\
\mathbf{elif}\;t \leq 4.35 \cdot 10^{+15}:\\
\;\;\;\;\frac{z \cdot \left(x + y\right) + y \cdot \left(a - b\right)}{x + y}\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+97}:\\
\;\;\;\;\left(z + a\right) - b\\
\mathbf{elif}\;t \leq 4 \cdot 10^{+146}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a + \frac{z}{\frac{t_2}{x + y}}\\
\end{array}
\end{array}
if t < -7.0000000000000003e77 or 1.3e97 < t < 3.99999999999999973e146Initial program 71.8%
Taylor expanded in t around inf 69.7%
+-commutative69.7%
associate-+l+69.7%
associate-/l*69.8%
associate-/l*70.0%
+-commutative70.0%
associate-/l*75.1%
+-commutative75.1%
associate-/l*82.3%
Simplified82.3%
Taylor expanded in x around 0 70.1%
associate-/l*72.4%
associate-/l*80.5%
Simplified80.5%
if -7.0000000000000003e77 < t < 6.9999999999999995e-44Initial program 67.6%
Taylor expanded in z around inf 67.6%
associate--l+67.6%
associate-/l*69.9%
associate-+r+69.9%
div-sub69.9%
+-commutative69.9%
*-commutative69.9%
associate-+r+69.9%
Simplified69.9%
Taylor expanded in x around inf 74.0%
if 6.9999999999999995e-44 < t < 4.35e15Initial program 94.3%
Taylor expanded in t around 0 81.4%
sub-neg81.4%
mul-1-neg81.4%
+-commutative81.4%
associate-+r+81.4%
+-commutative81.4%
associate-*r*81.4%
distribute-rgt-in81.4%
mul-1-neg81.4%
+-commutative81.4%
+-commutative81.4%
Simplified81.4%
if 4.35e15 < t < 1.3e97Initial program 40.1%
Taylor expanded in y around inf 71.4%
if 3.99999999999999973e146 < t Initial program 64.3%
Taylor expanded in z around inf 64.3%
associate--l+64.3%
associate-/l*78.3%
associate-+r+78.3%
div-sub78.4%
+-commutative78.4%
*-commutative78.4%
associate-+r+78.4%
Simplified78.4%
div-inv78.3%
+-commutative78.3%
+-commutative78.3%
Applied egg-rr78.3%
Taylor expanded in z around inf 69.2%
associate-/l*83.3%
+-commutative83.3%
+-commutative83.3%
associate-+l+83.3%
+-commutative83.3%
+-commutative83.3%
Simplified83.3%
Taylor expanded in t around inf 79.9%
Final simplification76.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ y (+ x t)))
(t_2 (+ z (/ a (/ t_1 (+ y t)))))
(t_3 (+ a (/ z (/ t_1 (+ x y))))))
(if (<= t -2.6e+24)
t_3
(if (<= t 6.5e-41)
t_2
(if (<= t 5400000.0)
(/ (- b) (/ t_1 y))
(if (<= t 1.45e+98) t_2 t_3))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (x + t);
double t_2 = z + (a / (t_1 / (y + t)));
double t_3 = a + (z / (t_1 / (x + y)));
double tmp;
if (t <= -2.6e+24) {
tmp = t_3;
} else if (t <= 6.5e-41) {
tmp = t_2;
} else if (t <= 5400000.0) {
tmp = -b / (t_1 / y);
} else if (t <= 1.45e+98) {
tmp = t_2;
} else {
tmp = t_3;
}
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) :: tmp
t_1 = y + (x + t)
t_2 = z + (a / (t_1 / (y + t)))
t_3 = a + (z / (t_1 / (x + y)))
if (t <= (-2.6d+24)) then
tmp = t_3
else if (t <= 6.5d-41) then
tmp = t_2
else if (t <= 5400000.0d0) then
tmp = -b / (t_1 / y)
else if (t <= 1.45d+98) then
tmp = t_2
else
tmp = t_3
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 + (x + t);
double t_2 = z + (a / (t_1 / (y + t)));
double t_3 = a + (z / (t_1 / (x + y)));
double tmp;
if (t <= -2.6e+24) {
tmp = t_3;
} else if (t <= 6.5e-41) {
tmp = t_2;
} else if (t <= 5400000.0) {
tmp = -b / (t_1 / y);
} else if (t <= 1.45e+98) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y + (x + t) t_2 = z + (a / (t_1 / (y + t))) t_3 = a + (z / (t_1 / (x + y))) tmp = 0 if t <= -2.6e+24: tmp = t_3 elif t <= 6.5e-41: tmp = t_2 elif t <= 5400000.0: tmp = -b / (t_1 / y) elif t <= 1.45e+98: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y + Float64(x + t)) t_2 = Float64(z + Float64(a / Float64(t_1 / Float64(y + t)))) t_3 = Float64(a + Float64(z / Float64(t_1 / Float64(x + y)))) tmp = 0.0 if (t <= -2.6e+24) tmp = t_3; elseif (t <= 6.5e-41) tmp = t_2; elseif (t <= 5400000.0) tmp = Float64(Float64(-b) / Float64(t_1 / y)); elseif (t <= 1.45e+98) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y + (x + t); t_2 = z + (a / (t_1 / (y + t))); t_3 = a + (z / (t_1 / (x + y))); tmp = 0.0; if (t <= -2.6e+24) tmp = t_3; elseif (t <= 6.5e-41) tmp = t_2; elseif (t <= 5400000.0) tmp = -b / (t_1 / y); elseif (t <= 1.45e+98) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z + N[(a / N[(t$95$1 / N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a + N[(z / N[(t$95$1 / N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.6e+24], t$95$3, If[LessEqual[t, 6.5e-41], t$95$2, If[LessEqual[t, 5400000.0], N[((-b) / N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.45e+98], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + \left(x + t\right)\\
t_2 := z + \frac{a}{\frac{t_1}{y + t}}\\
t_3 := a + \frac{z}{\frac{t_1}{x + y}}\\
\mathbf{if}\;t \leq -2.6 \cdot 10^{+24}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-41}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 5400000:\\
\;\;\;\;\frac{-b}{\frac{t_1}{y}}\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{+98}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -2.5999999999999998e24 or 1.45000000000000005e98 < t Initial program 70.8%
Taylor expanded in z around inf 70.8%
associate--l+70.8%
associate-/l*82.4%
associate-+r+82.4%
div-sub82.4%
+-commutative82.4%
*-commutative82.4%
associate-+r+82.4%
Simplified82.4%
div-inv82.4%
+-commutative82.4%
+-commutative82.4%
Applied egg-rr82.4%
Taylor expanded in z around inf 72.2%
associate-/l*81.4%
+-commutative81.4%
+-commutative81.4%
associate-+l+81.4%
+-commutative81.4%
+-commutative81.4%
Simplified81.4%
Taylor expanded in t around inf 77.7%
if -2.5999999999999998e24 < t < 6.5000000000000004e-41 or 5.4e6 < t < 1.45000000000000005e98Initial program 64.8%
Taylor expanded in z around inf 64.9%
associate--l+64.9%
associate-/l*68.4%
associate-+r+68.4%
div-sub68.4%
+-commutative68.4%
*-commutative68.4%
associate-+r+68.4%
Simplified68.4%
Taylor expanded in x around inf 72.1%
if 6.5000000000000004e-41 < t < 5.4e6Initial program 91.2%
Taylor expanded in b around inf 73.3%
mul-1-neg73.3%
associate-/l*73.6%
distribute-neg-frac73.6%
+-commutative73.6%
associate-+r+73.6%
+-commutative73.6%
associate-+l+73.6%
Simplified73.6%
Final simplification74.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ y (+ x t))) (t_2 (+ z (/ a (/ t_1 (+ y t))))))
(if (<= t -8.5e+76)
(- (+ a (/ y (/ t z))) (/ b (/ t y)))
(if (<= t 6.5e-41)
t_2
(if (<= t 5400000.0)
(/ (- b) (/ t_1 y))
(if (<= t 9.6e+99) t_2 (+ a (/ z (/ t_1 (+ x y))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (x + t);
double t_2 = z + (a / (t_1 / (y + t)));
double tmp;
if (t <= -8.5e+76) {
tmp = (a + (y / (t / z))) - (b / (t / y));
} else if (t <= 6.5e-41) {
tmp = t_2;
} else if (t <= 5400000.0) {
tmp = -b / (t_1 / y);
} else if (t <= 9.6e+99) {
tmp = t_2;
} else {
tmp = a + (z / (t_1 / (x + y)));
}
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 + (x + t)
t_2 = z + (a / (t_1 / (y + t)))
if (t <= (-8.5d+76)) then
tmp = (a + (y / (t / z))) - (b / (t / y))
else if (t <= 6.5d-41) then
tmp = t_2
else if (t <= 5400000.0d0) then
tmp = -b / (t_1 / y)
else if (t <= 9.6d+99) then
tmp = t_2
else
tmp = a + (z / (t_1 / (x + y)))
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 + (x + t);
double t_2 = z + (a / (t_1 / (y + t)));
double tmp;
if (t <= -8.5e+76) {
tmp = (a + (y / (t / z))) - (b / (t / y));
} else if (t <= 6.5e-41) {
tmp = t_2;
} else if (t <= 5400000.0) {
tmp = -b / (t_1 / y);
} else if (t <= 9.6e+99) {
tmp = t_2;
} else {
tmp = a + (z / (t_1 / (x + y)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y + (x + t) t_2 = z + (a / (t_1 / (y + t))) tmp = 0 if t <= -8.5e+76: tmp = (a + (y / (t / z))) - (b / (t / y)) elif t <= 6.5e-41: tmp = t_2 elif t <= 5400000.0: tmp = -b / (t_1 / y) elif t <= 9.6e+99: tmp = t_2 else: tmp = a + (z / (t_1 / (x + y))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y + Float64(x + t)) t_2 = Float64(z + Float64(a / Float64(t_1 / Float64(y + t)))) tmp = 0.0 if (t <= -8.5e+76) tmp = Float64(Float64(a + Float64(y / Float64(t / z))) - Float64(b / Float64(t / y))); elseif (t <= 6.5e-41) tmp = t_2; elseif (t <= 5400000.0) tmp = Float64(Float64(-b) / Float64(t_1 / y)); elseif (t <= 9.6e+99) tmp = t_2; else tmp = Float64(a + Float64(z / Float64(t_1 / Float64(x + y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y + (x + t); t_2 = z + (a / (t_1 / (y + t))); tmp = 0.0; if (t <= -8.5e+76) tmp = (a + (y / (t / z))) - (b / (t / y)); elseif (t <= 6.5e-41) tmp = t_2; elseif (t <= 5400000.0) tmp = -b / (t_1 / y); elseif (t <= 9.6e+99) tmp = t_2; else tmp = a + (z / (t_1 / (x + y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z + N[(a / N[(t$95$1 / N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.5e+76], N[(N[(a + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e-41], t$95$2, If[LessEqual[t, 5400000.0], N[((-b) / N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.6e+99], t$95$2, N[(a + N[(z / N[(t$95$1 / N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + \left(x + t\right)\\
t_2 := z + \frac{a}{\frac{t_1}{y + t}}\\
\mathbf{if}\;t \leq -8.5 \cdot 10^{+76}:\\
\;\;\;\;\left(a + \frac{y}{\frac{t}{z}}\right) - \frac{b}{\frac{t}{y}}\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-41}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 5400000:\\
\;\;\;\;\frac{-b}{\frac{t_1}{y}}\\
\mathbf{elif}\;t \leq 9.6 \cdot 10^{+99}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;a + \frac{z}{\frac{t_1}{x + y}}\\
\end{array}
\end{array}
if t < -8.49999999999999992e76Initial program 71.2%
Taylor expanded in t around inf 69.0%
+-commutative69.0%
associate-+l+69.0%
associate-/l*69.1%
associate-/l*69.4%
+-commutative69.4%
associate-/l*75.5%
+-commutative75.5%
associate-/l*84.0%
Simplified84.0%
Taylor expanded in x around 0 67.6%
associate-/l*70.4%
associate-/l*80.0%
Simplified80.0%
if -8.49999999999999992e76 < t < 6.5000000000000004e-41 or 5.4e6 < t < 9.6000000000000005e99Initial program 66.0%
Taylor expanded in z around inf 66.0%
associate--l+66.0%
associate-/l*69.3%
associate-+r+69.3%
div-sub69.3%
+-commutative69.3%
*-commutative69.3%
associate-+r+69.3%
Simplified69.3%
Taylor expanded in x around inf 73.3%
if 6.5000000000000004e-41 < t < 5.4e6Initial program 91.2%
Taylor expanded in b around inf 73.3%
mul-1-neg73.3%
associate-/l*73.6%
distribute-neg-frac73.6%
+-commutative73.6%
associate-+r+73.6%
+-commutative73.6%
associate-+l+73.6%
Simplified73.6%
if 9.6000000000000005e99 < t Initial program 67.3%
Taylor expanded in z around inf 67.3%
associate--l+67.3%
associate-/l*82.0%
associate-+r+82.0%
div-sub82.1%
+-commutative82.1%
*-commutative82.1%
associate-+r+82.1%
Simplified82.1%
div-inv82.0%
+-commutative82.0%
+-commutative82.0%
Applied egg-rr82.0%
Taylor expanded in z around inf 64.8%
associate-/l*77.3%
+-commutative77.3%
+-commutative77.3%
associate-+l+77.3%
+-commutative77.3%
+-commutative77.3%
Simplified77.3%
Taylor expanded in t around inf 74.8%
Final simplification75.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- (+ z a) b)) (t_2 (+ y (+ x t))))
(if (<= t -4.8e+78)
(- (+ a (/ y (/ t z))) (/ b (/ t y)))
(if (<= t 6.1e-41)
(+ z (/ a (/ t_2 (+ y t))))
(if (<= t 7800000000000.0)
(/ (* y t_1) t_2)
(if (<= t 5.2e+103) t_1 (+ a (/ z (/ t_2 (+ x y))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + a) - b;
double t_2 = y + (x + t);
double tmp;
if (t <= -4.8e+78) {
tmp = (a + (y / (t / z))) - (b / (t / y));
} else if (t <= 6.1e-41) {
tmp = z + (a / (t_2 / (y + t)));
} else if (t <= 7800000000000.0) {
tmp = (y * t_1) / t_2;
} else if (t <= 5.2e+103) {
tmp = t_1;
} else {
tmp = a + (z / (t_2 / (x + y)));
}
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 = (z + a) - b
t_2 = y + (x + t)
if (t <= (-4.8d+78)) then
tmp = (a + (y / (t / z))) - (b / (t / y))
else if (t <= 6.1d-41) then
tmp = z + (a / (t_2 / (y + t)))
else if (t <= 7800000000000.0d0) then
tmp = (y * t_1) / t_2
else if (t <= 5.2d+103) then
tmp = t_1
else
tmp = a + (z / (t_2 / (x + y)))
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 t_2 = y + (x + t);
double tmp;
if (t <= -4.8e+78) {
tmp = (a + (y / (t / z))) - (b / (t / y));
} else if (t <= 6.1e-41) {
tmp = z + (a / (t_2 / (y + t)));
} else if (t <= 7800000000000.0) {
tmp = (y * t_1) / t_2;
} else if (t <= 5.2e+103) {
tmp = t_1;
} else {
tmp = a + (z / (t_2 / (x + y)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + a) - b t_2 = y + (x + t) tmp = 0 if t <= -4.8e+78: tmp = (a + (y / (t / z))) - (b / (t / y)) elif t <= 6.1e-41: tmp = z + (a / (t_2 / (y + t))) elif t <= 7800000000000.0: tmp = (y * t_1) / t_2 elif t <= 5.2e+103: tmp = t_1 else: tmp = a + (z / (t_2 / (x + y))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + a) - b) t_2 = Float64(y + Float64(x + t)) tmp = 0.0 if (t <= -4.8e+78) tmp = Float64(Float64(a + Float64(y / Float64(t / z))) - Float64(b / Float64(t / y))); elseif (t <= 6.1e-41) tmp = Float64(z + Float64(a / Float64(t_2 / Float64(y + t)))); elseif (t <= 7800000000000.0) tmp = Float64(Float64(y * t_1) / t_2); elseif (t <= 5.2e+103) tmp = t_1; else tmp = Float64(a + Float64(z / Float64(t_2 / Float64(x + y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z + a) - b; t_2 = y + (x + t); tmp = 0.0; if (t <= -4.8e+78) tmp = (a + (y / (t / z))) - (b / (t / y)); elseif (t <= 6.1e-41) tmp = z + (a / (t_2 / (y + t))); elseif (t <= 7800000000000.0) tmp = (y * t_1) / t_2; elseif (t <= 5.2e+103) tmp = t_1; else tmp = a + (z / (t_2 / (x + y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]}, Block[{t$95$2 = N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.8e+78], N[(N[(a + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.1e-41], N[(z + N[(a / N[(t$95$2 / N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7800000000000.0], N[(N[(y * t$95$1), $MachinePrecision] / t$95$2), $MachinePrecision], If[LessEqual[t, 5.2e+103], t$95$1, N[(a + N[(z / N[(t$95$2 / N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z + a\right) - b\\
t_2 := y + \left(x + t\right)\\
\mathbf{if}\;t \leq -4.8 \cdot 10^{+78}:\\
\;\;\;\;\left(a + \frac{y}{\frac{t}{z}}\right) - \frac{b}{\frac{t}{y}}\\
\mathbf{elif}\;t \leq 6.1 \cdot 10^{-41}:\\
\;\;\;\;z + \frac{a}{\frac{t_2}{y + t}}\\
\mathbf{elif}\;t \leq 7800000000000:\\
\;\;\;\;\frac{y \cdot t_1}{t_2}\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+103}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a + \frac{z}{\frac{t_2}{x + y}}\\
\end{array}
\end{array}
if t < -4.7999999999999997e78Initial program 71.2%
Taylor expanded in t around inf 69.0%
+-commutative69.0%
associate-+l+69.0%
associate-/l*69.1%
associate-/l*69.4%
+-commutative69.4%
associate-/l*75.5%
+-commutative75.5%
associate-/l*84.0%
Simplified84.0%
Taylor expanded in x around 0 67.6%
associate-/l*70.4%
associate-/l*80.0%
Simplified80.0%
if -4.7999999999999997e78 < t < 6.0999999999999999e-41Initial program 67.8%
Taylor expanded in z around inf 67.8%
associate--l+67.8%
associate-/l*70.2%
associate-+r+70.2%
div-sub70.2%
+-commutative70.2%
*-commutative70.2%
associate-+r+70.2%
Simplified70.2%
Taylor expanded in x around inf 74.2%
if 6.0999999999999999e-41 < t < 7.8e12Initial program 92.5%
Taylor expanded in y around inf 77.2%
if 7.8e12 < t < 5.2000000000000003e103Initial program 52.0%
Taylor expanded in y around inf 62.8%
if 5.2000000000000003e103 < t Initial program 66.5%
Taylor expanded in z around inf 66.5%
associate--l+66.5%
associate-/l*81.6%
associate-+r+81.6%
div-sub81.6%
+-commutative81.6%
*-commutative81.6%
associate-+r+81.6%
Simplified81.6%
div-inv81.6%
+-commutative81.6%
+-commutative81.6%
Applied egg-rr81.6%
Taylor expanded in z around inf 66.5%
associate-/l*79.3%
+-commutative79.3%
+-commutative79.3%
associate-+l+79.3%
+-commutative79.3%
+-commutative79.3%
Simplified79.3%
Taylor expanded in t around inf 76.8%
Final simplification75.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ y (+ x t))))
(if (<= t -5.5e+78)
(- (+ a (/ y (/ t z))) (/ b (/ t y)))
(if (<= t 4.2e-41)
(+ z (/ a (/ t_1 (+ y t))))
(if (<= t 1.42e+17)
(/ (- (* (+ y t) a) (* y b)) t_1)
(if (<= t 4.6e+103) (- (+ z a) b) (+ a (/ z (/ t_1 (+ x y))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (x + t);
double tmp;
if (t <= -5.5e+78) {
tmp = (a + (y / (t / z))) - (b / (t / y));
} else if (t <= 4.2e-41) {
tmp = z + (a / (t_1 / (y + t)));
} else if (t <= 1.42e+17) {
tmp = (((y + t) * a) - (y * b)) / t_1;
} else if (t <= 4.6e+103) {
tmp = (z + a) - b;
} else {
tmp = a + (z / (t_1 / (x + y)));
}
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 = y + (x + t)
if (t <= (-5.5d+78)) then
tmp = (a + (y / (t / z))) - (b / (t / y))
else if (t <= 4.2d-41) then
tmp = z + (a / (t_1 / (y + t)))
else if (t <= 1.42d+17) then
tmp = (((y + t) * a) - (y * b)) / t_1
else if (t <= 4.6d+103) then
tmp = (z + a) - b
else
tmp = a + (z / (t_1 / (x + y)))
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 + (x + t);
double tmp;
if (t <= -5.5e+78) {
tmp = (a + (y / (t / z))) - (b / (t / y));
} else if (t <= 4.2e-41) {
tmp = z + (a / (t_1 / (y + t)));
} else if (t <= 1.42e+17) {
tmp = (((y + t) * a) - (y * b)) / t_1;
} else if (t <= 4.6e+103) {
tmp = (z + a) - b;
} else {
tmp = a + (z / (t_1 / (x + y)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y + (x + t) tmp = 0 if t <= -5.5e+78: tmp = (a + (y / (t / z))) - (b / (t / y)) elif t <= 4.2e-41: tmp = z + (a / (t_1 / (y + t))) elif t <= 1.42e+17: tmp = (((y + t) * a) - (y * b)) / t_1 elif t <= 4.6e+103: tmp = (z + a) - b else: tmp = a + (z / (t_1 / (x + y))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y + Float64(x + t)) tmp = 0.0 if (t <= -5.5e+78) tmp = Float64(Float64(a + Float64(y / Float64(t / z))) - Float64(b / Float64(t / y))); elseif (t <= 4.2e-41) tmp = Float64(z + Float64(a / Float64(t_1 / Float64(y + t)))); elseif (t <= 1.42e+17) tmp = Float64(Float64(Float64(Float64(y + t) * a) - Float64(y * b)) / t_1); elseif (t <= 4.6e+103) tmp = Float64(Float64(z + a) - b); else tmp = Float64(a + Float64(z / Float64(t_1 / Float64(x + y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y + (x + t); tmp = 0.0; if (t <= -5.5e+78) tmp = (a + (y / (t / z))) - (b / (t / y)); elseif (t <= 4.2e-41) tmp = z + (a / (t_1 / (y + t))); elseif (t <= 1.42e+17) tmp = (((y + t) * a) - (y * b)) / t_1; elseif (t <= 4.6e+103) tmp = (z + a) - b; else tmp = a + (z / (t_1 / (x + y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.5e+78], N[(N[(a + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.2e-41], N[(z + N[(a / N[(t$95$1 / N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.42e+17], N[(N[(N[(N[(y + t), $MachinePrecision] * a), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[t, 4.6e+103], N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision], N[(a + N[(z / N[(t$95$1 / N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + \left(x + t\right)\\
\mathbf{if}\;t \leq -5.5 \cdot 10^{+78}:\\
\;\;\;\;\left(a + \frac{y}{\frac{t}{z}}\right) - \frac{b}{\frac{t}{y}}\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-41}:\\
\;\;\;\;z + \frac{a}{\frac{t_1}{y + t}}\\
\mathbf{elif}\;t \leq 1.42 \cdot 10^{+17}:\\
\;\;\;\;\frac{\left(y + t\right) \cdot a - y \cdot b}{t_1}\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{+103}:\\
\;\;\;\;\left(z + a\right) - b\\
\mathbf{else}:\\
\;\;\;\;a + \frac{z}{\frac{t_1}{x + y}}\\
\end{array}
\end{array}
if t < -5.4999999999999997e78Initial program 71.2%
Taylor expanded in t around inf 69.0%
+-commutative69.0%
associate-+l+69.0%
associate-/l*69.1%
associate-/l*69.4%
+-commutative69.4%
associate-/l*75.5%
+-commutative75.5%
associate-/l*84.0%
Simplified84.0%
Taylor expanded in x around 0 67.6%
associate-/l*70.4%
associate-/l*80.0%
Simplified80.0%
if -5.4999999999999997e78 < t < 4.20000000000000025e-41Initial program 67.8%
Taylor expanded in z around inf 67.8%
associate--l+67.8%
associate-/l*70.2%
associate-+r+70.2%
div-sub70.2%
+-commutative70.2%
*-commutative70.2%
associate-+r+70.2%
Simplified70.2%
Taylor expanded in x around inf 74.2%
if 4.20000000000000025e-41 < t < 1.42e17Initial program 93.9%
Taylor expanded in z around 0 75.9%
*-commutative75.9%
Simplified75.9%
if 1.42e17 < t < 4.60000000000000017e103Initial program 43.5%
Taylor expanded in y around inf 67.6%
if 4.60000000000000017e103 < t Initial program 66.5%
Taylor expanded in z around inf 66.5%
associate--l+66.5%
associate-/l*81.6%
associate-+r+81.6%
div-sub81.6%
+-commutative81.6%
*-commutative81.6%
associate-+r+81.6%
Simplified81.6%
div-inv81.6%
+-commutative81.6%
+-commutative81.6%
Applied egg-rr81.6%
Taylor expanded in z around inf 66.5%
associate-/l*79.3%
+-commutative79.3%
+-commutative79.3%
associate-+l+79.3%
+-commutative79.3%
+-commutative79.3%
Simplified79.3%
Taylor expanded in t around inf 76.8%
Final simplification75.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- (+ z a) b)) (t_2 (/ a (/ (+ y (+ x t)) (+ y t)))))
(if (<= t -1.82e+59)
t_2
(if (<= t -6.2e-303)
t_1
(if (<= t 7.8e-225) z (if (<= t 4.2e+90) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + a) - b;
double t_2 = a / ((y + (x + t)) / (y + t));
double tmp;
if (t <= -1.82e+59) {
tmp = t_2;
} else if (t <= -6.2e-303) {
tmp = t_1;
} else if (t <= 7.8e-225) {
tmp = z;
} else if (t <= 4.2e+90) {
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 = (z + a) - b
t_2 = a / ((y + (x + t)) / (y + t))
if (t <= (-1.82d+59)) then
tmp = t_2
else if (t <= (-6.2d-303)) then
tmp = t_1
else if (t <= 7.8d-225) then
tmp = z
else if (t <= 4.2d+90) 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 = (z + a) - b;
double t_2 = a / ((y + (x + t)) / (y + t));
double tmp;
if (t <= -1.82e+59) {
tmp = t_2;
} else if (t <= -6.2e-303) {
tmp = t_1;
} else if (t <= 7.8e-225) {
tmp = z;
} else if (t <= 4.2e+90) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + a) - b t_2 = a / ((y + (x + t)) / (y + t)) tmp = 0 if t <= -1.82e+59: tmp = t_2 elif t <= -6.2e-303: tmp = t_1 elif t <= 7.8e-225: tmp = z elif t <= 4.2e+90: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + a) - b) t_2 = Float64(a / Float64(Float64(y + Float64(x + t)) / Float64(y + t))) tmp = 0.0 if (t <= -1.82e+59) tmp = t_2; elseif (t <= -6.2e-303) tmp = t_1; elseif (t <= 7.8e-225) tmp = z; elseif (t <= 4.2e+90) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z + a) - b; t_2 = a / ((y + (x + t)) / (y + t)); tmp = 0.0; if (t <= -1.82e+59) tmp = t_2; elseif (t <= -6.2e-303) tmp = t_1; elseif (t <= 7.8e-225) tmp = z; elseif (t <= 4.2e+90) 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[(z + a), $MachinePrecision] - b), $MachinePrecision]}, Block[{t$95$2 = N[(a / N[(N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision] / N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.82e+59], t$95$2, If[LessEqual[t, -6.2e-303], t$95$1, If[LessEqual[t, 7.8e-225], z, If[LessEqual[t, 4.2e+90], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z + a\right) - b\\
t_2 := \frac{a}{\frac{y + \left(x + t\right)}{y + t}}\\
\mathbf{if}\;t \leq -1.82 \cdot 10^{+59}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -6.2 \cdot 10^{-303}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{-225}:\\
\;\;\;\;z\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{+90}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -1.82000000000000008e59 or 4.19999999999999961e90 < t Initial program 70.9%
Taylor expanded in a around inf 42.0%
associate-/l*61.2%
associate-+r+61.2%
Simplified61.2%
if -1.82000000000000008e59 < t < -6.2000000000000002e-303 or 7.8000000000000001e-225 < t < 4.19999999999999961e90Initial program 67.3%
Taylor expanded in y around inf 66.2%
if -6.2000000000000002e-303 < t < 7.8000000000000001e-225Initial program 62.5%
Taylor expanded in x around inf 74.3%
Final simplification64.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- (+ z a) b)))
(if (<= y -3.9e+28)
t_1
(if (<= y 6e-222)
(/ (+ (* t a) (* x z)) (+ x t))
(if (<= y 1.72e+87) (+ a (/ z (/ (+ y (+ x t)) (+ 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 <= -3.9e+28) {
tmp = t_1;
} else if (y <= 6e-222) {
tmp = ((t * a) + (x * z)) / (x + t);
} else if (y <= 1.72e+87) {
tmp = a + (z / ((y + (x + t)) / (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 <= (-3.9d+28)) then
tmp = t_1
else if (y <= 6d-222) then
tmp = ((t * a) + (x * z)) / (x + t)
else if (y <= 1.72d+87) then
tmp = a + (z / ((y + (x + t)) / (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 <= -3.9e+28) {
tmp = t_1;
} else if (y <= 6e-222) {
tmp = ((t * a) + (x * z)) / (x + t);
} else if (y <= 1.72e+87) {
tmp = a + (z / ((y + (x + t)) / (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 <= -3.9e+28: tmp = t_1 elif y <= 6e-222: tmp = ((t * a) + (x * z)) / (x + t) elif y <= 1.72e+87: tmp = a + (z / ((y + (x + t)) / (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 <= -3.9e+28) tmp = t_1; elseif (y <= 6e-222) tmp = Float64(Float64(Float64(t * a) + Float64(x * z)) / Float64(x + t)); elseif (y <= 1.72e+87) tmp = Float64(a + Float64(z / Float64(Float64(y + Float64(x + t)) / 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 <= -3.9e+28) tmp = t_1; elseif (y <= 6e-222) tmp = ((t * a) + (x * z)) / (x + t); elseif (y <= 1.72e+87) tmp = a + (z / ((y + (x + t)) / (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, -3.9e+28], t$95$1, If[LessEqual[y, 6e-222], N[(N[(N[(t * a), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision] / N[(x + t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.72e+87], N[(a + N[(z / N[(N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision] / N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z + a\right) - b\\
\mathbf{if}\;y \leq -3.9 \cdot 10^{+28}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-222}:\\
\;\;\;\;\frac{t \cdot a + x \cdot z}{x + t}\\
\mathbf{elif}\;y \leq 1.72 \cdot 10^{+87}:\\
\;\;\;\;a + \frac{z}{\frac{y + \left(x + t\right)}{x + y}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -3.8999999999999999e28 or 1.72000000000000008e87 < y Initial program 37.8%
Taylor expanded in y around inf 80.2%
if -3.8999999999999999e28 < y < 6.00000000000000059e-222Initial program 91.2%
Taylor expanded in y around 0 67.8%
if 6.00000000000000059e-222 < y < 1.72000000000000008e87Initial program 82.7%
Taylor expanded in z around inf 82.7%
associate--l+82.7%
associate-/l*90.6%
associate-+r+90.6%
div-sub90.6%
+-commutative90.6%
*-commutative90.6%
associate-+r+90.6%
Simplified90.6%
div-inv90.5%
+-commutative90.5%
+-commutative90.5%
Applied egg-rr90.5%
Taylor expanded in z around inf 72.9%
associate-/l*80.7%
+-commutative80.7%
+-commutative80.7%
associate-+l+80.7%
+-commutative80.7%
+-commutative80.7%
Simplified80.7%
Taylor expanded in t around inf 66.7%
Final simplification72.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- (+ z a) b)))
(if (<= t -1.82e+59)
a
(if (<= t -1.95e-303)
t_1
(if (<= t 1.32e-225)
z
(if (<= t 4.8e+128) t_1 (* a (- 1.0 (/ x t)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + a) - b;
double tmp;
if (t <= -1.82e+59) {
tmp = a;
} else if (t <= -1.95e-303) {
tmp = t_1;
} else if (t <= 1.32e-225) {
tmp = z;
} else if (t <= 4.8e+128) {
tmp = t_1;
} else {
tmp = a * (1.0 - (x / t));
}
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 (t <= (-1.82d+59)) then
tmp = a
else if (t <= (-1.95d-303)) then
tmp = t_1
else if (t <= 1.32d-225) then
tmp = z
else if (t <= 4.8d+128) then
tmp = t_1
else
tmp = a * (1.0d0 - (x / t))
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 (t <= -1.82e+59) {
tmp = a;
} else if (t <= -1.95e-303) {
tmp = t_1;
} else if (t <= 1.32e-225) {
tmp = z;
} else if (t <= 4.8e+128) {
tmp = t_1;
} else {
tmp = a * (1.0 - (x / t));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + a) - b tmp = 0 if t <= -1.82e+59: tmp = a elif t <= -1.95e-303: tmp = t_1 elif t <= 1.32e-225: tmp = z elif t <= 4.8e+128: tmp = t_1 else: tmp = a * (1.0 - (x / t)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + a) - b) tmp = 0.0 if (t <= -1.82e+59) tmp = a; elseif (t <= -1.95e-303) tmp = t_1; elseif (t <= 1.32e-225) tmp = z; elseif (t <= 4.8e+128) tmp = t_1; else tmp = Float64(a * Float64(1.0 - Float64(x / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z + a) - b; tmp = 0.0; if (t <= -1.82e+59) tmp = a; elseif (t <= -1.95e-303) tmp = t_1; elseif (t <= 1.32e-225) tmp = z; elseif (t <= 4.8e+128) tmp = t_1; else tmp = a * (1.0 - (x / t)); 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[t, -1.82e+59], a, If[LessEqual[t, -1.95e-303], t$95$1, If[LessEqual[t, 1.32e-225], z, If[LessEqual[t, 4.8e+128], t$95$1, N[(a * N[(1.0 - N[(x / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z + a\right) - b\\
\mathbf{if}\;t \leq -1.82 \cdot 10^{+59}:\\
\;\;\;\;a\\
\mathbf{elif}\;t \leq -1.95 \cdot 10^{-303}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.32 \cdot 10^{-225}:\\
\;\;\;\;z\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{+128}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(1 - \frac{x}{t}\right)\\
\end{array}
\end{array}
if t < -1.82000000000000008e59Initial program 72.6%
Taylor expanded in t around inf 62.0%
if -1.82000000000000008e59 < t < -1.95e-303 or 1.32e-225 < t < 4.8000000000000004e128Initial program 67.4%
Taylor expanded in y around inf 65.0%
if -1.95e-303 < t < 1.32e-225Initial program 62.5%
Taylor expanded in x around inf 74.3%
if 4.8000000000000004e128 < t Initial program 68.1%
Taylor expanded in t around inf 67.7%
+-commutative67.7%
associate-+l+67.7%
associate-/l*67.7%
associate-/l*68.0%
+-commutative68.0%
associate-/l*76.7%
+-commutative76.7%
associate-/l*79.9%
Simplified79.9%
Taylor expanded in a around inf 58.3%
Final simplification64.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- (+ z a) b)))
(if (<= t -1.82e+59)
a
(if (<= t -7.5e-303)
t_1
(if (<= t 8e-225) z (if (<= t 3.8e+106) t_1 a))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + a) - b;
double tmp;
if (t <= -1.82e+59) {
tmp = a;
} else if (t <= -7.5e-303) {
tmp = t_1;
} else if (t <= 8e-225) {
tmp = z;
} else if (t <= 3.8e+106) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = (z + a) - b
if (t <= (-1.82d+59)) then
tmp = a
else if (t <= (-7.5d-303)) then
tmp = t_1
else if (t <= 8d-225) then
tmp = z
else if (t <= 3.8d+106) then
tmp = t_1
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 t_1 = (z + a) - b;
double tmp;
if (t <= -1.82e+59) {
tmp = a;
} else if (t <= -7.5e-303) {
tmp = t_1;
} else if (t <= 8e-225) {
tmp = z;
} else if (t <= 3.8e+106) {
tmp = t_1;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + a) - b tmp = 0 if t <= -1.82e+59: tmp = a elif t <= -7.5e-303: tmp = t_1 elif t <= 8e-225: tmp = z elif t <= 3.8e+106: tmp = t_1 else: tmp = a return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + a) - b) tmp = 0.0 if (t <= -1.82e+59) tmp = a; elseif (t <= -7.5e-303) tmp = t_1; elseif (t <= 8e-225) tmp = z; elseif (t <= 3.8e+106) tmp = t_1; else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z + a) - b; tmp = 0.0; if (t <= -1.82e+59) tmp = a; elseif (t <= -7.5e-303) tmp = t_1; elseif (t <= 8e-225) tmp = z; elseif (t <= 3.8e+106) tmp = t_1; else tmp = a; 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[t, -1.82e+59], a, If[LessEqual[t, -7.5e-303], t$95$1, If[LessEqual[t, 8e-225], z, If[LessEqual[t, 3.8e+106], t$95$1, a]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z + a\right) - b\\
\mathbf{if}\;t \leq -1.82 \cdot 10^{+59}:\\
\;\;\;\;a\\
\mathbf{elif}\;t \leq -7.5 \cdot 10^{-303}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 8 \cdot 10^{-225}:\\
\;\;\;\;z\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{+106}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if t < -1.82000000000000008e59 or 3.7999999999999998e106 < t Initial program 70.3%
Taylor expanded in t around inf 60.3%
if -1.82000000000000008e59 < t < -7.49999999999999972e-303 or 7.9999999999999997e-225 < t < 3.7999999999999998e106Initial program 67.8%
Taylor expanded in y around inf 65.4%
if -7.49999999999999972e-303 < t < 7.9999999999999997e-225Initial program 62.5%
Taylor expanded in x around inf 74.3%
Final simplification64.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -6.4e+41) (not (<= y 1.4e+40))) (- (+ z a) b) (/ (+ (* t a) (* x z)) (+ x t))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -6.4e+41) || !(y <= 1.4e+40)) {
tmp = (z + a) - b;
} else {
tmp = ((t * a) + (x * z)) / (x + t);
}
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 <= (-6.4d+41)) .or. (.not. (y <= 1.4d+40))) then
tmp = (z + a) - b
else
tmp = ((t * a) + (x * z)) / (x + t)
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 <= -6.4e+41) || !(y <= 1.4e+40)) {
tmp = (z + a) - b;
} else {
tmp = ((t * a) + (x * z)) / (x + t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -6.4e+41) or not (y <= 1.4e+40): tmp = (z + a) - b else: tmp = ((t * a) + (x * z)) / (x + t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -6.4e+41) || !(y <= 1.4e+40)) tmp = Float64(Float64(z + a) - b); else tmp = Float64(Float64(Float64(t * a) + Float64(x * z)) / Float64(x + t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -6.4e+41) || ~((y <= 1.4e+40))) tmp = (z + a) - b; else tmp = ((t * a) + (x * z)) / (x + t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -6.4e+41], N[Not[LessEqual[y, 1.4e+40]], $MachinePrecision]], N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision], N[(N[(N[(t * a), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision] / N[(x + t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.4 \cdot 10^{+41} \lor \neg \left(y \leq 1.4 \cdot 10^{+40}\right):\\
\;\;\;\;\left(z + a\right) - b\\
\mathbf{else}:\\
\;\;\;\;\frac{t \cdot a + x \cdot z}{x + t}\\
\end{array}
\end{array}
if y < -6.40000000000000019e41 or 1.4000000000000001e40 < y Initial program 39.8%
Taylor expanded in y around inf 76.2%
if -6.40000000000000019e41 < y < 1.4000000000000001e40Initial program 89.6%
Taylor expanded in y around 0 64.9%
Final simplification69.7%
(FPCore (x y z t a b) :precision binary64 (if (<= t -9.2e+24) a (if (<= t 1.3e+34) z a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -9.2e+24) {
tmp = a;
} else if (t <= 1.3e+34) {
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 <= (-9.2d+24)) then
tmp = a
else if (t <= 1.3d+34) 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 <= -9.2e+24) {
tmp = a;
} else if (t <= 1.3e+34) {
tmp = z;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -9.2e+24: tmp = a elif t <= 1.3e+34: tmp = z else: tmp = a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -9.2e+24) tmp = a; elseif (t <= 1.3e+34) tmp = z; else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -9.2e+24) tmp = a; elseif (t <= 1.3e+34) tmp = z; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -9.2e+24], a, If[LessEqual[t, 1.3e+34], z, a]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.2 \cdot 10^{+24}:\\
\;\;\;\;a\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+34}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if t < -9.1999999999999996e24 or 1.29999999999999999e34 < t Initial program 67.0%
Taylor expanded in t around inf 57.0%
if -9.1999999999999996e24 < t < 1.29999999999999999e34Initial program 69.6%
Taylor expanded in x around inf 45.9%
Final simplification51.1%
(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 68.4%
Taylor expanded in t around inf 36.0%
Final simplification36.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 2024018
(FPCore (x y z t a b)
:name "AI.Clustering.Hierarchical.Internal:ward from clustering-0.2.1"
:precision binary64
:herbie-target
(if (< (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)) -3.5813117084150564e+153) (- (+ z a) b) (if (< (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)) 1.2285964308315609e+82) (/ 1.0 (/ (+ (+ 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)))