
(FPCore (x y z t a b c i j k) :precision binary64 (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
def code(x, y, z, t, a, b, c, i, j, k): return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 27 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k) :precision binary64 (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
def code(x, y, z, t, a, b, c, i, j, k): return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\end{array}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1
(-
(-
(+ (- (* (* (* (* x 18.0) y) z) t) (* t (* a 4.0))) (* b c))
(* (* x 4.0) i))
(* (* j 27.0) k))))
(if (<= t_1 INFINITY) t_1 (* x (- (* 18.0 (* t (* y z))) (* 4.0 i))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
}
return tmp;
}
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
tmp = 0.0;
if (t_1 <= Inf)
tmp = t_1;
else
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\
\end{array}
\end{array}
if (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) < +inf.0Initial program 95.4%
if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) Initial program 0.0%
Simplified21.1%
Taylor expanded in x around inf 79.0%
Final simplification94.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 18.0 (* z (* y (* x t))))))
(if (<= (* b c) -7.8e+121)
(* b c)
(if (<= (* b c) -124.0)
(* x (* i -4.0))
(if (<= (* b c) -2.25e-175)
t_1
(if (<= (* b c) 1.5e-79)
(* j (* k -27.0))
(if (<= (* b c) 1.7e+101) t_1 (* b c))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 18.0 * (z * (y * (x * t)));
double tmp;
if ((b * c) <= -7.8e+121) {
tmp = b * c;
} else if ((b * c) <= -124.0) {
tmp = x * (i * -4.0);
} else if ((b * c) <= -2.25e-175) {
tmp = t_1;
} else if ((b * c) <= 1.5e-79) {
tmp = j * (k * -27.0);
} else if ((b * c) <= 1.7e+101) {
tmp = t_1;
} else {
tmp = b * c;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = 18.0d0 * (z * (y * (x * t)))
if ((b * c) <= (-7.8d+121)) then
tmp = b * c
else if ((b * c) <= (-124.0d0)) then
tmp = x * (i * (-4.0d0))
else if ((b * c) <= (-2.25d-175)) then
tmp = t_1
else if ((b * c) <= 1.5d-79) then
tmp = j * (k * (-27.0d0))
else if ((b * c) <= 1.7d+101) then
tmp = t_1
else
tmp = b * c
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 18.0 * (z * (y * (x * t)));
double tmp;
if ((b * c) <= -7.8e+121) {
tmp = b * c;
} else if ((b * c) <= -124.0) {
tmp = x * (i * -4.0);
} else if ((b * c) <= -2.25e-175) {
tmp = t_1;
} else if ((b * c) <= 1.5e-79) {
tmp = j * (k * -27.0);
} else if ((b * c) <= 1.7e+101) {
tmp = t_1;
} else {
tmp = b * c;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = 18.0 * (z * (y * (x * t))) tmp = 0 if (b * c) <= -7.8e+121: tmp = b * c elif (b * c) <= -124.0: tmp = x * (i * -4.0) elif (b * c) <= -2.25e-175: tmp = t_1 elif (b * c) <= 1.5e-79: tmp = j * (k * -27.0) elif (b * c) <= 1.7e+101: tmp = t_1 else: tmp = b * c return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(18.0 * Float64(z * Float64(y * Float64(x * t)))) tmp = 0.0 if (Float64(b * c) <= -7.8e+121) tmp = Float64(b * c); elseif (Float64(b * c) <= -124.0) tmp = Float64(x * Float64(i * -4.0)); elseif (Float64(b * c) <= -2.25e-175) tmp = t_1; elseif (Float64(b * c) <= 1.5e-79) tmp = Float64(j * Float64(k * -27.0)); elseif (Float64(b * c) <= 1.7e+101) tmp = t_1; else tmp = Float64(b * c); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = 18.0 * (z * (y * (x * t)));
tmp = 0.0;
if ((b * c) <= -7.8e+121)
tmp = b * c;
elseif ((b * c) <= -124.0)
tmp = x * (i * -4.0);
elseif ((b * c) <= -2.25e-175)
tmp = t_1;
elseif ((b * c) <= 1.5e-79)
tmp = j * (k * -27.0);
elseif ((b * c) <= 1.7e+101)
tmp = t_1;
else
tmp = b * c;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(18.0 * N[(z * N[(y * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -7.8e+121], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -124.0], N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -2.25e-175], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], 1.5e-79], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1.7e+101], t$95$1, N[(b * c), $MachinePrecision]]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := 18 \cdot \left(z \cdot \left(y \cdot \left(x \cdot t\right)\right)\right)\\
\mathbf{if}\;b \cdot c \leq -7.8 \cdot 10^{+121}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -124:\\
\;\;\;\;x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq -2.25 \cdot 10^{-175}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \cdot c \leq 1.5 \cdot 10^{-79}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{elif}\;b \cdot c \leq 1.7 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -7.79999999999999967e121 or 1.70000000000000009e101 < (*.f64 b c) Initial program 84.5%
Simplified86.7%
associate-*r*85.6%
distribute-rgt-out--84.5%
associate-+l-84.5%
associate-*l*82.1%
fmm-def82.1%
associate-*l*82.1%
*-commutative82.1%
Applied egg-rr82.1%
fmm-undef82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in t around 0 77.9%
neg-mul-177.9%
distribute-rgt-neg-in77.9%
Simplified77.9%
Taylor expanded in b around inf 58.0%
if -7.79999999999999967e121 < (*.f64 b c) < -124Initial program 85.9%
Simplified90.6%
associate-*r*85.9%
distribute-rgt-out--85.9%
associate-+l-85.9%
associate-*l*90.4%
fmm-def90.4%
associate-*l*90.4%
*-commutative90.4%
Applied egg-rr90.4%
fmm-undef90.4%
*-commutative90.4%
Simplified90.4%
Taylor expanded in t around 0 81.3%
neg-mul-181.3%
distribute-rgt-neg-in81.3%
Simplified81.3%
Taylor expanded in i around inf 47.8%
*-commutative47.8%
*-commutative47.8%
associate-*r*47.8%
Simplified47.8%
if -124 < (*.f64 b c) < -2.24999999999999999e-175 or 1.5e-79 < (*.f64 b c) < 1.70000000000000009e101Initial program 87.5%
Simplified91.1%
associate-*r*91.1%
distribute-rgt-out--87.5%
associate-+l-87.5%
associate-*l*89.5%
fmm-def89.5%
associate-*l*89.4%
*-commutative89.4%
Applied egg-rr89.4%
fmm-undef89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in t around 0 84.5%
neg-mul-184.5%
distribute-rgt-neg-in84.5%
Simplified84.5%
Taylor expanded in y around inf 46.4%
associate-*r*44.6%
associate-*r*48.1%
associate-*r*48.1%
Simplified48.1%
if -2.24999999999999999e-175 < (*.f64 b c) < 1.5e-79Initial program 93.3%
Simplified91.2%
Taylor expanded in j around inf 39.1%
*-commutative39.1%
associate-*r*39.1%
*-commutative39.1%
Simplified39.1%
Final simplification48.4%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= (* b c) -1.3e+123)
(* b c)
(if (<= (* b c) -124.0)
(* x (* i -4.0))
(if (<= (* b c) -1e-173)
(* 18.0 (* z (* x (* y t))))
(if (<= (* b c) 1.35e-79)
(* j (* k -27.0))
(if (<= (* b c) 1.05e+101) (* 18.0 (* t (* z (* x y)))) (* b c)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -1.3e+123) {
tmp = b * c;
} else if ((b * c) <= -124.0) {
tmp = x * (i * -4.0);
} else if ((b * c) <= -1e-173) {
tmp = 18.0 * (z * (x * (y * t)));
} else if ((b * c) <= 1.35e-79) {
tmp = j * (k * -27.0);
} else if ((b * c) <= 1.05e+101) {
tmp = 18.0 * (t * (z * (x * y)));
} else {
tmp = b * c;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((b * c) <= (-1.3d+123)) then
tmp = b * c
else if ((b * c) <= (-124.0d0)) then
tmp = x * (i * (-4.0d0))
else if ((b * c) <= (-1d-173)) then
tmp = 18.0d0 * (z * (x * (y * t)))
else if ((b * c) <= 1.35d-79) then
tmp = j * (k * (-27.0d0))
else if ((b * c) <= 1.05d+101) then
tmp = 18.0d0 * (t * (z * (x * y)))
else
tmp = b * c
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -1.3e+123) {
tmp = b * c;
} else if ((b * c) <= -124.0) {
tmp = x * (i * -4.0);
} else if ((b * c) <= -1e-173) {
tmp = 18.0 * (z * (x * (y * t)));
} else if ((b * c) <= 1.35e-79) {
tmp = j * (k * -27.0);
} else if ((b * c) <= 1.05e+101) {
tmp = 18.0 * (t * (z * (x * y)));
} else {
tmp = b * c;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (b * c) <= -1.3e+123: tmp = b * c elif (b * c) <= -124.0: tmp = x * (i * -4.0) elif (b * c) <= -1e-173: tmp = 18.0 * (z * (x * (y * t))) elif (b * c) <= 1.35e-79: tmp = j * (k * -27.0) elif (b * c) <= 1.05e+101: tmp = 18.0 * (t * (z * (x * y))) else: tmp = b * c return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(b * c) <= -1.3e+123) tmp = Float64(b * c); elseif (Float64(b * c) <= -124.0) tmp = Float64(x * Float64(i * -4.0)); elseif (Float64(b * c) <= -1e-173) tmp = Float64(18.0 * Float64(z * Float64(x * Float64(y * t)))); elseif (Float64(b * c) <= 1.35e-79) tmp = Float64(j * Float64(k * -27.0)); elseif (Float64(b * c) <= 1.05e+101) tmp = Float64(18.0 * Float64(t * Float64(z * Float64(x * y)))); else tmp = Float64(b * c); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((b * c) <= -1.3e+123)
tmp = b * c;
elseif ((b * c) <= -124.0)
tmp = x * (i * -4.0);
elseif ((b * c) <= -1e-173)
tmp = 18.0 * (z * (x * (y * t)));
elseif ((b * c) <= 1.35e-79)
tmp = j * (k * -27.0);
elseif ((b * c) <= 1.05e+101)
tmp = 18.0 * (t * (z * (x * y)));
else
tmp = b * c;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(b * c), $MachinePrecision], -1.3e+123], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -124.0], N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1e-173], N[(18.0 * N[(z * N[(x * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1.35e-79], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1.05e+101], N[(18.0 * N[(t * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * c), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -1.3 \cdot 10^{+123}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -124:\\
\;\;\;\;x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{-173}:\\
\;\;\;\;18 \cdot \left(z \cdot \left(x \cdot \left(y \cdot t\right)\right)\right)\\
\mathbf{elif}\;b \cdot c \leq 1.35 \cdot 10^{-79}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{elif}\;b \cdot c \leq 1.05 \cdot 10^{+101}:\\
\;\;\;\;18 \cdot \left(t \cdot \left(z \cdot \left(x \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -1.29999999999999993e123 or 1.05e101 < (*.f64 b c) Initial program 84.5%
Simplified86.7%
associate-*r*85.6%
distribute-rgt-out--84.5%
associate-+l-84.5%
associate-*l*82.1%
fmm-def82.1%
associate-*l*82.1%
*-commutative82.1%
Applied egg-rr82.1%
fmm-undef82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in t around 0 77.9%
neg-mul-177.9%
distribute-rgt-neg-in77.9%
Simplified77.9%
Taylor expanded in b around inf 58.0%
if -1.29999999999999993e123 < (*.f64 b c) < -124Initial program 85.9%
Simplified90.6%
associate-*r*85.9%
distribute-rgt-out--85.9%
associate-+l-85.9%
associate-*l*90.4%
fmm-def90.4%
associate-*l*90.4%
*-commutative90.4%
Applied egg-rr90.4%
fmm-undef90.4%
*-commutative90.4%
Simplified90.4%
Taylor expanded in t around 0 81.3%
neg-mul-181.3%
distribute-rgt-neg-in81.3%
Simplified81.3%
Taylor expanded in i around inf 47.8%
*-commutative47.8%
*-commutative47.8%
associate-*r*47.8%
Simplified47.8%
if -124 < (*.f64 b c) < -1e-173Initial program 86.3%
Simplified89.8%
associate-*r*89.8%
distribute-rgt-out--86.3%
associate-+l-86.3%
associate-*l*90.1%
fmm-def90.1%
associate-*l*90.0%
*-commutative90.0%
Applied egg-rr90.0%
fmm-undef90.0%
*-commutative90.0%
Simplified90.0%
Taylor expanded in t around 0 87.0%
neg-mul-187.0%
distribute-rgt-neg-in87.0%
Simplified87.0%
Taylor expanded in y around inf 43.4%
associate-*r*39.9%
associate-*r*46.6%
associate-*r*46.7%
Simplified46.7%
Taylor expanded in t around 0 46.6%
associate-*r*46.7%
*-commutative46.7%
associate-*l*46.6%
Simplified46.6%
if -1e-173 < (*.f64 b c) < 1.3500000000000001e-79Initial program 93.3%
Simplified91.2%
Taylor expanded in j around inf 39.1%
*-commutative39.1%
associate-*r*39.1%
*-commutative39.1%
Simplified39.1%
if 1.3500000000000001e-79 < (*.f64 b c) < 1.05e101Initial program 88.8%
Simplified92.5%
associate-*r*92.5%
distribute-rgt-out--88.8%
associate-+l-88.8%
associate-*l*88.8%
fmm-def88.8%
associate-*l*88.8%
*-commutative88.8%
Applied egg-rr88.8%
fmm-undef88.8%
*-commutative88.8%
Simplified88.8%
Taylor expanded in t around 0 81.9%
neg-mul-181.9%
distribute-rgt-neg-in81.9%
Simplified81.9%
Taylor expanded in y around inf 49.6%
associate-*r*49.7%
*-commutative49.7%
Simplified49.7%
Final simplification48.4%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= (* b c) -2.5e+120)
(* b c)
(if (<= (* b c) -116.0)
(* x (* i -4.0))
(if (<= (* b c) -3.7e-175)
(* 18.0 (* t (* x (* y z))))
(if (<= (* b c) 9.6e-80)
(* j (* k -27.0))
(if (<= (* b c) 3.1e+100) (* 18.0 (* t (* z (* x y)))) (* b c)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -2.5e+120) {
tmp = b * c;
} else if ((b * c) <= -116.0) {
tmp = x * (i * -4.0);
} else if ((b * c) <= -3.7e-175) {
tmp = 18.0 * (t * (x * (y * z)));
} else if ((b * c) <= 9.6e-80) {
tmp = j * (k * -27.0);
} else if ((b * c) <= 3.1e+100) {
tmp = 18.0 * (t * (z * (x * y)));
} else {
tmp = b * c;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((b * c) <= (-2.5d+120)) then
tmp = b * c
else if ((b * c) <= (-116.0d0)) then
tmp = x * (i * (-4.0d0))
else if ((b * c) <= (-3.7d-175)) then
tmp = 18.0d0 * (t * (x * (y * z)))
else if ((b * c) <= 9.6d-80) then
tmp = j * (k * (-27.0d0))
else if ((b * c) <= 3.1d+100) then
tmp = 18.0d0 * (t * (z * (x * y)))
else
tmp = b * c
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -2.5e+120) {
tmp = b * c;
} else if ((b * c) <= -116.0) {
tmp = x * (i * -4.0);
} else if ((b * c) <= -3.7e-175) {
tmp = 18.0 * (t * (x * (y * z)));
} else if ((b * c) <= 9.6e-80) {
tmp = j * (k * -27.0);
} else if ((b * c) <= 3.1e+100) {
tmp = 18.0 * (t * (z * (x * y)));
} else {
tmp = b * c;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (b * c) <= -2.5e+120: tmp = b * c elif (b * c) <= -116.0: tmp = x * (i * -4.0) elif (b * c) <= -3.7e-175: tmp = 18.0 * (t * (x * (y * z))) elif (b * c) <= 9.6e-80: tmp = j * (k * -27.0) elif (b * c) <= 3.1e+100: tmp = 18.0 * (t * (z * (x * y))) else: tmp = b * c return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(b * c) <= -2.5e+120) tmp = Float64(b * c); elseif (Float64(b * c) <= -116.0) tmp = Float64(x * Float64(i * -4.0)); elseif (Float64(b * c) <= -3.7e-175) tmp = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))); elseif (Float64(b * c) <= 9.6e-80) tmp = Float64(j * Float64(k * -27.0)); elseif (Float64(b * c) <= 3.1e+100) tmp = Float64(18.0 * Float64(t * Float64(z * Float64(x * y)))); else tmp = Float64(b * c); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((b * c) <= -2.5e+120)
tmp = b * c;
elseif ((b * c) <= -116.0)
tmp = x * (i * -4.0);
elseif ((b * c) <= -3.7e-175)
tmp = 18.0 * (t * (x * (y * z)));
elseif ((b * c) <= 9.6e-80)
tmp = j * (k * -27.0);
elseif ((b * c) <= 3.1e+100)
tmp = 18.0 * (t * (z * (x * y)));
else
tmp = b * c;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(b * c), $MachinePrecision], -2.5e+120], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -116.0], N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -3.7e-175], N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 9.6e-80], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 3.1e+100], N[(18.0 * N[(t * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * c), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -2.5 \cdot 10^{+120}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -116:\\
\;\;\;\;x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq -3.7 \cdot 10^{-175}:\\
\;\;\;\;18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;b \cdot c \leq 9.6 \cdot 10^{-80}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{elif}\;b \cdot c \leq 3.1 \cdot 10^{+100}:\\
\;\;\;\;18 \cdot \left(t \cdot \left(z \cdot \left(x \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -2.50000000000000009e120 or 3.10000000000000007e100 < (*.f64 b c) Initial program 84.5%
Simplified86.7%
associate-*r*85.6%
distribute-rgt-out--84.5%
associate-+l-84.5%
associate-*l*82.1%
fmm-def82.1%
associate-*l*82.1%
*-commutative82.1%
Applied egg-rr82.1%
fmm-undef82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in t around 0 77.9%
neg-mul-177.9%
distribute-rgt-neg-in77.9%
Simplified77.9%
Taylor expanded in b around inf 58.0%
if -2.50000000000000009e120 < (*.f64 b c) < -116Initial program 85.9%
Simplified90.6%
associate-*r*85.9%
distribute-rgt-out--85.9%
associate-+l-85.9%
associate-*l*90.4%
fmm-def90.4%
associate-*l*90.4%
*-commutative90.4%
Applied egg-rr90.4%
fmm-undef90.4%
*-commutative90.4%
Simplified90.4%
Taylor expanded in t around 0 81.3%
neg-mul-181.3%
distribute-rgt-neg-in81.3%
Simplified81.3%
Taylor expanded in i around inf 47.8%
*-commutative47.8%
*-commutative47.8%
associate-*r*47.8%
Simplified47.8%
if -116 < (*.f64 b c) < -3.69999999999999998e-175Initial program 86.3%
Simplified89.8%
associate-*r*89.8%
distribute-rgt-out--86.3%
associate-+l-86.3%
associate-*l*90.1%
fmm-def90.1%
associate-*l*90.0%
*-commutative90.0%
Applied egg-rr90.0%
fmm-undef90.0%
*-commutative90.0%
Simplified90.0%
Taylor expanded in t around 0 87.0%
neg-mul-187.0%
distribute-rgt-neg-in87.0%
Simplified87.0%
Taylor expanded in y around inf 43.4%
if -3.69999999999999998e-175 < (*.f64 b c) < 9.5999999999999996e-80Initial program 93.3%
Simplified91.2%
Taylor expanded in j around inf 39.1%
*-commutative39.1%
associate-*r*39.1%
*-commutative39.1%
Simplified39.1%
if 9.5999999999999996e-80 < (*.f64 b c) < 3.10000000000000007e100Initial program 88.8%
Simplified92.5%
associate-*r*92.5%
distribute-rgt-out--88.8%
associate-+l-88.8%
associate-*l*88.8%
fmm-def88.8%
associate-*l*88.8%
*-commutative88.8%
Applied egg-rr88.8%
fmm-undef88.8%
*-commutative88.8%
Simplified88.8%
Taylor expanded in t around 0 81.9%
neg-mul-181.9%
distribute-rgt-neg-in81.9%
Simplified81.9%
Taylor expanded in y around inf 49.6%
associate-*r*49.7%
*-commutative49.7%
Simplified49.7%
Final simplification48.0%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 18.0 (* t (* x (* y z))))))
(if (<= (* b c) -1.05e+122)
(* b c)
(if (<= (* b c) -120.0)
(* x (* i -4.0))
(if (<= (* b c) -1.16e-173)
t_1
(if (<= (* b c) 1.6e-79)
(* j (* k -27.0))
(if (<= (* b c) 1.85e+98) t_1 (* b c))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 18.0 * (t * (x * (y * z)));
double tmp;
if ((b * c) <= -1.05e+122) {
tmp = b * c;
} else if ((b * c) <= -120.0) {
tmp = x * (i * -4.0);
} else if ((b * c) <= -1.16e-173) {
tmp = t_1;
} else if ((b * c) <= 1.6e-79) {
tmp = j * (k * -27.0);
} else if ((b * c) <= 1.85e+98) {
tmp = t_1;
} else {
tmp = b * c;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = 18.0d0 * (t * (x * (y * z)))
if ((b * c) <= (-1.05d+122)) then
tmp = b * c
else if ((b * c) <= (-120.0d0)) then
tmp = x * (i * (-4.0d0))
else if ((b * c) <= (-1.16d-173)) then
tmp = t_1
else if ((b * c) <= 1.6d-79) then
tmp = j * (k * (-27.0d0))
else if ((b * c) <= 1.85d+98) then
tmp = t_1
else
tmp = b * c
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 18.0 * (t * (x * (y * z)));
double tmp;
if ((b * c) <= -1.05e+122) {
tmp = b * c;
} else if ((b * c) <= -120.0) {
tmp = x * (i * -4.0);
} else if ((b * c) <= -1.16e-173) {
tmp = t_1;
} else if ((b * c) <= 1.6e-79) {
tmp = j * (k * -27.0);
} else if ((b * c) <= 1.85e+98) {
tmp = t_1;
} else {
tmp = b * c;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = 18.0 * (t * (x * (y * z))) tmp = 0 if (b * c) <= -1.05e+122: tmp = b * c elif (b * c) <= -120.0: tmp = x * (i * -4.0) elif (b * c) <= -1.16e-173: tmp = t_1 elif (b * c) <= 1.6e-79: tmp = j * (k * -27.0) elif (b * c) <= 1.85e+98: tmp = t_1 else: tmp = b * c return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))) tmp = 0.0 if (Float64(b * c) <= -1.05e+122) tmp = Float64(b * c); elseif (Float64(b * c) <= -120.0) tmp = Float64(x * Float64(i * -4.0)); elseif (Float64(b * c) <= -1.16e-173) tmp = t_1; elseif (Float64(b * c) <= 1.6e-79) tmp = Float64(j * Float64(k * -27.0)); elseif (Float64(b * c) <= 1.85e+98) tmp = t_1; else tmp = Float64(b * c); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = 18.0 * (t * (x * (y * z)));
tmp = 0.0;
if ((b * c) <= -1.05e+122)
tmp = b * c;
elseif ((b * c) <= -120.0)
tmp = x * (i * -4.0);
elseif ((b * c) <= -1.16e-173)
tmp = t_1;
elseif ((b * c) <= 1.6e-79)
tmp = j * (k * -27.0);
elseif ((b * c) <= 1.85e+98)
tmp = t_1;
else
tmp = b * c;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -1.05e+122], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -120.0], N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1.16e-173], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], 1.6e-79], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1.85e+98], t$95$1, N[(b * c), $MachinePrecision]]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{if}\;b \cdot c \leq -1.05 \cdot 10^{+122}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -120:\\
\;\;\;\;x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq -1.16 \cdot 10^{-173}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \cdot c \leq 1.6 \cdot 10^{-79}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{elif}\;b \cdot c \leq 1.85 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -1.05000000000000008e122 or 1.8499999999999999e98 < (*.f64 b c) Initial program 84.5%
Simplified86.7%
associate-*r*85.6%
distribute-rgt-out--84.5%
associate-+l-84.5%
associate-*l*82.1%
fmm-def82.1%
associate-*l*82.1%
*-commutative82.1%
Applied egg-rr82.1%
fmm-undef82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in t around 0 77.9%
neg-mul-177.9%
distribute-rgt-neg-in77.9%
Simplified77.9%
Taylor expanded in b around inf 58.0%
if -1.05000000000000008e122 < (*.f64 b c) < -120Initial program 85.9%
Simplified90.6%
associate-*r*85.9%
distribute-rgt-out--85.9%
associate-+l-85.9%
associate-*l*90.4%
fmm-def90.4%
associate-*l*90.4%
*-commutative90.4%
Applied egg-rr90.4%
fmm-undef90.4%
*-commutative90.4%
Simplified90.4%
Taylor expanded in t around 0 81.3%
neg-mul-181.3%
distribute-rgt-neg-in81.3%
Simplified81.3%
Taylor expanded in i around inf 47.8%
*-commutative47.8%
*-commutative47.8%
associate-*r*47.8%
Simplified47.8%
if -120 < (*.f64 b c) < -1.16000000000000004e-173 or 1.59999999999999994e-79 < (*.f64 b c) < 1.8499999999999999e98Initial program 87.5%
Simplified91.1%
associate-*r*91.1%
distribute-rgt-out--87.5%
associate-+l-87.5%
associate-*l*89.5%
fmm-def89.5%
associate-*l*89.4%
*-commutative89.4%
Applied egg-rr89.4%
fmm-undef89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in t around 0 84.5%
neg-mul-184.5%
distribute-rgt-neg-in84.5%
Simplified84.5%
Taylor expanded in y around inf 46.4%
if -1.16000000000000004e-173 < (*.f64 b c) < 1.59999999999999994e-79Initial program 93.3%
Simplified91.2%
Taylor expanded in j around inf 39.1%
*-commutative39.1%
associate-*r*39.1%
*-commutative39.1%
Simplified39.1%
Final simplification48.0%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 18.0 (* z (* y (* x t))))))
(if (<= t -2.2e+122)
t_1
(if (<= t -5.8e-171)
(* i (* -27.0 (/ (* j k) i)))
(if (<= t -5.5e-235)
(* b c)
(if (<= t -1e-302)
(* x (* i -4.0))
(if (<= t 1.05e+57) (* (* j k) -27.0) t_1)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 18.0 * (z * (y * (x * t)));
double tmp;
if (t <= -2.2e+122) {
tmp = t_1;
} else if (t <= -5.8e-171) {
tmp = i * (-27.0 * ((j * k) / i));
} else if (t <= -5.5e-235) {
tmp = b * c;
} else if (t <= -1e-302) {
tmp = x * (i * -4.0);
} else if (t <= 1.05e+57) {
tmp = (j * k) * -27.0;
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = 18.0d0 * (z * (y * (x * t)))
if (t <= (-2.2d+122)) then
tmp = t_1
else if (t <= (-5.8d-171)) then
tmp = i * ((-27.0d0) * ((j * k) / i))
else if (t <= (-5.5d-235)) then
tmp = b * c
else if (t <= (-1d-302)) then
tmp = x * (i * (-4.0d0))
else if (t <= 1.05d+57) then
tmp = (j * k) * (-27.0d0)
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 18.0 * (z * (y * (x * t)));
double tmp;
if (t <= -2.2e+122) {
tmp = t_1;
} else if (t <= -5.8e-171) {
tmp = i * (-27.0 * ((j * k) / i));
} else if (t <= -5.5e-235) {
tmp = b * c;
} else if (t <= -1e-302) {
tmp = x * (i * -4.0);
} else if (t <= 1.05e+57) {
tmp = (j * k) * -27.0;
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = 18.0 * (z * (y * (x * t))) tmp = 0 if t <= -2.2e+122: tmp = t_1 elif t <= -5.8e-171: tmp = i * (-27.0 * ((j * k) / i)) elif t <= -5.5e-235: tmp = b * c elif t <= -1e-302: tmp = x * (i * -4.0) elif t <= 1.05e+57: tmp = (j * k) * -27.0 else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(18.0 * Float64(z * Float64(y * Float64(x * t)))) tmp = 0.0 if (t <= -2.2e+122) tmp = t_1; elseif (t <= -5.8e-171) tmp = Float64(i * Float64(-27.0 * Float64(Float64(j * k) / i))); elseif (t <= -5.5e-235) tmp = Float64(b * c); elseif (t <= -1e-302) tmp = Float64(x * Float64(i * -4.0)); elseif (t <= 1.05e+57) tmp = Float64(Float64(j * k) * -27.0); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = 18.0 * (z * (y * (x * t)));
tmp = 0.0;
if (t <= -2.2e+122)
tmp = t_1;
elseif (t <= -5.8e-171)
tmp = i * (-27.0 * ((j * k) / i));
elseif (t <= -5.5e-235)
tmp = b * c;
elseif (t <= -1e-302)
tmp = x * (i * -4.0);
elseif (t <= 1.05e+57)
tmp = (j * k) * -27.0;
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(18.0 * N[(z * N[(y * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.2e+122], t$95$1, If[LessEqual[t, -5.8e-171], N[(i * N[(-27.0 * N[(N[(j * k), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.5e-235], N[(b * c), $MachinePrecision], If[LessEqual[t, -1e-302], N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e+57], N[(N[(j * k), $MachinePrecision] * -27.0), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := 18 \cdot \left(z \cdot \left(y \cdot \left(x \cdot t\right)\right)\right)\\
\mathbf{if}\;t \leq -2.2 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -5.8 \cdot 10^{-171}:\\
\;\;\;\;i \cdot \left(-27 \cdot \frac{j \cdot k}{i}\right)\\
\mathbf{elif}\;t \leq -5.5 \cdot 10^{-235}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-302}:\\
\;\;\;\;x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+57}:\\
\;\;\;\;\left(j \cdot k\right) \cdot -27\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.1999999999999999e122 or 1.04999999999999995e57 < t Initial program 86.5%
Simplified87.9%
associate-*r*90.1%
distribute-rgt-out--86.5%
associate-+l-86.5%
associate-*l*73.8%
fmm-def73.8%
associate-*l*73.8%
*-commutative73.8%
Applied egg-rr73.8%
fmm-undef73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in t around 0 62.6%
neg-mul-162.6%
distribute-rgt-neg-in62.6%
Simplified62.6%
Taylor expanded in y around inf 49.6%
associate-*r*50.8%
associate-*r*53.1%
associate-*r*62.4%
Simplified62.4%
if -2.1999999999999999e122 < t < -5.7999999999999997e-171Initial program 94.5%
Simplified91.1%
Taylor expanded in i around inf 61.6%
associate-*r*61.6%
*-commutative61.6%
associate-*r*61.6%
*-commutative61.6%
*-commutative61.6%
Simplified61.6%
Taylor expanded in i around inf 64.8%
Taylor expanded in j around inf 40.5%
if -5.7999999999999997e-171 < t < -5.4999999999999998e-235Initial program 88.5%
Simplified88.8%
associate-*r*88.5%
distribute-rgt-out--88.5%
associate-+l-88.5%
associate-*l*92.2%
fmm-def92.2%
associate-*l*92.2%
*-commutative92.2%
Applied egg-rr92.2%
fmm-undef92.2%
*-commutative92.2%
Simplified92.2%
Taylor expanded in t around 0 92.2%
neg-mul-192.2%
distribute-rgt-neg-in92.2%
Simplified92.2%
Taylor expanded in b around inf 57.3%
if -5.4999999999999998e-235 < t < -9.9999999999999996e-303Initial program 72.5%
Simplified81.8%
associate-*r*72.5%
distribute-rgt-out--72.5%
associate-+l-72.5%
associate-*l*90.3%
fmm-def90.3%
associate-*l*90.2%
*-commutative90.2%
Applied egg-rr90.2%
fmm-undef90.2%
*-commutative90.2%
Simplified90.2%
Taylor expanded in t around 0 90.2%
neg-mul-190.2%
distribute-rgt-neg-in90.2%
Simplified90.2%
Taylor expanded in i around inf 52.3%
*-commutative52.3%
*-commutative52.3%
associate-*r*52.3%
Simplified52.3%
if -9.9999999999999996e-303 < t < 1.04999999999999995e57Initial program 90.2%
Simplified94.4%
Taylor expanded in j around inf 35.8%
Final simplification48.9%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= y -5.6e+258)
(-
(+ (* b c) (* y (+ (* -4.0 (/ (* t a) y)) (* 18.0 (* t (* x z))))))
(* 27.0 (* j k)))
(-
(+ (* b c) (* t (- (* (* x 18.0) (* y z)) (* a 4.0))))
(+ (* x (* 4.0 i)) (* j (* 27.0 k))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (y <= -5.6e+258) {
tmp = ((b * c) + (y * ((-4.0 * ((t * a) / y)) + (18.0 * (t * (x * z)))))) - (27.0 * (j * k));
} else {
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k)));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (y <= (-5.6d+258)) then
tmp = ((b * c) + (y * (((-4.0d0) * ((t * a) / y)) + (18.0d0 * (t * (x * z)))))) - (27.0d0 * (j * k))
else
tmp = ((b * c) + (t * (((x * 18.0d0) * (y * z)) - (a * 4.0d0)))) - ((x * (4.0d0 * i)) + (j * (27.0d0 * k)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (y <= -5.6e+258) {
tmp = ((b * c) + (y * ((-4.0 * ((t * a) / y)) + (18.0 * (t * (x * z)))))) - (27.0 * (j * k));
} else {
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k)));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if y <= -5.6e+258: tmp = ((b * c) + (y * ((-4.0 * ((t * a) / y)) + (18.0 * (t * (x * z)))))) - (27.0 * (j * k)) else: tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (y <= -5.6e+258) tmp = Float64(Float64(Float64(b * c) + Float64(y * Float64(Float64(-4.0 * Float64(Float64(t * a) / y)) + Float64(18.0 * Float64(t * Float64(x * z)))))) - Float64(27.0 * Float64(j * k))); else tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(x * 18.0) * Float64(y * z)) - Float64(a * 4.0)))) - Float64(Float64(x * Float64(4.0 * i)) + Float64(j * Float64(27.0 * k)))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (y <= -5.6e+258)
tmp = ((b * c) + (y * ((-4.0 * ((t * a) / y)) + (18.0 * (t * (x * z)))))) - (27.0 * (j * k));
else
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[y, -5.6e+258], N[(N[(N[(b * c), $MachinePrecision] + N[(y * N[(N[(-4.0 * N[(N[(t * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(x * 18.0), $MachinePrecision] * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision] + N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.6 \cdot 10^{+258}:\\
\;\;\;\;\left(b \cdot c + y \cdot \left(-4 \cdot \frac{t \cdot a}{y} + 18 \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\right) - 27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right)\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)\\
\end{array}
\end{array}
if y < -5.59999999999999964e258Initial program 64.2%
Simplified64.2%
Taylor expanded in i around 0 71.3%
Taylor expanded in y around inf 78.5%
if -5.59999999999999964e258 < y Initial program 89.7%
Simplified91.0%
Final simplification90.4%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= t -2700000000.0) (not (<= t 1.7e+71))) (- (+ (* b c) (* t (- (* 18.0 (* z (* x y))) (* a 4.0)))) (* 27.0 (* j k))) (- (- (* b c) (* 4.0 (+ (* t a) (* x i)))) (* (* j 27.0) k))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -2700000000.0) || !(t <= 1.7e+71)) {
tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (a * 4.0)))) - (27.0 * (j * k));
} else {
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((t <= (-2700000000.0d0)) .or. (.not. (t <= 1.7d+71))) then
tmp = ((b * c) + (t * ((18.0d0 * (z * (x * y))) - (a * 4.0d0)))) - (27.0d0 * (j * k))
else
tmp = ((b * c) - (4.0d0 * ((t * a) + (x * i)))) - ((j * 27.0d0) * k)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -2700000000.0) || !(t <= 1.7e+71)) {
tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (a * 4.0)))) - (27.0 * (j * k));
} else {
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (t <= -2700000000.0) or not (t <= 1.7e+71): tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (a * 4.0)))) - (27.0 * (j * k)) else: tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -2700000000.0) || !(t <= 1.7e+71)) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(z * Float64(x * y))) - Float64(a * 4.0)))) - Float64(27.0 * Float64(j * k))); else tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(Float64(t * a) + Float64(x * i)))) - Float64(Float64(j * 27.0) * k)); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((t <= -2700000000.0) || ~((t <= 1.7e+71)))
tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (a * 4.0)))) - (27.0 * (j * k));
else
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -2700000000.0], N[Not[LessEqual[t, 1.7e+71]], $MachinePrecision]], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2700000000 \lor \neg \left(t \leq 1.7 \cdot 10^{+71}\right):\\
\;\;\;\;\left(b \cdot c + t \cdot \left(18 \cdot \left(z \cdot \left(x \cdot y\right)\right) - a \cdot 4\right)\right) - 27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a + x \cdot i\right)\right) - \left(j \cdot 27\right) \cdot k\\
\end{array}
\end{array}
if t < -2.7e9 or 1.6999999999999999e71 < t Initial program 88.4%
Simplified87.7%
Taylor expanded in i around 0 84.0%
pow184.0%
associate-*r*84.0%
Applied egg-rr84.0%
unpow184.0%
associate-*r*84.0%
associate-*r*87.6%
Simplified87.6%
if -2.7e9 < t < 1.6999999999999999e71Initial program 88.3%
Taylor expanded in y around 0 91.2%
distribute-lft-out91.2%
*-commutative91.2%
Simplified91.2%
Final simplification89.7%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j 27.0) k)))
(if (<= t -2.3e+47)
(-
(- (* t (- (* a (- 4.0)) (* (* y z) (* x -18.0)))) (* (* x 4.0) i))
t_1)
(if (<= t 1.65e+71)
(- (- (* b c) (* 4.0 (+ (* t a) (* x i)))) t_1)
(-
(+ (* b c) (* t (- (* 18.0 (* z (* x y))) (* a 4.0))))
(* 27.0 (* j k)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (t <= -2.3e+47) {
tmp = ((t * ((a * -4.0) - ((y * z) * (x * -18.0)))) - ((x * 4.0) * i)) - t_1;
} else if (t <= 1.65e+71) {
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - t_1;
} else {
tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (a * 4.0)))) - (27.0 * (j * k));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (j * 27.0d0) * k
if (t <= (-2.3d+47)) then
tmp = ((t * ((a * -4.0d0) - ((y * z) * (x * (-18.0d0))))) - ((x * 4.0d0) * i)) - t_1
else if (t <= 1.65d+71) then
tmp = ((b * c) - (4.0d0 * ((t * a) + (x * i)))) - t_1
else
tmp = ((b * c) + (t * ((18.0d0 * (z * (x * y))) - (a * 4.0d0)))) - (27.0d0 * (j * k))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (t <= -2.3e+47) {
tmp = ((t * ((a * -4.0) - ((y * z) * (x * -18.0)))) - ((x * 4.0) * i)) - t_1;
} else if (t <= 1.65e+71) {
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - t_1;
} else {
tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (a * 4.0)))) - (27.0 * (j * k));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * 27.0) * k tmp = 0 if t <= -2.3e+47: tmp = ((t * ((a * -4.0) - ((y * z) * (x * -18.0)))) - ((x * 4.0) * i)) - t_1 elif t <= 1.65e+71: tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - t_1 else: tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (a * 4.0)))) - (27.0 * (j * k)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if (t <= -2.3e+47) tmp = Float64(Float64(Float64(t * Float64(Float64(a * Float64(-4.0)) - Float64(Float64(y * z) * Float64(x * -18.0)))) - Float64(Float64(x * 4.0) * i)) - t_1); elseif (t <= 1.65e+71) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(Float64(t * a) + Float64(x * i)))) - t_1); else tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(z * Float64(x * y))) - Float64(a * 4.0)))) - Float64(27.0 * Float64(j * k))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (j * 27.0) * k;
tmp = 0.0;
if (t <= -2.3e+47)
tmp = ((t * ((a * -4.0) - ((y * z) * (x * -18.0)))) - ((x * 4.0) * i)) - t_1;
elseif (t <= 1.65e+71)
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - t_1;
else
tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (a * 4.0)))) - (27.0 * (j * k));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t, -2.3e+47], N[(N[(N[(t * N[(N[(a * (-4.0)), $MachinePrecision] - N[(N[(y * z), $MachinePrecision] * N[(x * -18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t, 1.65e+71], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t \leq -2.3 \cdot 10^{+47}:\\
\;\;\;\;\left(t \cdot \left(a \cdot \left(-4\right) - \left(y \cdot z\right) \cdot \left(x \cdot -18\right)\right) - \left(x \cdot 4\right) \cdot i\right) - t\_1\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{+71}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a + x \cdot i\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(18 \cdot \left(z \cdot \left(x \cdot y\right)\right) - a \cdot 4\right)\right) - 27 \cdot \left(j \cdot k\right)\\
\end{array}
\end{array}
if t < -2.2999999999999999e47Initial program 86.9%
Taylor expanded in t around -inf 91.6%
associate-*r*91.6%
neg-mul-191.6%
cancel-sign-sub-inv91.6%
metadata-eval91.6%
*-commutative91.6%
associate-*r*91.6%
Simplified91.6%
if -2.2999999999999999e47 < t < 1.6499999999999999e71Initial program 88.8%
Taylor expanded in y around 0 90.3%
distribute-lft-out90.3%
*-commutative90.3%
Simplified90.3%
if 1.6499999999999999e71 < t Initial program 88.3%
Simplified88.5%
Taylor expanded in i around 0 85.0%
pow185.0%
associate-*r*84.9%
Applied egg-rr84.9%
unpow184.9%
associate-*r*85.0%
associate-*r*86.7%
Simplified86.7%
Final simplification89.8%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 27.0 (* j k)))
(t_2 (* t (- (* 18.0 (* x (* y z))) (* a 4.0)))))
(if (<= t -4.2e+52)
(- t_2 t_1)
(if (<= t 1.9e+71)
(- (- (* b c) (* 4.0 (+ (* t a) (* x i)))) (* (* j 27.0) k))
(- (+ (* b c) t_2) t_1)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 27.0 * (j * k);
double t_2 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
double tmp;
if (t <= -4.2e+52) {
tmp = t_2 - t_1;
} else if (t <= 1.9e+71) {
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k);
} else {
tmp = ((b * c) + t_2) - t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 27.0d0 * (j * k)
t_2 = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
if (t <= (-4.2d+52)) then
tmp = t_2 - t_1
else if (t <= 1.9d+71) then
tmp = ((b * c) - (4.0d0 * ((t * a) + (x * i)))) - ((j * 27.0d0) * k)
else
tmp = ((b * c) + t_2) - t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 27.0 * (j * k);
double t_2 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
double tmp;
if (t <= -4.2e+52) {
tmp = t_2 - t_1;
} else if (t <= 1.9e+71) {
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k);
} else {
tmp = ((b * c) + t_2) - t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = 27.0 * (j * k) t_2 = t * ((18.0 * (x * (y * z))) - (a * 4.0)) tmp = 0 if t <= -4.2e+52: tmp = t_2 - t_1 elif t <= 1.9e+71: tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k) else: tmp = ((b * c) + t_2) - t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(27.0 * Float64(j * k)) t_2 = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0))) tmp = 0.0 if (t <= -4.2e+52) tmp = Float64(t_2 - t_1); elseif (t <= 1.9e+71) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(Float64(t * a) + Float64(x * i)))) - Float64(Float64(j * 27.0) * k)); else tmp = Float64(Float64(Float64(b * c) + t_2) - t_1); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = 27.0 * (j * k);
t_2 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
tmp = 0.0;
if (t <= -4.2e+52)
tmp = t_2 - t_1;
elseif (t <= 1.9e+71)
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k);
else
tmp = ((b * c) + t_2) - t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.2e+52], N[(t$95$2 - t$95$1), $MachinePrecision], If[LessEqual[t, 1.9e+71], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + t$95$2), $MachinePrecision] - t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := 27 \cdot \left(j \cdot k\right)\\
t_2 := t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -4.2 \cdot 10^{+52}:\\
\;\;\;\;t\_2 - t\_1\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{+71}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a + x \cdot i\right)\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + t\_2\right) - t\_1\\
\end{array}
\end{array}
if t < -4.2e52Initial program 86.9%
Simplified89.2%
Taylor expanded in i around 0 84.6%
Taylor expanded in b around 0 87.1%
if -4.2e52 < t < 1.9e71Initial program 88.8%
Taylor expanded in y around 0 90.3%
distribute-lft-out90.3%
*-commutative90.3%
Simplified90.3%
if 1.9e71 < t Initial program 88.3%
Simplified88.5%
Taylor expanded in i around 0 85.0%
Final simplification88.7%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* t (- (* 18.0 (* x (* y z))) (* a 4.0)))))
(if (<= t -2.2e+53)
(- t_1 (* 27.0 (* j k)))
(if (<= t 4.2e+59)
(- (- (* b c) (* 4.0 (+ (* t a) (* x i)))) (* (* j 27.0) k))
(- (+ (* b c) t_1) (* 4.0 (* x i)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
double tmp;
if (t <= -2.2e+53) {
tmp = t_1 - (27.0 * (j * k));
} else if (t <= 4.2e+59) {
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k);
} else {
tmp = ((b * c) + t_1) - (4.0 * (x * i));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
if (t <= (-2.2d+53)) then
tmp = t_1 - (27.0d0 * (j * k))
else if (t <= 4.2d+59) then
tmp = ((b * c) - (4.0d0 * ((t * a) + (x * i)))) - ((j * 27.0d0) * k)
else
tmp = ((b * c) + t_1) - (4.0d0 * (x * i))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
double tmp;
if (t <= -2.2e+53) {
tmp = t_1 - (27.0 * (j * k));
} else if (t <= 4.2e+59) {
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k);
} else {
tmp = ((b * c) + t_1) - (4.0 * (x * i));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = t * ((18.0 * (x * (y * z))) - (a * 4.0)) tmp = 0 if t <= -2.2e+53: tmp = t_1 - (27.0 * (j * k)) elif t <= 4.2e+59: tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k) else: tmp = ((b * c) + t_1) - (4.0 * (x * i)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0))) tmp = 0.0 if (t <= -2.2e+53) tmp = Float64(t_1 - Float64(27.0 * Float64(j * k))); elseif (t <= 4.2e+59) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(Float64(t * a) + Float64(x * i)))) - Float64(Float64(j * 27.0) * k)); else tmp = Float64(Float64(Float64(b * c) + t_1) - Float64(4.0 * Float64(x * i))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
tmp = 0.0;
if (t <= -2.2e+53)
tmp = t_1 - (27.0 * (j * k));
elseif (t <= 4.2e+59)
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k);
else
tmp = ((b * c) + t_1) - (4.0 * (x * i));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.2e+53], N[(t$95$1 - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.2e+59], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -2.2 \cdot 10^{+53}:\\
\;\;\;\;t\_1 - 27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{+59}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a + x \cdot i\right)\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + t\_1\right) - 4 \cdot \left(x \cdot i\right)\\
\end{array}
\end{array}
if t < -2.19999999999999999e53Initial program 86.9%
Simplified89.2%
Taylor expanded in i around 0 84.6%
Taylor expanded in b around 0 87.1%
if -2.19999999999999999e53 < t < 4.19999999999999968e59Initial program 88.7%
Taylor expanded in y around 0 90.3%
distribute-lft-out90.3%
*-commutative90.3%
Simplified90.3%
if 4.19999999999999968e59 < t Initial program 88.5%
Simplified88.7%
Taylor expanded in j around 0 83.5%
Final simplification88.3%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= t -7.8e+58)
(* y (+ (* 18.0 (* t (* x z))) (* -27.0 (/ (* j k) y))))
(if (<= t 1.12e-94)
(- (* b c) (+ (* 27.0 (* j k)) (* 4.0 (* x i))))
(if (<= t 3.1e+216)
(- (* -4.0 (+ (* t a) (* x i))) (* (* j 27.0) k))
(+ (* j (* k -27.0)) (* 18.0 (* t (* x (* y z)))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (t <= -7.8e+58) {
tmp = y * ((18.0 * (t * (x * z))) + (-27.0 * ((j * k) / y)));
} else if (t <= 1.12e-94) {
tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i)));
} else if (t <= 3.1e+216) {
tmp = (-4.0 * ((t * a) + (x * i))) - ((j * 27.0) * k);
} else {
tmp = (j * (k * -27.0)) + (18.0 * (t * (x * (y * z))));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (t <= (-7.8d+58)) then
tmp = y * ((18.0d0 * (t * (x * z))) + ((-27.0d0) * ((j * k) / y)))
else if (t <= 1.12d-94) then
tmp = (b * c) - ((27.0d0 * (j * k)) + (4.0d0 * (x * i)))
else if (t <= 3.1d+216) then
tmp = ((-4.0d0) * ((t * a) + (x * i))) - ((j * 27.0d0) * k)
else
tmp = (j * (k * (-27.0d0))) + (18.0d0 * (t * (x * (y * z))))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (t <= -7.8e+58) {
tmp = y * ((18.0 * (t * (x * z))) + (-27.0 * ((j * k) / y)));
} else if (t <= 1.12e-94) {
tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i)));
} else if (t <= 3.1e+216) {
tmp = (-4.0 * ((t * a) + (x * i))) - ((j * 27.0) * k);
} else {
tmp = (j * (k * -27.0)) + (18.0 * (t * (x * (y * z))));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if t <= -7.8e+58: tmp = y * ((18.0 * (t * (x * z))) + (-27.0 * ((j * k) / y))) elif t <= 1.12e-94: tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i))) elif t <= 3.1e+216: tmp = (-4.0 * ((t * a) + (x * i))) - ((j * 27.0) * k) else: tmp = (j * (k * -27.0)) + (18.0 * (t * (x * (y * z)))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (t <= -7.8e+58) tmp = Float64(y * Float64(Float64(18.0 * Float64(t * Float64(x * z))) + Float64(-27.0 * Float64(Float64(j * k) / y)))); elseif (t <= 1.12e-94) tmp = Float64(Float64(b * c) - Float64(Float64(27.0 * Float64(j * k)) + Float64(4.0 * Float64(x * i)))); elseif (t <= 3.1e+216) tmp = Float64(Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))) - Float64(Float64(j * 27.0) * k)); else tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(18.0 * Float64(t * Float64(x * Float64(y * z))))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (t <= -7.8e+58)
tmp = y * ((18.0 * (t * (x * z))) + (-27.0 * ((j * k) / y)));
elseif (t <= 1.12e-94)
tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i)));
elseif (t <= 3.1e+216)
tmp = (-4.0 * ((t * a) + (x * i))) - ((j * 27.0) * k);
else
tmp = (j * (k * -27.0)) + (18.0 * (t * (x * (y * z))));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[t, -7.8e+58], N[(y * N[(N[(18.0 * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-27.0 * N[(N[(j * k), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.12e-94], N[(N[(b * c), $MachinePrecision] - N[(N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.1e+216], N[(N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.8 \cdot 10^{+58}:\\
\;\;\;\;y \cdot \left(18 \cdot \left(t \cdot \left(x \cdot z\right)\right) + -27 \cdot \frac{j \cdot k}{y}\right)\\
\mathbf{elif}\;t \leq 1.12 \cdot 10^{-94}:\\
\;\;\;\;b \cdot c - \left(27 \cdot \left(j \cdot k\right) + 4 \cdot \left(x \cdot i\right)\right)\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{+216}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\end{array}
\end{array}
if t < -7.8000000000000002e58Initial program 86.9%
Simplified93.6%
Taylor expanded in y around inf 60.9%
Taylor expanded in y around inf 60.8%
if -7.8000000000000002e58 < t < 1.12e-94Initial program 88.7%
Simplified89.5%
Taylor expanded in t around 0 86.3%
if 1.12e-94 < t < 3.10000000000000004e216Initial program 88.7%
Taylor expanded in b around 0 81.9%
associate-*r*80.0%
distribute-lft-out80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in y around 0 67.1%
if 3.10000000000000004e216 < t Initial program 88.2%
Simplified88.2%
Taylor expanded in y around inf 73.7%
Final simplification76.5%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* k -27.0))))
(if (<= t -4e+60)
(+ t_1 (* 18.0 (* (* y z) (* x t))))
(if (<= t 9e-95)
(- (* b c) (+ (* 27.0 (* j k)) (* 4.0 (* x i))))
(if (<= t 3.9e+220)
(- (* -4.0 (+ (* t a) (* x i))) (* (* j 27.0) k))
(+ t_1 (* 18.0 (* t (* x (* y z))))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double tmp;
if (t <= -4e+60) {
tmp = t_1 + (18.0 * ((y * z) * (x * t)));
} else if (t <= 9e-95) {
tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i)));
} else if (t <= 3.9e+220) {
tmp = (-4.0 * ((t * a) + (x * i))) - ((j * 27.0) * k);
} else {
tmp = t_1 + (18.0 * (t * (x * (y * z))));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
if (t <= (-4d+60)) then
tmp = t_1 + (18.0d0 * ((y * z) * (x * t)))
else if (t <= 9d-95) then
tmp = (b * c) - ((27.0d0 * (j * k)) + (4.0d0 * (x * i)))
else if (t <= 3.9d+220) then
tmp = ((-4.0d0) * ((t * a) + (x * i))) - ((j * 27.0d0) * k)
else
tmp = t_1 + (18.0d0 * (t * (x * (y * z))))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double tmp;
if (t <= -4e+60) {
tmp = t_1 + (18.0 * ((y * z) * (x * t)));
} else if (t <= 9e-95) {
tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i)));
} else if (t <= 3.9e+220) {
tmp = (-4.0 * ((t * a) + (x * i))) - ((j * 27.0) * k);
} else {
tmp = t_1 + (18.0 * (t * (x * (y * z))));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = j * (k * -27.0) tmp = 0 if t <= -4e+60: tmp = t_1 + (18.0 * ((y * z) * (x * t))) elif t <= 9e-95: tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i))) elif t <= 3.9e+220: tmp = (-4.0 * ((t * a) + (x * i))) - ((j * 27.0) * k) else: tmp = t_1 + (18.0 * (t * (x * (y * z)))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(j * Float64(k * -27.0)) tmp = 0.0 if (t <= -4e+60) tmp = Float64(t_1 + Float64(18.0 * Float64(Float64(y * z) * Float64(x * t)))); elseif (t <= 9e-95) tmp = Float64(Float64(b * c) - Float64(Float64(27.0 * Float64(j * k)) + Float64(4.0 * Float64(x * i)))); elseif (t <= 3.9e+220) tmp = Float64(Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))) - Float64(Float64(j * 27.0) * k)); else tmp = Float64(t_1 + Float64(18.0 * Float64(t * Float64(x * Float64(y * z))))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = j * (k * -27.0);
tmp = 0.0;
if (t <= -4e+60)
tmp = t_1 + (18.0 * ((y * z) * (x * t)));
elseif (t <= 9e-95)
tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i)));
elseif (t <= 3.9e+220)
tmp = (-4.0 * ((t * a) + (x * i))) - ((j * 27.0) * k);
else
tmp = t_1 + (18.0 * (t * (x * (y * z))));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4e+60], N[(t$95$1 + N[(18.0 * N[(N[(y * z), $MachinePrecision] * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e-95], N[(N[(b * c), $MachinePrecision] - N[(N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.9e+220], N[(N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
\mathbf{if}\;t \leq -4 \cdot 10^{+60}:\\
\;\;\;\;t\_1 + 18 \cdot \left(\left(y \cdot z\right) \cdot \left(x \cdot t\right)\right)\\
\mathbf{elif}\;t \leq 9 \cdot 10^{-95}:\\
\;\;\;\;b \cdot c - \left(27 \cdot \left(j \cdot k\right) + 4 \cdot \left(x \cdot i\right)\right)\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{+220}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;t\_1 + 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\end{array}
\end{array}
if t < -3.9999999999999998e60Initial program 86.9%
Simplified93.6%
Taylor expanded in y around inf 60.9%
associate-*r*62.9%
Simplified62.9%
if -3.9999999999999998e60 < t < 9e-95Initial program 88.7%
Simplified89.5%
Taylor expanded in t around 0 86.3%
if 9e-95 < t < 3.90000000000000016e220Initial program 88.7%
Taylor expanded in b around 0 81.9%
associate-*r*80.0%
distribute-lft-out80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in y around 0 67.1%
if 3.90000000000000016e220 < t Initial program 88.2%
Simplified88.2%
Taylor expanded in y around inf 73.7%
Final simplification76.9%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 18.0 (* z (* y (* x t))))))
(if (<= t -3e+122)
t_1
(if (<= t -150000.0)
(+ (* b c) (* j (* k -27.0)))
(if (<= t -1.1e-302)
(- (* b c) (* x (* 4.0 i)))
(if (<= t 2.4e+70) (- (* b c) (* 27.0 (* j k))) t_1))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 18.0 * (z * (y * (x * t)));
double tmp;
if (t <= -3e+122) {
tmp = t_1;
} else if (t <= -150000.0) {
tmp = (b * c) + (j * (k * -27.0));
} else if (t <= -1.1e-302) {
tmp = (b * c) - (x * (4.0 * i));
} else if (t <= 2.4e+70) {
tmp = (b * c) - (27.0 * (j * k));
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = 18.0d0 * (z * (y * (x * t)))
if (t <= (-3d+122)) then
tmp = t_1
else if (t <= (-150000.0d0)) then
tmp = (b * c) + (j * (k * (-27.0d0)))
else if (t <= (-1.1d-302)) then
tmp = (b * c) - (x * (4.0d0 * i))
else if (t <= 2.4d+70) then
tmp = (b * c) - (27.0d0 * (j * k))
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 18.0 * (z * (y * (x * t)));
double tmp;
if (t <= -3e+122) {
tmp = t_1;
} else if (t <= -150000.0) {
tmp = (b * c) + (j * (k * -27.0));
} else if (t <= -1.1e-302) {
tmp = (b * c) - (x * (4.0 * i));
} else if (t <= 2.4e+70) {
tmp = (b * c) - (27.0 * (j * k));
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = 18.0 * (z * (y * (x * t))) tmp = 0 if t <= -3e+122: tmp = t_1 elif t <= -150000.0: tmp = (b * c) + (j * (k * -27.0)) elif t <= -1.1e-302: tmp = (b * c) - (x * (4.0 * i)) elif t <= 2.4e+70: tmp = (b * c) - (27.0 * (j * k)) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(18.0 * Float64(z * Float64(y * Float64(x * t)))) tmp = 0.0 if (t <= -3e+122) tmp = t_1; elseif (t <= -150000.0) tmp = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0))); elseif (t <= -1.1e-302) tmp = Float64(Float64(b * c) - Float64(x * Float64(4.0 * i))); elseif (t <= 2.4e+70) tmp = Float64(Float64(b * c) - Float64(27.0 * Float64(j * k))); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = 18.0 * (z * (y * (x * t)));
tmp = 0.0;
if (t <= -3e+122)
tmp = t_1;
elseif (t <= -150000.0)
tmp = (b * c) + (j * (k * -27.0));
elseif (t <= -1.1e-302)
tmp = (b * c) - (x * (4.0 * i));
elseif (t <= 2.4e+70)
tmp = (b * c) - (27.0 * (j * k));
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(18.0 * N[(z * N[(y * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3e+122], t$95$1, If[LessEqual[t, -150000.0], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.1e-302], N[(N[(b * c), $MachinePrecision] - N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e+70], N[(N[(b * c), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := 18 \cdot \left(z \cdot \left(y \cdot \left(x \cdot t\right)\right)\right)\\
\mathbf{if}\;t \leq -3 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -150000:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\mathbf{elif}\;t \leq -1.1 \cdot 10^{-302}:\\
\;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{+70}:\\
\;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.99999999999999986e122 or 2.39999999999999987e70 < t Initial program 86.5%
Simplified87.9%
associate-*r*90.1%
distribute-rgt-out--86.5%
associate-+l-86.5%
associate-*l*73.8%
fmm-def73.8%
associate-*l*73.8%
*-commutative73.8%
Applied egg-rr73.8%
fmm-undef73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in t around 0 62.6%
neg-mul-162.6%
distribute-rgt-neg-in62.6%
Simplified62.6%
Taylor expanded in y around inf 49.6%
associate-*r*50.8%
associate-*r*53.1%
associate-*r*62.4%
Simplified62.4%
if -2.99999999999999986e122 < t < -1.5e5Initial program 96.0%
Simplified92.4%
Taylor expanded in b around inf 59.1%
if -1.5e5 < t < -1.10000000000000004e-302Initial program 86.0%
Simplified88.6%
Taylor expanded in t around 0 86.8%
Taylor expanded in i around inf 67.2%
associate-*r*67.2%
*-commutative67.2%
*-commutative67.2%
Simplified67.2%
if -1.10000000000000004e-302 < t < 2.39999999999999987e70Initial program 90.2%
Simplified92.9%
Taylor expanded in t around 0 77.0%
Taylor expanded in i around 0 59.0%
Final simplification62.6%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 27.0 (* j k))))
(if (or (<= t -1.25e+47) (not (<= t 1.4e-115)))
(- (* t (- (* 18.0 (* x (* y z))) (* a 4.0))) t_1)
(- (* b c) (+ t_1 (* 4.0 (* x i)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 27.0 * (j * k);
double tmp;
if ((t <= -1.25e+47) || !(t <= 1.4e-115)) {
tmp = (t * ((18.0 * (x * (y * z))) - (a * 4.0))) - t_1;
} else {
tmp = (b * c) - (t_1 + (4.0 * (x * i)));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = 27.0d0 * (j * k)
if ((t <= (-1.25d+47)) .or. (.not. (t <= 1.4d-115))) then
tmp = (t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))) - t_1
else
tmp = (b * c) - (t_1 + (4.0d0 * (x * i)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 27.0 * (j * k);
double tmp;
if ((t <= -1.25e+47) || !(t <= 1.4e-115)) {
tmp = (t * ((18.0 * (x * (y * z))) - (a * 4.0))) - t_1;
} else {
tmp = (b * c) - (t_1 + (4.0 * (x * i)));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = 27.0 * (j * k) tmp = 0 if (t <= -1.25e+47) or not (t <= 1.4e-115): tmp = (t * ((18.0 * (x * (y * z))) - (a * 4.0))) - t_1 else: tmp = (b * c) - (t_1 + (4.0 * (x * i))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(27.0 * Float64(j * k)) tmp = 0.0 if ((t <= -1.25e+47) || !(t <= 1.4e-115)) tmp = Float64(Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0))) - t_1); else tmp = Float64(Float64(b * c) - Float64(t_1 + Float64(4.0 * Float64(x * i)))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = 27.0 * (j * k);
tmp = 0.0;
if ((t <= -1.25e+47) || ~((t <= 1.4e-115)))
tmp = (t * ((18.0 * (x * (y * z))) - (a * 4.0))) - t_1;
else
tmp = (b * c) - (t_1 + (4.0 * (x * i)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t, -1.25e+47], N[Not[LessEqual[t, 1.4e-115]], $MachinePrecision]], N[(N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(b * c), $MachinePrecision] - N[(t$95$1 + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := 27 \cdot \left(j \cdot k\right)\\
\mathbf{if}\;t \leq -1.25 \cdot 10^{+47} \lor \neg \left(t \leq 1.4 \cdot 10^{-115}\right):\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - \left(t\_1 + 4 \cdot \left(x \cdot i\right)\right)\\
\end{array}
\end{array}
if t < -1.25000000000000005e47 or 1.39999999999999994e-115 < t Initial program 87.3%
Simplified89.8%
Taylor expanded in i around 0 83.6%
Taylor expanded in b around 0 79.9%
if -1.25000000000000005e47 < t < 1.39999999999999994e-115Initial program 89.3%
Simplified89.4%
Taylor expanded in t around 0 86.1%
Final simplification83.0%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= t -7e+47) (not (<= t 1.5e-94))) (+ (* t (+ (* 18.0 (* x (* y z))) (* a -4.0))) (* j (* k -27.0))) (- (* b c) (+ (* 27.0 (* j k)) (* 4.0 (* x i))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -7e+47) || !(t <= 1.5e-94)) {
tmp = (t * ((18.0 * (x * (y * z))) + (a * -4.0))) + (j * (k * -27.0));
} else {
tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i)));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((t <= (-7d+47)) .or. (.not. (t <= 1.5d-94))) then
tmp = (t * ((18.0d0 * (x * (y * z))) + (a * (-4.0d0)))) + (j * (k * (-27.0d0)))
else
tmp = (b * c) - ((27.0d0 * (j * k)) + (4.0d0 * (x * i)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -7e+47) || !(t <= 1.5e-94)) {
tmp = (t * ((18.0 * (x * (y * z))) + (a * -4.0))) + (j * (k * -27.0));
} else {
tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i)));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (t <= -7e+47) or not (t <= 1.5e-94): tmp = (t * ((18.0 * (x * (y * z))) + (a * -4.0))) + (j * (k * -27.0)) else: tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -7e+47) || !(t <= 1.5e-94)) tmp = Float64(Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) + Float64(a * -4.0))) + Float64(j * Float64(k * -27.0))); else tmp = Float64(Float64(b * c) - Float64(Float64(27.0 * Float64(j * k)) + Float64(4.0 * Float64(x * i)))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((t <= -7e+47) || ~((t <= 1.5e-94)))
tmp = (t * ((18.0 * (x * (y * z))) + (a * -4.0))) + (j * (k * -27.0));
else
tmp = (b * c) - ((27.0 * (j * k)) + (4.0 * (x * i)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -7e+47], N[Not[LessEqual[t, 1.5e-94]], $MachinePrecision]], N[(N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] - N[(N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7 \cdot 10^{+47} \lor \neg \left(t \leq 1.5 \cdot 10^{-94}\right):\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + a \cdot -4\right) + j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - \left(27 \cdot \left(j \cdot k\right) + 4 \cdot \left(x \cdot i\right)\right)\\
\end{array}
\end{array}
if t < -7.00000000000000031e47 or 1.5000000000000001e-94 < t Initial program 87.8%
Simplified91.9%
Taylor expanded in t around inf 79.4%
if -7.00000000000000031e47 < t < 1.5000000000000001e-94Initial program 88.8%
Simplified89.6%
Taylor expanded in t around 0 86.4%
Final simplification83.0%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= (* b c) -4.2e+119) (not (<= (* b c) 7.2e+102))) (- (* b c) (* x (* 4.0 i))) (- (* -4.0 (+ (* t a) (* x i))) (* (* j 27.0) k))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -4.2e+119) || !((b * c) <= 7.2e+102)) {
tmp = (b * c) - (x * (4.0 * i));
} else {
tmp = (-4.0 * ((t * a) + (x * i))) - ((j * 27.0) * k);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (((b * c) <= (-4.2d+119)) .or. (.not. ((b * c) <= 7.2d+102))) then
tmp = (b * c) - (x * (4.0d0 * i))
else
tmp = ((-4.0d0) * ((t * a) + (x * i))) - ((j * 27.0d0) * k)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -4.2e+119) || !((b * c) <= 7.2e+102)) {
tmp = (b * c) - (x * (4.0 * i));
} else {
tmp = (-4.0 * ((t * a) + (x * i))) - ((j * 27.0) * k);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if ((b * c) <= -4.2e+119) or not ((b * c) <= 7.2e+102): tmp = (b * c) - (x * (4.0 * i)) else: tmp = (-4.0 * ((t * a) + (x * i))) - ((j * 27.0) * k) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((Float64(b * c) <= -4.2e+119) || !(Float64(b * c) <= 7.2e+102)) tmp = Float64(Float64(b * c) - Float64(x * Float64(4.0 * i))); else tmp = Float64(Float64(-4.0 * Float64(Float64(t * a) + Float64(x * i))) - Float64(Float64(j * 27.0) * k)); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (((b * c) <= -4.2e+119) || ~(((b * c) <= 7.2e+102)))
tmp = (b * c) - (x * (4.0 * i));
else
tmp = (-4.0 * ((t * a) + (x * i))) - ((j * 27.0) * k);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[N[(b * c), $MachinePrecision], -4.2e+119], N[Not[LessEqual[N[(b * c), $MachinePrecision], 7.2e+102]], $MachinePrecision]], N[(N[(b * c), $MachinePrecision] - N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(-4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -4.2 \cdot 10^{+119} \lor \neg \left(b \cdot c \leq 7.2 \cdot 10^{+102}\right):\\
\;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t \cdot a + x \cdot i\right) - \left(j \cdot 27\right) \cdot k\\
\end{array}
\end{array}
if (*.f64 b c) < -4.19999999999999966e119 or 7.2000000000000003e102 < (*.f64 b c) Initial program 84.5%
Simplified86.7%
Taylor expanded in t around 0 76.8%
Taylor expanded in i around inf 74.4%
associate-*r*74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
if -4.19999999999999966e119 < (*.f64 b c) < 7.2000000000000003e102Initial program 90.4%
Taylor expanded in b around 0 86.4%
associate-*r*83.5%
distribute-lft-out83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in y around 0 72.6%
Final simplification73.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 18.0 (* x (* y z)))))
(if (<= t -2e+59)
(- (* t (- t_1 (* a 4.0))) (* 27.0 (* j k)))
(if (<= t 5.9e+75)
(- (- (* b c) (* 4.0 (+ (* t a) (* x i)))) (* (* j 27.0) k))
(+ (* t (+ t_1 (* a -4.0))) (* j (* k -27.0)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 18.0 * (x * (y * z));
double tmp;
if (t <= -2e+59) {
tmp = (t * (t_1 - (a * 4.0))) - (27.0 * (j * k));
} else if (t <= 5.9e+75) {
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k);
} else {
tmp = (t * (t_1 + (a * -4.0))) + (j * (k * -27.0));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = 18.0d0 * (x * (y * z))
if (t <= (-2d+59)) then
tmp = (t * (t_1 - (a * 4.0d0))) - (27.0d0 * (j * k))
else if (t <= 5.9d+75) then
tmp = ((b * c) - (4.0d0 * ((t * a) + (x * i)))) - ((j * 27.0d0) * k)
else
tmp = (t * (t_1 + (a * (-4.0d0)))) + (j * (k * (-27.0d0)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 18.0 * (x * (y * z));
double tmp;
if (t <= -2e+59) {
tmp = (t * (t_1 - (a * 4.0))) - (27.0 * (j * k));
} else if (t <= 5.9e+75) {
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k);
} else {
tmp = (t * (t_1 + (a * -4.0))) + (j * (k * -27.0));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = 18.0 * (x * (y * z)) tmp = 0 if t <= -2e+59: tmp = (t * (t_1 - (a * 4.0))) - (27.0 * (j * k)) elif t <= 5.9e+75: tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k) else: tmp = (t * (t_1 + (a * -4.0))) + (j * (k * -27.0)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(18.0 * Float64(x * Float64(y * z))) tmp = 0.0 if (t <= -2e+59) tmp = Float64(Float64(t * Float64(t_1 - Float64(a * 4.0))) - Float64(27.0 * Float64(j * k))); elseif (t <= 5.9e+75) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(Float64(t * a) + Float64(x * i)))) - Float64(Float64(j * 27.0) * k)); else tmp = Float64(Float64(t * Float64(t_1 + Float64(a * -4.0))) + Float64(j * Float64(k * -27.0))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = 18.0 * (x * (y * z));
tmp = 0.0;
if (t <= -2e+59)
tmp = (t * (t_1 - (a * 4.0))) - (27.0 * (j * k));
elseif (t <= 5.9e+75)
tmp = ((b * c) - (4.0 * ((t * a) + (x * i)))) - ((j * 27.0) * k);
else
tmp = (t * (t_1 + (a * -4.0))) + (j * (k * -27.0));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e+59], N[(N[(t * N[(t$95$1 - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.9e+75], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(N[(t * a), $MachinePrecision] + N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(t$95$1 + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\\
\mathbf{if}\;t \leq -2 \cdot 10^{+59}:\\
\;\;\;\;t \cdot \left(t\_1 - a \cdot 4\right) - 27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;t \leq 5.9 \cdot 10^{+75}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a + x \cdot i\right)\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(t\_1 + a \cdot -4\right) + j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if t < -1.99999999999999994e59Initial program 86.9%
Simplified89.2%
Taylor expanded in i around 0 84.6%
Taylor expanded in b around 0 87.1%
if -1.99999999999999994e59 < t < 5.89999999999999983e75Initial program 88.8%
Taylor expanded in y around 0 90.3%
distribute-lft-out90.3%
*-commutative90.3%
Simplified90.3%
if 5.89999999999999983e75 < t Initial program 88.3%
Simplified88.4%
Taylor expanded in t around inf 77.4%
Final simplification87.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= x -24000.0)
(* x (- (* i (- 4.0)) (* (* y z) (* t -18.0))))
(if (<= x -4.7e-181)
(+ (* j (* k -27.0)) (* -4.0 (* t a)))
(if (<= x 360.0)
(- (* b c) (* 27.0 (* j k)))
(* x (- (* 18.0 (* t (* y z))) (* 4.0 i)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (x <= -24000.0) {
tmp = x * ((i * -4.0) - ((y * z) * (t * -18.0)));
} else if (x <= -4.7e-181) {
tmp = (j * (k * -27.0)) + (-4.0 * (t * a));
} else if (x <= 360.0) {
tmp = (b * c) - (27.0 * (j * k));
} else {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (x <= (-24000.0d0)) then
tmp = x * ((i * -4.0d0) - ((y * z) * (t * (-18.0d0))))
else if (x <= (-4.7d-181)) then
tmp = (j * (k * (-27.0d0))) + ((-4.0d0) * (t * a))
else if (x <= 360.0d0) then
tmp = (b * c) - (27.0d0 * (j * k))
else
tmp = x * ((18.0d0 * (t * (y * z))) - (4.0d0 * i))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (x <= -24000.0) {
tmp = x * ((i * -4.0) - ((y * z) * (t * -18.0)));
} else if (x <= -4.7e-181) {
tmp = (j * (k * -27.0)) + (-4.0 * (t * a));
} else if (x <= 360.0) {
tmp = (b * c) - (27.0 * (j * k));
} else {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if x <= -24000.0: tmp = x * ((i * -4.0) - ((y * z) * (t * -18.0))) elif x <= -4.7e-181: tmp = (j * (k * -27.0)) + (-4.0 * (t * a)) elif x <= 360.0: tmp = (b * c) - (27.0 * (j * k)) else: tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (x <= -24000.0) tmp = Float64(x * Float64(Float64(i * Float64(-4.0)) - Float64(Float64(y * z) * Float64(t * -18.0)))); elseif (x <= -4.7e-181) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(-4.0 * Float64(t * a))); elseif (x <= 360.0) tmp = Float64(Float64(b * c) - Float64(27.0 * Float64(j * k))); else tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (x <= -24000.0)
tmp = x * ((i * -4.0) - ((y * z) * (t * -18.0)));
elseif (x <= -4.7e-181)
tmp = (j * (k * -27.0)) + (-4.0 * (t * a));
elseif (x <= 360.0)
tmp = (b * c) - (27.0 * (j * k));
else
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[x, -24000.0], N[(x * N[(N[(i * (-4.0)), $MachinePrecision] - N[(N[(y * z), $MachinePrecision] * N[(t * -18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4.7e-181], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 360.0], N[(N[(b * c), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -24000:\\
\;\;\;\;x \cdot \left(i \cdot \left(-4\right) - \left(y \cdot z\right) \cdot \left(t \cdot -18\right)\right)\\
\mathbf{elif}\;x \leq -4.7 \cdot 10^{-181}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + -4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;x \leq 360:\\
\;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\
\end{array}
\end{array}
if x < -24000Initial program 76.6%
Simplified85.6%
associate-*r*80.2%
distribute-rgt-out--76.6%
associate-+l-76.6%
associate-*l*74.7%
fmm-def74.7%
associate-*l*74.7%
*-commutative74.7%
Applied egg-rr74.7%
fmm-undef74.7%
*-commutative74.7%
Simplified74.7%
Taylor expanded in t around 0 71.3%
neg-mul-171.3%
distribute-rgt-neg-in71.3%
Simplified71.3%
Taylor expanded in x around -inf 64.3%
mul-1-neg64.3%
cancel-sign-sub-inv64.3%
associate-*r*64.4%
metadata-eval64.4%
Simplified64.4%
if -24000 < x < -4.6999999999999998e-181Initial program 90.3%
Simplified88.1%
Taylor expanded in a around inf 55.7%
*-commutative55.7%
Simplified55.7%
if -4.6999999999999998e-181 < x < 360Initial program 99.8%
Simplified94.0%
Taylor expanded in t around 0 77.5%
Taylor expanded in i around 0 71.7%
if 360 < x Initial program 83.4%
Simplified88.5%
Taylor expanded in x around inf 67.0%
Final simplification66.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* x (- (* 18.0 (* t (* y z))) (* 4.0 i)))))
(if (<= x -1350000.0)
t_1
(if (<= x -9.6e-180)
(+ (* j (* k -27.0)) (* -4.0 (* t a)))
(if (<= x 245.0) (- (* b c) (* 27.0 (* j k))) t_1)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * ((18.0 * (t * (y * z))) - (4.0 * i));
double tmp;
if (x <= -1350000.0) {
tmp = t_1;
} else if (x <= -9.6e-180) {
tmp = (j * (k * -27.0)) + (-4.0 * (t * a));
} else if (x <= 245.0) {
tmp = (b * c) - (27.0 * (j * k));
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((18.0d0 * (t * (y * z))) - (4.0d0 * i))
if (x <= (-1350000.0d0)) then
tmp = t_1
else if (x <= (-9.6d-180)) then
tmp = (j * (k * (-27.0d0))) + ((-4.0d0) * (t * a))
else if (x <= 245.0d0) then
tmp = (b * c) - (27.0d0 * (j * k))
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * ((18.0 * (t * (y * z))) - (4.0 * i));
double tmp;
if (x <= -1350000.0) {
tmp = t_1;
} else if (x <= -9.6e-180) {
tmp = (j * (k * -27.0)) + (-4.0 * (t * a));
} else if (x <= 245.0) {
tmp = (b * c) - (27.0 * (j * k));
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = x * ((18.0 * (t * (y * z))) - (4.0 * i)) tmp = 0 if x <= -1350000.0: tmp = t_1 elif x <= -9.6e-180: tmp = (j * (k * -27.0)) + (-4.0 * (t * a)) elif x <= 245.0: tmp = (b * c) - (27.0 * (j * k)) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i))) tmp = 0.0 if (x <= -1350000.0) tmp = t_1; elseif (x <= -9.6e-180) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(-4.0 * Float64(t * a))); elseif (x <= 245.0) tmp = Float64(Float64(b * c) - Float64(27.0 * Float64(j * k))); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = x * ((18.0 * (t * (y * z))) - (4.0 * i));
tmp = 0.0;
if (x <= -1350000.0)
tmp = t_1;
elseif (x <= -9.6e-180)
tmp = (j * (k * -27.0)) + (-4.0 * (t * a));
elseif (x <= 245.0)
tmp = (b * c) - (27.0 * (j * k));
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1350000.0], t$95$1, If[LessEqual[x, -9.6e-180], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 245.0], N[(N[(b * c), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\
\mathbf{if}\;x \leq -1350000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -9.6 \cdot 10^{-180}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + -4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;x \leq 245:\\
\;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.35e6 or 245 < x Initial program 80.6%
Simplified87.3%
Taylor expanded in x around inf 65.9%
if -1.35e6 < x < -9.59999999999999917e-180Initial program 90.3%
Simplified88.1%
Taylor expanded in a around inf 55.7%
*-commutative55.7%
Simplified55.7%
if -9.59999999999999917e-180 < x < 245Initial program 99.8%
Simplified94.0%
Taylor expanded in t around 0 77.5%
Taylor expanded in i around 0 71.7%
Final simplification66.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= (* b c) -3.6e+121)
(* b c)
(if (<= (* b c) -8.5e-45)
(* x (* i -4.0))
(if (<= (* b c) 3.9e+102) (* (* j k) -27.0) (* b c)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -3.6e+121) {
tmp = b * c;
} else if ((b * c) <= -8.5e-45) {
tmp = x * (i * -4.0);
} else if ((b * c) <= 3.9e+102) {
tmp = (j * k) * -27.0;
} else {
tmp = b * c;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((b * c) <= (-3.6d+121)) then
tmp = b * c
else if ((b * c) <= (-8.5d-45)) then
tmp = x * (i * (-4.0d0))
else if ((b * c) <= 3.9d+102) then
tmp = (j * k) * (-27.0d0)
else
tmp = b * c
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -3.6e+121) {
tmp = b * c;
} else if ((b * c) <= -8.5e-45) {
tmp = x * (i * -4.0);
} else if ((b * c) <= 3.9e+102) {
tmp = (j * k) * -27.0;
} else {
tmp = b * c;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (b * c) <= -3.6e+121: tmp = b * c elif (b * c) <= -8.5e-45: tmp = x * (i * -4.0) elif (b * c) <= 3.9e+102: tmp = (j * k) * -27.0 else: tmp = b * c return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(b * c) <= -3.6e+121) tmp = Float64(b * c); elseif (Float64(b * c) <= -8.5e-45) tmp = Float64(x * Float64(i * -4.0)); elseif (Float64(b * c) <= 3.9e+102) tmp = Float64(Float64(j * k) * -27.0); else tmp = Float64(b * c); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((b * c) <= -3.6e+121)
tmp = b * c;
elseif ((b * c) <= -8.5e-45)
tmp = x * (i * -4.0);
elseif ((b * c) <= 3.9e+102)
tmp = (j * k) * -27.0;
else
tmp = b * c;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(b * c), $MachinePrecision], -3.6e+121], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -8.5e-45], N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 3.9e+102], N[(N[(j * k), $MachinePrecision] * -27.0), $MachinePrecision], N[(b * c), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -3.6 \cdot 10^{+121}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -8.5 \cdot 10^{-45}:\\
\;\;\;\;x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq 3.9 \cdot 10^{+102}:\\
\;\;\;\;\left(j \cdot k\right) \cdot -27\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -3.59999999999999981e121 or 3.8999999999999998e102 < (*.f64 b c) Initial program 84.3%
Simplified86.6%
associate-*r*85.4%
distribute-rgt-out--84.3%
associate-+l-84.3%
associate-*l*81.9%
fmm-def81.9%
associate-*l*81.9%
*-commutative81.9%
Applied egg-rr81.9%
fmm-undef81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in t around 0 77.7%
neg-mul-177.7%
distribute-rgt-neg-in77.7%
Simplified77.7%
Taylor expanded in b around inf 58.6%
if -3.59999999999999981e121 < (*.f64 b c) < -8.50000000000000041e-45Initial program 82.5%
Simplified86.0%
associate-*r*82.5%
distribute-rgt-out--82.5%
associate-+l-82.5%
associate-*l*89.2%
fmm-def89.2%
associate-*l*89.2%
*-commutative89.2%
Applied egg-rr89.2%
fmm-undef89.2%
*-commutative89.2%
Simplified89.2%
Taylor expanded in t around 0 79.3%
neg-mul-179.3%
distribute-rgt-neg-in79.3%
Simplified79.3%
Taylor expanded in i around inf 40.4%
*-commutative40.4%
*-commutative40.4%
associate-*r*40.4%
Simplified40.4%
if -8.50000000000000041e-45 < (*.f64 b c) < 3.8999999999999998e102Initial program 92.0%
Simplified91.4%
Taylor expanded in j around inf 35.8%
Final simplification44.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= (* b c) -5.6e+119) (not (<= (* b c) 2.2e+102))) (- (* b c) (* x (* 4.0 i))) (+ (* i (* x -4.0)) (* (* j k) -27.0))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -5.6e+119) || !((b * c) <= 2.2e+102)) {
tmp = (b * c) - (x * (4.0 * i));
} else {
tmp = (i * (x * -4.0)) + ((j * k) * -27.0);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (((b * c) <= (-5.6d+119)) .or. (.not. ((b * c) <= 2.2d+102))) then
tmp = (b * c) - (x * (4.0d0 * i))
else
tmp = (i * (x * (-4.0d0))) + ((j * k) * (-27.0d0))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -5.6e+119) || !((b * c) <= 2.2e+102)) {
tmp = (b * c) - (x * (4.0 * i));
} else {
tmp = (i * (x * -4.0)) + ((j * k) * -27.0);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if ((b * c) <= -5.6e+119) or not ((b * c) <= 2.2e+102): tmp = (b * c) - (x * (4.0 * i)) else: tmp = (i * (x * -4.0)) + ((j * k) * -27.0) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((Float64(b * c) <= -5.6e+119) || !(Float64(b * c) <= 2.2e+102)) tmp = Float64(Float64(b * c) - Float64(x * Float64(4.0 * i))); else tmp = Float64(Float64(i * Float64(x * -4.0)) + Float64(Float64(j * k) * -27.0)); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (((b * c) <= -5.6e+119) || ~(((b * c) <= 2.2e+102)))
tmp = (b * c) - (x * (4.0 * i));
else
tmp = (i * (x * -4.0)) + ((j * k) * -27.0);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[N[(b * c), $MachinePrecision], -5.6e+119], N[Not[LessEqual[N[(b * c), $MachinePrecision], 2.2e+102]], $MachinePrecision]], N[(N[(b * c), $MachinePrecision] - N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(i * N[(x * -4.0), $MachinePrecision]), $MachinePrecision] + N[(N[(j * k), $MachinePrecision] * -27.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -5.6 \cdot 10^{+119} \lor \neg \left(b \cdot c \leq 2.2 \cdot 10^{+102}\right):\\
\;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(x \cdot -4\right) + \left(j \cdot k\right) \cdot -27\\
\end{array}
\end{array}
if (*.f64 b c) < -5.60000000000000026e119 or 2.20000000000000007e102 < (*.f64 b c) Initial program 84.5%
Simplified86.7%
Taylor expanded in t around 0 76.8%
Taylor expanded in i around inf 74.4%
associate-*r*74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
if -5.60000000000000026e119 < (*.f64 b c) < 2.20000000000000007e102Initial program 90.4%
Simplified91.1%
Taylor expanded in i around inf 56.3%
associate-*r*56.3%
*-commutative56.3%
associate-*r*56.3%
*-commutative56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in j around 0 56.4%
Final simplification62.6%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= (* b c) -41000.0) (not (<= (* b c) 3.4e+48))) (- (* b c) (* x (* 4.0 i))) (+ (* j (* k -27.0)) (* -4.0 (* t a)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -41000.0) || !((b * c) <= 3.4e+48)) {
tmp = (b * c) - (x * (4.0 * i));
} else {
tmp = (j * (k * -27.0)) + (-4.0 * (t * a));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (((b * c) <= (-41000.0d0)) .or. (.not. ((b * c) <= 3.4d+48))) then
tmp = (b * c) - (x * (4.0d0 * i))
else
tmp = (j * (k * (-27.0d0))) + ((-4.0d0) * (t * a))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -41000.0) || !((b * c) <= 3.4e+48)) {
tmp = (b * c) - (x * (4.0 * i));
} else {
tmp = (j * (k * -27.0)) + (-4.0 * (t * a));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if ((b * c) <= -41000.0) or not ((b * c) <= 3.4e+48): tmp = (b * c) - (x * (4.0 * i)) else: tmp = (j * (k * -27.0)) + (-4.0 * (t * a)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((Float64(b * c) <= -41000.0) || !(Float64(b * c) <= 3.4e+48)) tmp = Float64(Float64(b * c) - Float64(x * Float64(4.0 * i))); else tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(-4.0 * Float64(t * a))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (((b * c) <= -41000.0) || ~(((b * c) <= 3.4e+48)))
tmp = (b * c) - (x * (4.0 * i));
else
tmp = (j * (k * -27.0)) + (-4.0 * (t * a));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[N[(b * c), $MachinePrecision], -41000.0], N[Not[LessEqual[N[(b * c), $MachinePrecision], 3.4e+48]], $MachinePrecision]], N[(N[(b * c), $MachinePrecision] - N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -41000 \lor \neg \left(b \cdot c \leq 3.4 \cdot 10^{+48}\right):\\
\;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + -4 \cdot \left(t \cdot a\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -41000 or 3.4000000000000003e48 < (*.f64 b c) Initial program 85.5%
Simplified88.1%
Taylor expanded in t around 0 76.3%
Taylor expanded in i around inf 69.3%
associate-*r*69.3%
*-commutative69.3%
*-commutative69.3%
Simplified69.3%
if -41000 < (*.f64 b c) < 3.4000000000000003e48Initial program 90.7%
Simplified91.5%
Taylor expanded in a around inf 54.2%
*-commutative54.2%
Simplified54.2%
Final simplification61.0%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= t -5e+122) (not (<= t 1.2e+57))) (* 18.0 (* z (* y (* x t)))) (- (* b c) (* 27.0 (* j k)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -5e+122) || !(t <= 1.2e+57)) {
tmp = 18.0 * (z * (y * (x * t)));
} else {
tmp = (b * c) - (27.0 * (j * k));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((t <= (-5d+122)) .or. (.not. (t <= 1.2d+57))) then
tmp = 18.0d0 * (z * (y * (x * t)))
else
tmp = (b * c) - (27.0d0 * (j * k))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -5e+122) || !(t <= 1.2e+57)) {
tmp = 18.0 * (z * (y * (x * t)));
} else {
tmp = (b * c) - (27.0 * (j * k));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (t <= -5e+122) or not (t <= 1.2e+57): tmp = 18.0 * (z * (y * (x * t))) else: tmp = (b * c) - (27.0 * (j * k)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -5e+122) || !(t <= 1.2e+57)) tmp = Float64(18.0 * Float64(z * Float64(y * Float64(x * t)))); else tmp = Float64(Float64(b * c) - Float64(27.0 * Float64(j * k))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((t <= -5e+122) || ~((t <= 1.2e+57)))
tmp = 18.0 * (z * (y * (x * t)));
else
tmp = (b * c) - (27.0 * (j * k));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -5e+122], N[Not[LessEqual[t, 1.2e+57]], $MachinePrecision]], N[(18.0 * N[(z * N[(y * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{+122} \lor \neg \left(t \leq 1.2 \cdot 10^{+57}\right):\\
\;\;\;\;18 \cdot \left(z \cdot \left(y \cdot \left(x \cdot t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\
\end{array}
\end{array}
if t < -4.99999999999999989e122 or 1.20000000000000002e57 < t Initial program 86.5%
Simplified87.9%
associate-*r*90.1%
distribute-rgt-out--86.5%
associate-+l-86.5%
associate-*l*73.8%
fmm-def73.8%
associate-*l*73.8%
*-commutative73.8%
Applied egg-rr73.8%
fmm-undef73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in t around 0 62.6%
neg-mul-162.6%
distribute-rgt-neg-in62.6%
Simplified62.6%
Taylor expanded in y around inf 49.6%
associate-*r*50.8%
associate-*r*53.1%
associate-*r*62.4%
Simplified62.4%
if -4.99999999999999989e122 < t < 1.20000000000000002e57Initial program 89.2%
Simplified90.4%
Taylor expanded in t around 0 79.2%
Taylor expanded in i around 0 56.1%
Final simplification58.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= t -5.4e+122) (not (<= t 1.75e+59))) (* 18.0 (* z (* y (* x t)))) (+ (* b c) (* j (* k -27.0)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -5.4e+122) || !(t <= 1.75e+59)) {
tmp = 18.0 * (z * (y * (x * t)));
} else {
tmp = (b * c) + (j * (k * -27.0));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((t <= (-5.4d+122)) .or. (.not. (t <= 1.75d+59))) then
tmp = 18.0d0 * (z * (y * (x * t)))
else
tmp = (b * c) + (j * (k * (-27.0d0)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -5.4e+122) || !(t <= 1.75e+59)) {
tmp = 18.0 * (z * (y * (x * t)));
} else {
tmp = (b * c) + (j * (k * -27.0));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (t <= -5.4e+122) or not (t <= 1.75e+59): tmp = 18.0 * (z * (y * (x * t))) else: tmp = (b * c) + (j * (k * -27.0)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -5.4e+122) || !(t <= 1.75e+59)) tmp = Float64(18.0 * Float64(z * Float64(y * Float64(x * t)))); else tmp = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((t <= -5.4e+122) || ~((t <= 1.75e+59)))
tmp = 18.0 * (z * (y * (x * t)));
else
tmp = (b * c) + (j * (k * -27.0));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -5.4e+122], N[Not[LessEqual[t, 1.75e+59]], $MachinePrecision]], N[(18.0 * N[(z * N[(y * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.4 \cdot 10^{+122} \lor \neg \left(t \leq 1.75 \cdot 10^{+59}\right):\\
\;\;\;\;18 \cdot \left(z \cdot \left(y \cdot \left(x \cdot t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if t < -5.3999999999999997e122 or 1.75e59 < t Initial program 86.5%
Simplified87.9%
associate-*r*90.1%
distribute-rgt-out--86.5%
associate-+l-86.5%
associate-*l*73.8%
fmm-def73.8%
associate-*l*73.8%
*-commutative73.8%
Applied egg-rr73.8%
fmm-undef73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in t around 0 62.6%
neg-mul-162.6%
distribute-rgt-neg-in62.6%
Simplified62.6%
Taylor expanded in y around inf 49.6%
associate-*r*50.8%
associate-*r*53.1%
associate-*r*62.4%
Simplified62.4%
if -5.3999999999999997e122 < t < 1.75e59Initial program 89.2%
Simplified90.9%
Taylor expanded in b around inf 56.1%
Final simplification58.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= (* b c) -4.1e+123) (not (<= (* b c) 4.1e+102))) (* b c) (* (* j k) -27.0)))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -4.1e+123) || !((b * c) <= 4.1e+102)) {
tmp = b * c;
} else {
tmp = (j * k) * -27.0;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (((b * c) <= (-4.1d+123)) .or. (.not. ((b * c) <= 4.1d+102))) then
tmp = b * c
else
tmp = (j * k) * (-27.0d0)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -4.1e+123) || !((b * c) <= 4.1e+102)) {
tmp = b * c;
} else {
tmp = (j * k) * -27.0;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if ((b * c) <= -4.1e+123) or not ((b * c) <= 4.1e+102): tmp = b * c else: tmp = (j * k) * -27.0 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((Float64(b * c) <= -4.1e+123) || !(Float64(b * c) <= 4.1e+102)) tmp = Float64(b * c); else tmp = Float64(Float64(j * k) * -27.0); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (((b * c) <= -4.1e+123) || ~(((b * c) <= 4.1e+102)))
tmp = b * c;
else
tmp = (j * k) * -27.0;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[N[(b * c), $MachinePrecision], -4.1e+123], N[Not[LessEqual[N[(b * c), $MachinePrecision], 4.1e+102]], $MachinePrecision]], N[(b * c), $MachinePrecision], N[(N[(j * k), $MachinePrecision] * -27.0), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -4.1 \cdot 10^{+123} \lor \neg \left(b \cdot c \leq 4.1 \cdot 10^{+102}\right):\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot k\right) \cdot -27\\
\end{array}
\end{array}
if (*.f64 b c) < -4.09999999999999989e123 or 4.1e102 < (*.f64 b c) Initial program 84.3%
Simplified86.6%
associate-*r*85.4%
distribute-rgt-out--84.3%
associate-+l-84.3%
associate-*l*81.9%
fmm-def81.9%
associate-*l*81.9%
*-commutative81.9%
Applied egg-rr81.9%
fmm-undef81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in t around 0 77.7%
neg-mul-177.7%
distribute-rgt-neg-in77.7%
Simplified77.7%
Taylor expanded in b around inf 58.6%
if -4.09999999999999989e123 < (*.f64 b c) < 4.1e102Initial program 90.4%
Simplified91.1%
Taylor expanded in j around inf 33.1%
Final simplification41.9%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (* b c))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = b * c
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): return b * c
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) return Float64(b * c) end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp = code(x, y, z, t, a, b, c, i, j, k)
tmp = b * c;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(b * c), $MachinePrecision]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
b \cdot c
\end{array}
Initial program 88.3%
Simplified89.6%
associate-*r*89.5%
distribute-rgt-out--88.3%
associate-+l-88.3%
associate-*l*84.6%
fmm-def84.6%
associate-*l*84.5%
*-commutative84.5%
Applied egg-rr84.5%
fmm-undef84.5%
*-commutative84.5%
Simplified84.5%
Taylor expanded in t around 0 75.0%
neg-mul-175.0%
distribute-rgt-neg-in75.0%
Simplified75.0%
Taylor expanded in b around inf 23.5%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (+ (* a t) (* i x)) 4.0))
(t_2
(-
(- (* (* 18.0 t) (* (* x y) z)) t_1)
(- (* (* k j) 27.0) (* c b)))))
(if (< t -1.6210815397541398e-69)
t_2
(if (< t 165.68027943805222)
(+ (- (* (* 18.0 y) (* x (* z t))) t_1) (- (* c b) (* 27.0 (* k j))))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = ((a * t) + (i * x)) * 4.0;
double t_2 = (((18.0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0) - (c * b));
double tmp;
if (t < -1.6210815397541398e-69) {
tmp = t_2;
} else if (t < 165.68027943805222) {
tmp = (((18.0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0 * (k * j)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((a * t) + (i * x)) * 4.0d0
t_2 = (((18.0d0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0d0) - (c * b))
if (t < (-1.6210815397541398d-69)) then
tmp = t_2
else if (t < 165.68027943805222d0) then
tmp = (((18.0d0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0d0 * (k * j)))
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 c, double i, double j, double k) {
double t_1 = ((a * t) + (i * x)) * 4.0;
double t_2 = (((18.0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0) - (c * b));
double tmp;
if (t < -1.6210815397541398e-69) {
tmp = t_2;
} else if (t < 165.68027943805222) {
tmp = (((18.0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0 * (k * j)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = ((a * t) + (i * x)) * 4.0 t_2 = (((18.0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0) - (c * b)) tmp = 0 if t < -1.6210815397541398e-69: tmp = t_2 elif t < 165.68027943805222: tmp = (((18.0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0 * (k * j))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(Float64(a * t) + Float64(i * x)) * 4.0) t_2 = Float64(Float64(Float64(Float64(18.0 * t) * Float64(Float64(x * y) * z)) - t_1) - Float64(Float64(Float64(k * j) * 27.0) - Float64(c * b))) tmp = 0.0 if (t < -1.6210815397541398e-69) tmp = t_2; elseif (t < 165.68027943805222) tmp = Float64(Float64(Float64(Float64(18.0 * y) * Float64(x * Float64(z * t))) - t_1) + Float64(Float64(c * b) - Float64(27.0 * Float64(k * j)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = ((a * t) + (i * x)) * 4.0; t_2 = (((18.0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0) - (c * b)); tmp = 0.0; if (t < -1.6210815397541398e-69) tmp = t_2; elseif (t < 165.68027943805222) tmp = (((18.0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0 * (k * j))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(N[(a * t), $MachinePrecision] + N[(i * x), $MachinePrecision]), $MachinePrecision] * 4.0), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(18.0 * t), $MachinePrecision] * N[(N[(x * y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - N[(N[(N[(k * j), $MachinePrecision] * 27.0), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -1.6210815397541398e-69], t$95$2, If[Less[t, 165.68027943805222], N[(N[(N[(N[(18.0 * y), $MachinePrecision] * N[(x * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] + N[(N[(c * b), $MachinePrecision] - N[(27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot t + i \cdot x\right) \cdot 4\\
t_2 := \left(\left(18 \cdot t\right) \cdot \left(\left(x \cdot y\right) \cdot z\right) - t\_1\right) - \left(\left(k \cdot j\right) \cdot 27 - c \cdot b\right)\\
\mathbf{if}\;t < -1.6210815397541398 \cdot 10^{-69}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 165.68027943805222:\\
\;\;\;\;\left(\left(18 \cdot y\right) \cdot \left(x \cdot \left(z \cdot t\right)\right) - t\_1\right) + \left(c \cdot b - 27 \cdot \left(k \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024165
(FPCore (x y z t a b c i j k)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, E"
:precision binary64
:alt
(! :herbie-platform default (if (< t -8105407698770699/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (- (* (* 18 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4)) (- (* (* k j) 27) (* c b))) (if (< t 8284013971902611/50000000000000) (+ (- (* (* 18 y) (* x (* z t))) (* (+ (* a t) (* i x)) 4)) (- (* c b) (* 27 (* k j)))) (- (- (* (* 18 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4)) (- (* (* k j) 27) (* c b))))))
(- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))