
(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 11 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 (/ (- (+ (* (+ x y) z) (* a (+ y t))) (* y b)) t_1)))
(if (or (<= t_2 (- INFINITY)) (not (<= t_2 2e+290)))
(- (+ z a) (* y (/ b (+ x (+ y t)))))
(/ (+ (* t a) (+ (* x z) (* y (- (+ z a) b)))) 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 = ((((x + y) * z) + (a * (y + t))) - (y * b)) / t_1;
double tmp;
if ((t_2 <= -((double) INFINITY)) || !(t_2 <= 2e+290)) {
tmp = (z + a) - (y * (b / (x + (y + t))));
} else {
tmp = ((t * a) + ((x * z) + (y * ((z + a) - b)))) / t_1;
}
return tmp;
}
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 = ((((x + y) * z) + (a * (y + t))) - (y * b)) / t_1;
double tmp;
if ((t_2 <= -Double.POSITIVE_INFINITY) || !(t_2 <= 2e+290)) {
tmp = (z + a) - (y * (b / (x + (y + t))));
} else {
tmp = ((t * a) + ((x * z) + (y * ((z + a) - b)))) / t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y + (x + t) t_2 = ((((x + y) * z) + (a * (y + t))) - (y * b)) / t_1 tmp = 0 if (t_2 <= -math.inf) or not (t_2 <= 2e+290): tmp = (z + a) - (y * (b / (x + (y + t)))) else: tmp = ((t * a) + ((x * z) + (y * ((z + a) - b)))) / 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(x + y) * z) + Float64(a * Float64(y + t))) - Float64(y * b)) / t_1) tmp = 0.0 if ((t_2 <= Float64(-Inf)) || !(t_2 <= 2e+290)) tmp = Float64(Float64(z + a) - Float64(y * Float64(b / Float64(x + Float64(y + t))))); else tmp = Float64(Float64(Float64(t * a) + Float64(Float64(x * z) + Float64(y * Float64(Float64(z + a) - b)))) / t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y + (x + t); t_2 = ((((x + y) * z) + (a * (y + t))) - (y * b)) / t_1; tmp = 0.0; if ((t_2 <= -Inf) || ~((t_2 <= 2e+290))) tmp = (z + a) - (y * (b / (x + (y + t)))); else tmp = ((t * a) + ((x * z) + (y * ((z + a) - b)))) / 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[(x + y), $MachinePrecision] * z), $MachinePrecision] + N[(a * N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[Or[LessEqual[t$95$2, (-Infinity)], N[Not[LessEqual[t$95$2, 2e+290]], $MachinePrecision]], N[(N[(z + a), $MachinePrecision] - N[(y * N[(b / N[(x + N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(t * a), $MachinePrecision] + N[(N[(x * z), $MachinePrecision] + N[(y * N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]), $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(x + y\right) \cdot z + a \cdot \left(y + t\right)\right) - y \cdot b}{t\_1}\\
\mathbf{if}\;t\_2 \leq -\infty \lor \neg \left(t\_2 \leq 2 \cdot 10^{+290}\right):\\
\;\;\;\;\left(z + a\right) - y \cdot \frac{b}{x + \left(y + t\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{t \cdot a + \left(x \cdot z + y \cdot \left(\left(z + a\right) - b\right)\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)) < -inf.0 or 2.00000000000000012e290 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) Initial program 6.3%
div-sub6.3%
fma-define6.5%
+-commutative6.5%
*-commutative6.5%
associate-+l+6.5%
+-commutative6.5%
associate-+l+6.5%
+-commutative6.5%
associate-/l*25.0%
Applied egg-rr25.0%
Taylor expanded in y around inf 82.1%
if -inf.0 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 2.00000000000000012e290Initial program 99.6%
Taylor expanded in y around 0 99.6%
Final simplification92.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ z (- (- (* a (/ (+ y t) x)) (* t (/ z x))) (* b (/ y x)))))
(t_2 (- (+ z a) (* y (/ b (+ x (+ y t)))))))
(if (<= x -1.5e+106)
t_1
(if (<= x -1.5e-280)
t_2
(if (<= x 1.6e-244)
(- (+ a (/ (* y z) (+ y t))) (/ (* y b) (+ y t)))
(if (<= x 3.4e+139) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z + (((a * ((y + t) / x)) - (t * (z / x))) - (b * (y / x)));
double t_2 = (z + a) - (y * (b / (x + (y + t))));
double tmp;
if (x <= -1.5e+106) {
tmp = t_1;
} else if (x <= -1.5e-280) {
tmp = t_2;
} else if (x <= 1.6e-244) {
tmp = (a + ((y * z) / (y + t))) - ((y * b) / (y + t));
} else if (x <= 3.4e+139) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = z + (((a * ((y + t) / x)) - (t * (z / x))) - (b * (y / x)))
t_2 = (z + a) - (y * (b / (x + (y + t))))
if (x <= (-1.5d+106)) then
tmp = t_1
else if (x <= (-1.5d-280)) then
tmp = t_2
else if (x <= 1.6d-244) then
tmp = (a + ((y * z) / (y + t))) - ((y * b) / (y + t))
else if (x <= 3.4d+139) then
tmp = t_2
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 * ((y + t) / x)) - (t * (z / x))) - (b * (y / x)));
double t_2 = (z + a) - (y * (b / (x + (y + t))));
double tmp;
if (x <= -1.5e+106) {
tmp = t_1;
} else if (x <= -1.5e-280) {
tmp = t_2;
} else if (x <= 1.6e-244) {
tmp = (a + ((y * z) / (y + t))) - ((y * b) / (y + t));
} else if (x <= 3.4e+139) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z + (((a * ((y + t) / x)) - (t * (z / x))) - (b * (y / x))) t_2 = (z + a) - (y * (b / (x + (y + t)))) tmp = 0 if x <= -1.5e+106: tmp = t_1 elif x <= -1.5e-280: tmp = t_2 elif x <= 1.6e-244: tmp = (a + ((y * z) / (y + t))) - ((y * b) / (y + t)) elif x <= 3.4e+139: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z + Float64(Float64(Float64(a * Float64(Float64(y + t) / x)) - Float64(t * Float64(z / x))) - Float64(b * Float64(y / x)))) t_2 = Float64(Float64(z + a) - Float64(y * Float64(b / Float64(x + Float64(y + t))))) tmp = 0.0 if (x <= -1.5e+106) tmp = t_1; elseif (x <= -1.5e-280) tmp = t_2; elseif (x <= 1.6e-244) tmp = Float64(Float64(a + Float64(Float64(y * z) / Float64(y + t))) - Float64(Float64(y * b) / Float64(y + t))); elseif (x <= 3.4e+139) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z + (((a * ((y + t) / x)) - (t * (z / x))) - (b * (y / x))); t_2 = (z + a) - (y * (b / (x + (y + t)))); tmp = 0.0; if (x <= -1.5e+106) tmp = t_1; elseif (x <= -1.5e-280) tmp = t_2; elseif (x <= 1.6e-244) tmp = (a + ((y * z) / (y + t))) - ((y * b) / (y + t)); elseif (x <= 3.4e+139) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z + N[(N[(N[(a * N[(N[(y + t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] - N[(t * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z + a), $MachinePrecision] - N[(y * N[(b / N[(x + N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.5e+106], t$95$1, If[LessEqual[x, -1.5e-280], t$95$2, If[LessEqual[x, 1.6e-244], N[(N[(a + N[(N[(y * z), $MachinePrecision] / N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] / N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.4e+139], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z + \left(\left(a \cdot \frac{y + t}{x} - t \cdot \frac{z}{x}\right) - b \cdot \frac{y}{x}\right)\\
t_2 := \left(z + a\right) - y \cdot \frac{b}{x + \left(y + t\right)}\\
\mathbf{if}\;x \leq -1.5 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.5 \cdot 10^{-280}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{-244}:\\
\;\;\;\;\left(a + \frac{y \cdot z}{y + t}\right) - \frac{y \cdot b}{y + t}\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{+139}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.5e106 or 3.4000000000000002e139 < x Initial program 51.6%
Taylor expanded in z around 0 75.6%
associate--l+75.6%
div-sub75.6%
fma-define75.6%
associate-+r+75.6%
+-commutative75.6%
associate-+r+75.6%
+-commutative75.6%
*-commutative75.6%
associate-+r+75.6%
+-commutative75.6%
Simplified75.6%
Taylor expanded in x around inf 65.2%
associate--l+65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
associate-/l*72.7%
+-commutative72.7%
associate-/l*76.7%
associate-/l*82.2%
Simplified82.2%
if -1.5e106 < x < -1.49999999999999994e-280 or 1.5999999999999999e-244 < x < 3.4000000000000002e139Initial program 60.6%
div-sub60.6%
fma-define60.7%
+-commutative60.7%
*-commutative60.7%
associate-+l+60.7%
+-commutative60.7%
associate-+l+60.7%
+-commutative60.7%
associate-/l*71.0%
Applied egg-rr71.0%
Taylor expanded in y around inf 76.8%
if -1.49999999999999994e-280 < x < 1.5999999999999999e-244Initial program 81.1%
Taylor expanded in z around 0 88.5%
associate--l+88.5%
div-sub88.5%
fma-define88.5%
associate-+r+88.5%
+-commutative88.5%
associate-+r+88.5%
+-commutative88.5%
*-commutative88.5%
associate-+r+88.5%
+-commutative88.5%
Simplified88.5%
Taylor expanded in x around 0 87.6%
Final simplification79.2%
(FPCore (x y z t a b) :precision binary64 (if (<= t 7.2e+114) (- (+ z a) (* y (/ b (+ x (+ y t))))) (- (+ a (/ (* y z) (+ y t))) (/ (* y b) (+ y t)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 7.2e+114) {
tmp = (z + a) - (y * (b / (x + (y + t))));
} else {
tmp = (a + ((y * z) / (y + t))) - ((y * b) / (y + 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 (t <= 7.2d+114) then
tmp = (z + a) - (y * (b / (x + (y + t))))
else
tmp = (a + ((y * z) / (y + t))) - ((y * b) / (y + 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 (t <= 7.2e+114) {
tmp = (z + a) - (y * (b / (x + (y + t))));
} else {
tmp = (a + ((y * z) / (y + t))) - ((y * b) / (y + t));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 7.2e+114: tmp = (z + a) - (y * (b / (x + (y + t)))) else: tmp = (a + ((y * z) / (y + t))) - ((y * b) / (y + t)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 7.2e+114) tmp = Float64(Float64(z + a) - Float64(y * Float64(b / Float64(x + Float64(y + t))))); else tmp = Float64(Float64(a + Float64(Float64(y * z) / Float64(y + t))) - Float64(Float64(y * b) / Float64(y + t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= 7.2e+114) tmp = (z + a) - (y * (b / (x + (y + t)))); else tmp = (a + ((y * z) / (y + t))) - ((y * b) / (y + t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 7.2e+114], N[(N[(z + a), $MachinePrecision] - N[(y * N[(b / N[(x + N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a + N[(N[(y * z), $MachinePrecision] / N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] / N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 7.2 \cdot 10^{+114}:\\
\;\;\;\;\left(z + a\right) - y \cdot \frac{b}{x + \left(y + t\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(a + \frac{y \cdot z}{y + t}\right) - \frac{y \cdot b}{y + t}\\
\end{array}
\end{array}
if t < 7.2000000000000001e114Initial program 59.4%
div-sub59.4%
fma-define59.5%
+-commutative59.5%
*-commutative59.5%
associate-+l+59.5%
+-commutative59.5%
associate-+l+59.5%
+-commutative59.5%
associate-/l*66.8%
Applied egg-rr66.8%
Taylor expanded in y around inf 72.1%
if 7.2000000000000001e114 < t Initial program 64.0%
Taylor expanded in z around 0 70.2%
associate--l+70.2%
div-sub70.2%
fma-define70.2%
associate-+r+70.2%
+-commutative70.2%
associate-+r+70.2%
+-commutative70.2%
*-commutative70.2%
associate-+r+70.2%
+-commutative70.2%
Simplified70.2%
Taylor expanded in x around 0 71.3%
Final simplification72.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= x -1.3e+118) (not (<= x 2.1e+98))) (+ z (* (/ y x) (- a b))) (- (+ z a) b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x <= -1.3e+118) || !(x <= 2.1e+98)) {
tmp = z + ((y / x) * (a - b));
} else {
tmp = (z + 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 ((x <= (-1.3d+118)) .or. (.not. (x <= 2.1d+98))) then
tmp = z + ((y / x) * (a - b))
else
tmp = (z + 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 ((x <= -1.3e+118) || !(x <= 2.1e+98)) {
tmp = z + ((y / x) * (a - b));
} else {
tmp = (z + a) - b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (x <= -1.3e+118) or not (x <= 2.1e+98): tmp = z + ((y / x) * (a - b)) else: tmp = (z + a) - b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((x <= -1.3e+118) || !(x <= 2.1e+98)) tmp = Float64(z + Float64(Float64(y / x) * Float64(a - b))); else tmp = Float64(Float64(z + a) - b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((x <= -1.3e+118) || ~((x <= 2.1e+98))) tmp = z + ((y / x) * (a - b)); else tmp = (z + a) - b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[x, -1.3e+118], N[Not[LessEqual[x, 2.1e+98]], $MachinePrecision]], N[(z + N[(N[(y / x), $MachinePrecision] * N[(a - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.3 \cdot 10^{+118} \lor \neg \left(x \leq 2.1 \cdot 10^{+98}\right):\\
\;\;\;\;z + \frac{y}{x} \cdot \left(a - b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z + a\right) - b\\
\end{array}
\end{array}
if x < -1.30000000000000008e118 or 2.10000000000000004e98 < x Initial program 49.8%
Taylor expanded in z around 0 75.3%
associate--l+75.3%
div-sub75.3%
fma-define75.3%
associate-+r+75.3%
+-commutative75.3%
associate-+r+75.3%
+-commutative75.3%
*-commutative75.3%
associate-+r+75.3%
+-commutative75.3%
Simplified75.3%
Taylor expanded in x around inf 64.6%
associate--l+64.6%
+-commutative64.6%
mul-1-neg64.6%
unsub-neg64.6%
associate-/l*71.3%
+-commutative71.3%
associate-/l*75.0%
associate-/l*80.2%
Simplified80.2%
Taylor expanded in t around 0 60.3%
associate-/l*66.8%
associate-*r/70.9%
distribute-rgt-out--70.9%
Simplified70.9%
if -1.30000000000000008e118 < x < 2.10000000000000004e98Initial program 64.5%
Taylor expanded in y around inf 62.9%
Final simplification65.2%
(FPCore (x y z t a b) :precision binary64 (if (<= x -7.5e+117) (+ z (* y (- (/ a x) (/ b x)))) (if (<= x 5e+97) (- (+ z a) b) (+ z (* (/ y x) (- a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -7.5e+117) {
tmp = z + (y * ((a / x) - (b / x)));
} else if (x <= 5e+97) {
tmp = (z + a) - b;
} else {
tmp = z + ((y / x) * (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 (x <= (-7.5d+117)) then
tmp = z + (y * ((a / x) - (b / x)))
else if (x <= 5d+97) then
tmp = (z + a) - b
else
tmp = z + ((y / x) * (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 (x <= -7.5e+117) {
tmp = z + (y * ((a / x) - (b / x)));
} else if (x <= 5e+97) {
tmp = (z + a) - b;
} else {
tmp = z + ((y / x) * (a - b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -7.5e+117: tmp = z + (y * ((a / x) - (b / x))) elif x <= 5e+97: tmp = (z + a) - b else: tmp = z + ((y / x) * (a - b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -7.5e+117) tmp = Float64(z + Float64(y * Float64(Float64(a / x) - Float64(b / x)))); elseif (x <= 5e+97) tmp = Float64(Float64(z + a) - b); else tmp = Float64(z + Float64(Float64(y / x) * Float64(a - b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -7.5e+117) tmp = z + (y * ((a / x) - (b / x))); elseif (x <= 5e+97) tmp = (z + a) - b; else tmp = z + ((y / x) * (a - b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -7.5e+117], N[(z + N[(y * N[(N[(a / x), $MachinePrecision] - N[(b / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5e+97], N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision], N[(z + N[(N[(y / x), $MachinePrecision] * N[(a - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.5 \cdot 10^{+117}:\\
\;\;\;\;z + y \cdot \left(\frac{a}{x} - \frac{b}{x}\right)\\
\mathbf{elif}\;x \leq 5 \cdot 10^{+97}:\\
\;\;\;\;\left(z + a\right) - b\\
\mathbf{else}:\\
\;\;\;\;z + \frac{y}{x} \cdot \left(a - b\right)\\
\end{array}
\end{array}
if x < -7.5e117Initial program 47.2%
Taylor expanded in z around 0 73.3%
associate--l+73.3%
div-sub73.3%
fma-define73.3%
associate-+r+73.3%
+-commutative73.3%
associate-+r+73.3%
+-commutative73.3%
*-commutative73.3%
associate-+r+73.3%
+-commutative73.3%
Simplified73.3%
Taylor expanded in x around inf 62.5%
associate--l+62.5%
+-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
associate-/l*70.8%
+-commutative70.8%
associate-/l*75.8%
associate-/l*80.6%
Simplified80.6%
Taylor expanded in y around inf 69.3%
if -7.5e117 < x < 4.99999999999999999e97Initial program 64.5%
Taylor expanded in y around inf 62.9%
if 4.99999999999999999e97 < x Initial program 52.3%
Taylor expanded in z around 0 77.3%
associate--l+77.3%
div-sub77.3%
fma-define77.3%
associate-+r+77.3%
+-commutative77.3%
associate-+r+77.3%
+-commutative77.3%
*-commutative77.3%
associate-+r+77.3%
+-commutative77.3%
Simplified77.3%
Taylor expanded in x around inf 66.5%
associate--l+66.5%
+-commutative66.5%
mul-1-neg66.5%
unsub-neg66.5%
associate-/l*71.8%
+-commutative71.8%
associate-/l*74.2%
associate-/l*79.9%
Simplified79.9%
Taylor expanded in t around 0 59.1%
associate-/l*66.7%
associate-*r/72.5%
distribute-rgt-out--72.5%
Simplified72.5%
Final simplification65.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= x -4.2e+116) (not (<= x 1.5e+196))) (- z (* b (/ y x))) (- (+ z a) b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x <= -4.2e+116) || !(x <= 1.5e+196)) {
tmp = z - (b * (y / x));
} else {
tmp = (z + 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 ((x <= (-4.2d+116)) .or. (.not. (x <= 1.5d+196))) then
tmp = z - (b * (y / x))
else
tmp = (z + 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 ((x <= -4.2e+116) || !(x <= 1.5e+196)) {
tmp = z - (b * (y / x));
} else {
tmp = (z + a) - b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (x <= -4.2e+116) or not (x <= 1.5e+196): tmp = z - (b * (y / x)) else: tmp = (z + a) - b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((x <= -4.2e+116) || !(x <= 1.5e+196)) tmp = Float64(z - Float64(b * Float64(y / x))); else tmp = Float64(Float64(z + a) - b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((x <= -4.2e+116) || ~((x <= 1.5e+196))) tmp = z - (b * (y / x)); else tmp = (z + a) - b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[x, -4.2e+116], N[Not[LessEqual[x, 1.5e+196]], $MachinePrecision]], N[(z - N[(b * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.2 \cdot 10^{+116} \lor \neg \left(x \leq 1.5 \cdot 10^{+196}\right):\\
\;\;\;\;z - b \cdot \frac{y}{x}\\
\mathbf{else}:\\
\;\;\;\;\left(z + a\right) - b\\
\end{array}
\end{array}
if x < -4.2000000000000002e116 or 1.4999999999999999e196 < x Initial program 46.0%
Taylor expanded in z around 0 74.5%
associate--l+74.5%
div-sub74.5%
fma-define74.5%
associate-+r+74.5%
+-commutative74.5%
associate-+r+74.5%
+-commutative74.5%
*-commutative74.5%
associate-+r+74.5%
+-commutative74.5%
Simplified74.5%
Taylor expanded in x around inf 65.3%
associate--l+65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
associate-/l*72.9%
+-commutative72.9%
associate-/l*78.1%
associate-/l*84.9%
Simplified84.9%
Taylor expanded in b around inf 59.5%
mul-1-neg59.5%
distribute-frac-neg259.5%
associate-*r/63.0%
Simplified63.0%
if -4.2000000000000002e116 < x < 1.4999999999999999e196Initial program 63.9%
Taylor expanded in y around inf 61.7%
Final simplification62.0%
(FPCore (x y z t a b) :precision binary64 (- (+ z a) (* y (/ b (+ x (+ y t))))))
double code(double x, double y, double z, double t, double a, double b) {
return (z + a) - (y * (b / (x + (y + t))));
}
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) - (y * (b / (x + (y + t))))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (z + a) - (y * (b / (x + (y + t))));
}
def code(x, y, z, t, a, b): return (z + a) - (y * (b / (x + (y + t))))
function code(x, y, z, t, a, b) return Float64(Float64(z + a) - Float64(y * Float64(b / Float64(x + Float64(y + t))))) end
function tmp = code(x, y, z, t, a, b) tmp = (z + a) - (y * (b / (x + (y + t)))); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(z + a), $MachinePrecision] - N[(y * N[(b / N[(x + N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(z + a\right) - y \cdot \frac{b}{x + \left(y + t\right)}
\end{array}
Initial program 60.2%
div-sub60.2%
fma-define60.3%
+-commutative60.3%
*-commutative60.3%
associate-+l+60.3%
+-commutative60.3%
associate-+l+60.3%
+-commutative60.3%
associate-/l*67.4%
Applied egg-rr67.4%
Taylor expanded in y around inf 68.8%
Final simplification68.8%
(FPCore (x y z t a b) :precision binary64 (if (<= x 3.2e+191) (- (+ z a) b) (* x (/ z (+ x t)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= 3.2e+191) {
tmp = (z + a) - b;
} else {
tmp = 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 (x <= 3.2d+191) then
tmp = (z + a) - b
else
tmp = 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 (x <= 3.2e+191) {
tmp = (z + a) - b;
} else {
tmp = x * (z / (x + t));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= 3.2e+191: tmp = (z + a) - b else: tmp = x * (z / (x + t)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= 3.2e+191) tmp = Float64(Float64(z + a) - b); else tmp = Float64(x * Float64(z / Float64(x + t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= 3.2e+191) tmp = (z + a) - b; else tmp = x * (z / (x + t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, 3.2e+191], N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision], N[(x * N[(z / N[(x + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 3.2 \cdot 10^{+191}:\\
\;\;\;\;\left(z + a\right) - b\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{z}{x + t}\\
\end{array}
\end{array}
if x < 3.2000000000000002e191Initial program 61.7%
Taylor expanded in y around inf 59.7%
if 3.2000000000000002e191 < x Initial program 41.4%
Taylor expanded in z around inf 20.1%
*-commutative20.1%
+-commutative20.1%
associate-+r+20.1%
associate-/l*56.7%
+-commutative56.7%
+-commutative56.7%
+-commutative56.7%
+-commutative56.7%
associate-+l+56.7%
Simplified56.7%
clear-num56.6%
inv-pow56.6%
Applied egg-rr56.6%
unpow-156.6%
Simplified56.6%
Taylor expanded in y around 0 20.1%
associate-/l*56.7%
Simplified56.7%
Final simplification59.5%
(FPCore (x y z t a b) :precision binary64 (if (<= z -1.65e+69) z (if (<= z 580000000000.0) a z)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.65e+69) {
tmp = z;
} else if (z <= 580000000000.0) {
tmp = a;
} else {
tmp = z;
}
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 (z <= (-1.65d+69)) then
tmp = z
else if (z <= 580000000000.0d0) then
tmp = a
else
tmp = z
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 (z <= -1.65e+69) {
tmp = z;
} else if (z <= 580000000000.0) {
tmp = a;
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1.65e+69: tmp = z elif z <= 580000000000.0: tmp = a else: tmp = z return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.65e+69) tmp = z; elseif (z <= 580000000000.0) tmp = a; else tmp = z; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1.65e+69) tmp = z; elseif (z <= 580000000000.0) tmp = a; else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.65e+69], z, If[LessEqual[z, 580000000000.0], a, z]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.65 \cdot 10^{+69}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq 580000000000:\\
\;\;\;\;a\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if z < -1.6499999999999999e69 or 5.8e11 < z Initial program 49.0%
Taylor expanded in x around inf 55.1%
if -1.6499999999999999e69 < z < 5.8e11Initial program 68.7%
Taylor expanded in t around inf 39.7%
Final simplification46.3%
(FPCore (x y z t a b) :precision binary64 (if (<= x 3.9e+214) (- (+ z a) b) z))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= 3.9e+214) {
tmp = (z + a) - b;
} else {
tmp = z;
}
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 (x <= 3.9d+214) then
tmp = (z + a) - b
else
tmp = z
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 (x <= 3.9e+214) {
tmp = (z + a) - b;
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= 3.9e+214: tmp = (z + a) - b else: tmp = z return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= 3.9e+214) tmp = Float64(Float64(z + a) - b); else tmp = z; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= 3.9e+214) tmp = (z + a) - b; else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, 3.9e+214], N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision], z]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 3.9 \cdot 10^{+214}:\\
\;\;\;\;\left(z + a\right) - b\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if x < 3.90000000000000013e214Initial program 61.4%
Taylor expanded in y around inf 59.4%
if 3.90000000000000013e214 < x Initial program 43.6%
Taylor expanded in x around inf 54.3%
Final simplification59.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 60.2%
Taylor expanded in t around inf 30.0%
Final simplification30.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 2024044
(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)))