
(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 23 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.
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
(-
(-
(- (* b c) (- (* t (* a 4.0)) (* (* (* (* x 18.0) y) z) t)))
(* (* 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);
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 = (((b * c) - ((t * (a * 4.0)) - ((((x * 18.0) * y) * z) * t))) - ((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;
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 = (((b * c) - ((t * (a * 4.0)) - ((((x * 18.0) * y) * z) * t))) - ((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]) [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 = (((b * c) - ((t * (a * 4.0)) - ((((x * 18.0) * y) * z) * t))) - ((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]) 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(b * c) - Float64(Float64(t * Float64(a * 4.0)) - Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t))) - 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])){:}
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 = (((b * c) - ((t * (a * 4.0)) - ((((x * 18.0) * y) * z) * t))) - ((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.
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[(b * c), $MachinePrecision] - N[(N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision]), $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])\\\\
[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(b \cdot c - \left(t \cdot \left(a \cdot 4\right) - \left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t\right)\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.6%
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%
Simplified32.4%
Taylor expanded in x around inf 70.6%
Final simplification91.9%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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))) (* i -4.0))) (* j (* k -27.0)))))
(if (<= x -3e+148)
t_1
(if (<= x -6.2e-81)
(-
(+ (* b c) (* t (- (* 18.0 (* x (* y z))) (* a 4.0))))
(* 4.0 (* x i)))
(if (<= x 2.85e-129)
(- (- (* b c) (* 4.0 (* t a))) (* (* j 27.0) k))
(if (<= x 1.4e+107)
(-
(+ (* b c) (* (* x (* 18.0 y)) (* z t)))
(+ (* j (* 27.0 k)) (* x (* 4.0 i))))
t_1))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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 = (x * ((18.0 * (t * (y * z))) + (i * -4.0))) + (j * (k * -27.0));
double tmp;
if (x <= -3e+148) {
tmp = t_1;
} else if (x <= -6.2e-81) {
tmp = ((b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)))) - (4.0 * (x * i));
} else if (x <= 2.85e-129) {
tmp = ((b * c) - (4.0 * (t * a))) - ((j * 27.0) * k);
} else if (x <= 1.4e+107) {
tmp = ((b * c) + ((x * (18.0 * y)) * (z * t))) - ((j * (27.0 * k)) + (x * (4.0 * i)));
} 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.
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))) + (i * (-4.0d0)))) + (j * (k * (-27.0d0)))
if (x <= (-3d+148)) then
tmp = t_1
else if (x <= (-6.2d-81)) then
tmp = ((b * c) + (t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0)))) - (4.0d0 * (x * i))
else if (x <= 2.85d-129) then
tmp = ((b * c) - (4.0d0 * (t * a))) - ((j * 27.0d0) * k)
else if (x <= 1.4d+107) then
tmp = ((b * c) + ((x * (18.0d0 * y)) * (z * t))) - ((j * (27.0d0 * k)) + (x * (4.0d0 * i)))
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;
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))) + (i * -4.0))) + (j * (k * -27.0));
double tmp;
if (x <= -3e+148) {
tmp = t_1;
} else if (x <= -6.2e-81) {
tmp = ((b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)))) - (4.0 * (x * i));
} else if (x <= 2.85e-129) {
tmp = ((b * c) - (4.0 * (t * a))) - ((j * 27.0) * k);
} else if (x <= 1.4e+107) {
tmp = ((b * c) + ((x * (18.0 * y)) * (z * t))) - ((j * (27.0 * k)) + (x * (4.0 * i)));
} 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]) [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))) + (i * -4.0))) + (j * (k * -27.0)) tmp = 0 if x <= -3e+148: tmp = t_1 elif x <= -6.2e-81: tmp = ((b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)))) - (4.0 * (x * i)) elif x <= 2.85e-129: tmp = ((b * c) - (4.0 * (t * a))) - ((j * 27.0) * k) elif x <= 1.4e+107: tmp = ((b * c) + ((x * (18.0 * y)) * (z * t))) - ((j * (27.0 * k)) + (x * (4.0 * i))) 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]) 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(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) + Float64(i * -4.0))) + Float64(j * Float64(k * -27.0))) tmp = 0.0 if (x <= -3e+148) tmp = t_1; elseif (x <= -6.2e-81) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0)))) - Float64(4.0 * Float64(x * i))); elseif (x <= 2.85e-129) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - Float64(Float64(j * 27.0) * k)); elseif (x <= 1.4e+107) tmp = Float64(Float64(Float64(b * c) + Float64(Float64(x * Float64(18.0 * y)) * Float64(z * t))) - Float64(Float64(j * Float64(27.0 * k)) + Float64(x * Float64(4.0 * i)))); 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])){:}
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))) + (i * -4.0))) + (j * (k * -27.0));
tmp = 0.0;
if (x <= -3e+148)
tmp = t_1;
elseif (x <= -6.2e-81)
tmp = ((b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)))) - (4.0 * (x * i));
elseif (x <= 2.85e-129)
tmp = ((b * c) - (4.0 * (t * a))) - ((j * 27.0) * k);
elseif (x <= 1.4e+107)
tmp = ((b * c) + ((x * (18.0 * y)) * (z * t))) - ((j * (27.0 * k)) + (x * (4.0 * i)));
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.
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[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3e+148], t$95$1, If[LessEqual[x, -6.2e-81], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.85e-129], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.4e+107], N[(N[(N[(b * c), $MachinePrecision] + N[(N[(x * N[(18.0 * y), $MachinePrecision]), $MachinePrecision] * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision] + N[(x * N[(4.0 * i), $MachinePrecision]), $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])\\\\
[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) + i \cdot -4\right) + j \cdot \left(k \cdot -27\right)\\
\mathbf{if}\;x \leq -3 \cdot 10^{+148}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -6.2 \cdot 10^{-81}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\right) - 4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;x \leq 2.85 \cdot 10^{-129}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{+107}:\\
\;\;\;\;\left(b \cdot c + \left(x \cdot \left(18 \cdot y\right)\right) \cdot \left(z \cdot t\right)\right) - \left(j \cdot \left(27 \cdot k\right) + x \cdot \left(4 \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.00000000000000015e148 or 1.39999999999999992e107 < x Initial program 63.9%
Simplified77.9%
Taylor expanded in x around inf 84.5%
if -3.00000000000000015e148 < x < -6.19999999999999976e-81Initial program 77.0%
Simplified83.5%
Taylor expanded in j around 0 87.9%
if -6.19999999999999976e-81 < x < 2.85e-129Initial program 98.5%
Taylor expanded in x around 0 90.9%
if 2.85e-129 < x < 1.39999999999999992e107Initial program 92.0%
Simplified94.0%
associate-*r*92.0%
distribute-rgt-out--92.0%
associate-+l-92.0%
associate-*l*95.9%
fmm-def95.9%
associate-*l*95.9%
*-commutative95.9%
Applied egg-rr95.9%
fmm-undef95.9%
*-commutative95.9%
associate-*r*95.9%
*-commutative95.9%
*-commutative95.9%
*-commutative95.9%
associate-*l*95.9%
*-commutative95.9%
*-commutative95.9%
Simplified95.9%
Taylor expanded in a around 0 93.8%
associate-*r*93.8%
*-commutative93.8%
neg-mul-193.8%
Simplified93.8%
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.
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 (* z (* y (* x (* 18.0 t))))))
(if (<= (* b c) -9.5e+150)
(* b c)
(if (<= (* b c) -5e-311)
t_1
(if (<= (* b c) 7.5e-59)
(* x (* i -4.0))
(if (<= (* b c) 1.58e+19)
(* t (* a -4.0))
(if (<= (* b c) 4.1e+220) t_1 (* b c))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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 = z * (y * (x * (18.0 * t)));
double tmp;
if ((b * c) <= -9.5e+150) {
tmp = b * c;
} else if ((b * c) <= -5e-311) {
tmp = t_1;
} else if ((b * c) <= 7.5e-59) {
tmp = x * (i * -4.0);
} else if ((b * c) <= 1.58e+19) {
tmp = t * (a * -4.0);
} else if ((b * c) <= 4.1e+220) {
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.
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 = z * (y * (x * (18.0d0 * t)))
if ((b * c) <= (-9.5d+150)) then
tmp = b * c
else if ((b * c) <= (-5d-311)) then
tmp = t_1
else if ((b * c) <= 7.5d-59) then
tmp = x * (i * (-4.0d0))
else if ((b * c) <= 1.58d+19) then
tmp = t * (a * (-4.0d0))
else if ((b * c) <= 4.1d+220) 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;
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 = z * (y * (x * (18.0 * t)));
double tmp;
if ((b * c) <= -9.5e+150) {
tmp = b * c;
} else if ((b * c) <= -5e-311) {
tmp = t_1;
} else if ((b * c) <= 7.5e-59) {
tmp = x * (i * -4.0);
} else if ((b * c) <= 1.58e+19) {
tmp = t * (a * -4.0);
} else if ((b * c) <= 4.1e+220) {
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]) [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 = z * (y * (x * (18.0 * t))) tmp = 0 if (b * c) <= -9.5e+150: tmp = b * c elif (b * c) <= -5e-311: tmp = t_1 elif (b * c) <= 7.5e-59: tmp = x * (i * -4.0) elif (b * c) <= 1.58e+19: tmp = t * (a * -4.0) elif (b * c) <= 4.1e+220: 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]) 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(z * Float64(y * Float64(x * Float64(18.0 * t)))) tmp = 0.0 if (Float64(b * c) <= -9.5e+150) tmp = Float64(b * c); elseif (Float64(b * c) <= -5e-311) tmp = t_1; elseif (Float64(b * c) <= 7.5e-59) tmp = Float64(x * Float64(i * -4.0)); elseif (Float64(b * c) <= 1.58e+19) tmp = Float64(t * Float64(a * -4.0)); elseif (Float64(b * c) <= 4.1e+220) 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])){:}
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 = z * (y * (x * (18.0 * t)));
tmp = 0.0;
if ((b * c) <= -9.5e+150)
tmp = b * c;
elseif ((b * c) <= -5e-311)
tmp = t_1;
elseif ((b * c) <= 7.5e-59)
tmp = x * (i * -4.0);
elseif ((b * c) <= 1.58e+19)
tmp = t * (a * -4.0);
elseif ((b * c) <= 4.1e+220)
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.
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[(z * N[(y * N[(x * N[(18.0 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -9.5e+150], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -5e-311], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], 7.5e-59], N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1.58e+19], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 4.1e+220], 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])\\\\
[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 := z \cdot \left(y \cdot \left(x \cdot \left(18 \cdot t\right)\right)\right)\\
\mathbf{if}\;b \cdot c \leq -9.5 \cdot 10^{+150}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -5 \cdot 10^{-311}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \cdot c \leq 7.5 \cdot 10^{-59}:\\
\;\;\;\;x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq 1.58 \cdot 10^{+19}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq 4.1 \cdot 10^{+220}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -9.5000000000000001e150 or 4.09999999999999981e220 < (*.f64 b c) Initial program 75.7%
Simplified83.1%
associate-*r*81.8%
distribute-rgt-out--75.7%
associate-+l-75.7%
associate-*l*76.9%
fmm-def76.9%
associate-*l*76.9%
*-commutative76.9%
Applied egg-rr76.9%
fmm-undef76.9%
*-commutative76.9%
associate-*r*76.9%
*-commutative76.9%
*-commutative76.9%
*-commutative76.9%
associate-*l*76.9%
*-commutative76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in b around inf 66.6%
if -9.5000000000000001e150 < (*.f64 b c) < -5.00000000000023e-311 or 1.58e19 < (*.f64 b c) < 4.09999999999999981e220Initial program 85.0%
Simplified91.1%
Taylor expanded in y around inf 58.6%
associate-*r*59.5%
Simplified59.5%
Taylor expanded in z around inf 53.8%
Taylor expanded in j around 0 40.0%
associate-*r*42.8%
associate-*r*42.8%
associate-*r*42.8%
*-commutative42.8%
Simplified42.8%
if -5.00000000000023e-311 < (*.f64 b c) < 7.50000000000000019e-59Initial program 82.8%
Simplified77.7%
associate-*r*84.5%
distribute-rgt-out--82.8%
associate-+l-82.8%
associate-*l*86.0%
fmm-def86.0%
associate-*l*86.1%
*-commutative86.1%
Applied egg-rr86.1%
fmm-undef86.1%
*-commutative86.1%
associate-*r*86.1%
*-commutative86.1%
*-commutative86.1%
*-commutative86.1%
associate-*l*86.1%
*-commutative86.1%
*-commutative86.1%
Simplified86.1%
Taylor expanded in i around inf 37.4%
metadata-eval37.4%
distribute-lft-neg-in37.4%
associate-*r*37.4%
*-commutative37.4%
distribute-rgt-neg-in37.4%
distribute-lft-neg-in37.4%
metadata-eval37.4%
Simplified37.4%
if 7.50000000000000019e-59 < (*.f64 b c) < 1.58e19Initial program 88.1%
Simplified76.7%
Taylor expanded in j around 0 65.3%
Taylor expanded in x around 0 54.5%
Taylor expanded in a around inf 54.1%
associate-*r*54.1%
Simplified54.1%
Final simplification50.0%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 (or (<= t_1 -5.0) (not (<= t_1 1e+133)))
(- (+ (* b c) (* (* x (* 18.0 y)) (* z t))) (* 27.0 (* j k)))
(-
(+ (* b c) (* t (- (* 18.0 (* x (* y z))) (* a 4.0))))
(* 4.0 (* x i))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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_1 <= -5.0) || !(t_1 <= 1e+133)) {
tmp = ((b * c) + ((x * (18.0 * y)) * (z * t))) - (27.0 * (j * k));
} else {
tmp = ((b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)))) - (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.
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_1 <= (-5.0d0)) .or. (.not. (t_1 <= 1d+133))) then
tmp = ((b * c) + ((x * (18.0d0 * y)) * (z * t))) - (27.0d0 * (j * k))
else
tmp = ((b * c) + (t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0)))) - (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;
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_1 <= -5.0) || !(t_1 <= 1e+133)) {
tmp = ((b * c) + ((x * (18.0 * y)) * (z * t))) - (27.0 * (j * k));
} else {
tmp = ((b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)))) - (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]) [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_1 <= -5.0) or not (t_1 <= 1e+133): tmp = ((b * c) + ((x * (18.0 * y)) * (z * t))) - (27.0 * (j * k)) else: tmp = ((b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)))) - (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]) 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_1 <= -5.0) || !(t_1 <= 1e+133)) tmp = Float64(Float64(Float64(b * c) + Float64(Float64(x * Float64(18.0 * y)) * Float64(z * t))) - Float64(27.0 * Float64(j * k))); else tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0)))) - 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])){:}
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_1 <= -5.0) || ~((t_1 <= 1e+133)))
tmp = ((b * c) + ((x * (18.0 * y)) * (z * t))) - (27.0 * (j * k));
else
tmp = ((b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)))) - (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.
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[Or[LessEqual[t$95$1, -5.0], N[Not[LessEqual[t$95$1, 1e+133]], $MachinePrecision]], N[(N[(N[(b * c), $MachinePrecision] + N[(N[(x * N[(18.0 * y), $MachinePrecision]), $MachinePrecision] * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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])\\\\
[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\_1 \leq -5 \lor \neg \left(t\_1 \leq 10^{+133}\right):\\
\;\;\;\;\left(b \cdot c + \left(x \cdot \left(18 \cdot y\right)\right) \cdot \left(z \cdot t\right)\right) - 27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\right) - 4 \cdot \left(x \cdot i\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -5 or 1e133 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 79.7%
Simplified78.1%
associate-*r*83.2%
distribute-rgt-out--79.7%
associate-+l-79.7%
associate-*l*78.9%
fmm-def78.9%
associate-*l*78.1%
*-commutative78.1%
Applied egg-rr78.1%
fmm-undef78.1%
*-commutative78.1%
associate-*r*78.1%
*-commutative78.1%
*-commutative78.1%
*-commutative78.1%
associate-*l*78.1%
*-commutative78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in a around 0 76.4%
associate-*r*76.4%
*-commutative76.4%
neg-mul-176.4%
Simplified76.4%
Taylor expanded in x around 0 75.6%
if -5 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1e133Initial program 83.4%
Simplified89.7%
Taylor expanded in j around 0 88.4%
Final simplification82.7%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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)) (* x (* 4.0 i)))))
(if (<= t -3.6e+123)
(* t (* x (+ (* -4.0 (/ a x)) (* 18.0 (* y z)))))
(if (<= t 1.35e-52)
(- (- (* (* x (* 18.0 y)) (* z t)) (- (* a (* t 4.0)) (* b c))) t_1)
(- (* t (- (+ (* 18.0 (* x (* y z))) (/ (* b c) t)) (* a 4.0))) t_1)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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)) + (x * (4.0 * i));
double tmp;
if (t <= -3.6e+123) {
tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z))));
} else if (t <= 1.35e-52) {
tmp = (((x * (18.0 * y)) * (z * t)) - ((a * (t * 4.0)) - (b * c))) - t_1;
} else {
tmp = (t * (((18.0 * (x * (y * z))) + ((b * c) / t)) - (a * 4.0))) - 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.
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)) + (x * (4.0d0 * i))
if (t <= (-3.6d+123)) then
tmp = t * (x * (((-4.0d0) * (a / x)) + (18.0d0 * (y * z))))
else if (t <= 1.35d-52) then
tmp = (((x * (18.0d0 * y)) * (z * t)) - ((a * (t * 4.0d0)) - (b * c))) - t_1
else
tmp = (t * (((18.0d0 * (x * (y * z))) + ((b * c) / t)) - (a * 4.0d0))) - 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;
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)) + (x * (4.0 * i));
double tmp;
if (t <= -3.6e+123) {
tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z))));
} else if (t <= 1.35e-52) {
tmp = (((x * (18.0 * y)) * (z * t)) - ((a * (t * 4.0)) - (b * c))) - t_1;
} else {
tmp = (t * (((18.0 * (x * (y * z))) + ((b * c) / t)) - (a * 4.0))) - 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]) [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)) + (x * (4.0 * i)) tmp = 0 if t <= -3.6e+123: tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z)))) elif t <= 1.35e-52: tmp = (((x * (18.0 * y)) * (z * t)) - ((a * (t * 4.0)) - (b * c))) - t_1 else: tmp = (t * (((18.0 * (x * (y * z))) + ((b * c) / t)) - (a * 4.0))) - 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]) 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 * Float64(27.0 * k)) + Float64(x * Float64(4.0 * i))) tmp = 0.0 if (t <= -3.6e+123) tmp = Float64(t * Float64(x * Float64(Float64(-4.0 * Float64(a / x)) + Float64(18.0 * Float64(y * z))))); elseif (t <= 1.35e-52) tmp = Float64(Float64(Float64(Float64(x * Float64(18.0 * y)) * Float64(z * t)) - Float64(Float64(a * Float64(t * 4.0)) - Float64(b * c))) - t_1); else tmp = Float64(Float64(t * Float64(Float64(Float64(18.0 * Float64(x * Float64(y * z))) + Float64(Float64(b * c) / t)) - Float64(a * 4.0))) - 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])){:}
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)) + (x * (4.0 * i));
tmp = 0.0;
if (t <= -3.6e+123)
tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z))));
elseif (t <= 1.35e-52)
tmp = (((x * (18.0 * y)) * (z * t)) - ((a * (t * 4.0)) - (b * c))) - t_1;
else
tmp = (t * (((18.0 * (x * (y * z))) + ((b * c) / t)) - (a * 4.0))) - 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.
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 * N[(27.0 * k), $MachinePrecision]), $MachinePrecision] + N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.6e+123], N[(t * N[(x * N[(N[(-4.0 * N[(a / x), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e-52], N[(N[(N[(N[(x * N[(18.0 * y), $MachinePrecision]), $MachinePrecision] * N[(z * t), $MachinePrecision]), $MachinePrecision] - N[(N[(a * N[(t * 4.0), $MachinePrecision]), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(t * N[(N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $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])\\\\
[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(27 \cdot k\right) + x \cdot \left(4 \cdot i\right)\\
\mathbf{if}\;t \leq -3.6 \cdot 10^{+123}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-4 \cdot \frac{a}{x} + 18 \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-52}:\\
\;\;\;\;\left(\left(x \cdot \left(18 \cdot y\right)\right) \cdot \left(z \cdot t\right) - \left(a \cdot \left(t \cdot 4\right) - b \cdot c\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(\left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + \frac{b \cdot c}{t}\right) - a \cdot 4\right) - t\_1\\
\end{array}
\end{array}
if t < -3.59999999999999998e123Initial program 63.5%
Simplified84.7%
Taylor expanded in t around inf 96.8%
Taylor expanded in x around inf 96.8%
if -3.59999999999999998e123 < t < 1.35000000000000005e-52Initial program 83.8%
Simplified81.1%
associate-*r*83.8%
distribute-rgt-out--83.8%
associate-+l-83.8%
associate-*l*86.4%
fmm-def86.4%
associate-*l*86.4%
*-commutative86.4%
Applied egg-rr86.4%
fmm-undef86.4%
*-commutative86.4%
associate-*r*86.4%
*-commutative86.4%
*-commutative86.4%
*-commutative86.4%
associate-*l*86.4%
*-commutative86.4%
*-commutative86.4%
Simplified86.4%
if 1.35000000000000005e-52 < t Initial program 85.6%
Simplified90.8%
Taylor expanded in t around inf 90.8%
Final simplification89.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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))
(t_2 (* 4.0 (* x i)))
(t_3
(+ (* x (+ (* 18.0 (* t (* y z))) (* i -4.0))) (* j (* k -27.0)))))
(if (<= x -8e+147)
t_3
(if (<= x -1.32e-45)
(- (+ (* b c) (* 18.0 (* t (* x (* y z))))) t_2)
(if (<= x 2e-93)
(- (- (* b c) (* 4.0 (* t a))) t_1)
(if (<= x 3.2e+97) (- (- (* b c) t_2) t_1) t_3))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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 t_2 = 4.0 * (x * i);
double t_3 = (x * ((18.0 * (t * (y * z))) + (i * -4.0))) + (j * (k * -27.0));
double tmp;
if (x <= -8e+147) {
tmp = t_3;
} else if (x <= -1.32e-45) {
tmp = ((b * c) + (18.0 * (t * (x * (y * z))))) - t_2;
} else if (x <= 2e-93) {
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
} else if (x <= 3.2e+97) {
tmp = ((b * c) - t_2) - t_1;
} else {
tmp = t_3;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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) :: t_3
real(8) :: tmp
t_1 = (j * 27.0d0) * k
t_2 = 4.0d0 * (x * i)
t_3 = (x * ((18.0d0 * (t * (y * z))) + (i * (-4.0d0)))) + (j * (k * (-27.0d0)))
if (x <= (-8d+147)) then
tmp = t_3
else if (x <= (-1.32d-45)) then
tmp = ((b * c) + (18.0d0 * (t * (x * (y * z))))) - t_2
else if (x <= 2d-93) then
tmp = ((b * c) - (4.0d0 * (t * a))) - t_1
else if (x <= 3.2d+97) then
tmp = ((b * c) - t_2) - t_1
else
tmp = t_3
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;
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 t_2 = 4.0 * (x * i);
double t_3 = (x * ((18.0 * (t * (y * z))) + (i * -4.0))) + (j * (k * -27.0));
double tmp;
if (x <= -8e+147) {
tmp = t_3;
} else if (x <= -1.32e-45) {
tmp = ((b * c) + (18.0 * (t * (x * (y * z))))) - t_2;
} else if (x <= 2e-93) {
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
} else if (x <= 3.2e+97) {
tmp = ((b * c) - t_2) - t_1;
} else {
tmp = t_3;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [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 t_2 = 4.0 * (x * i) t_3 = (x * ((18.0 * (t * (y * z))) + (i * -4.0))) + (j * (k * -27.0)) tmp = 0 if x <= -8e+147: tmp = t_3 elif x <= -1.32e-45: tmp = ((b * c) + (18.0 * (t * (x * (y * z))))) - t_2 elif x <= 2e-93: tmp = ((b * c) - (4.0 * (t * a))) - t_1 elif x <= 3.2e+97: tmp = ((b * c) - t_2) - t_1 else: tmp = t_3 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) 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) t_2 = Float64(4.0 * Float64(x * i)) t_3 = Float64(Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) + Float64(i * -4.0))) + Float64(j * Float64(k * -27.0))) tmp = 0.0 if (x <= -8e+147) tmp = t_3; elseif (x <= -1.32e-45) tmp = Float64(Float64(Float64(b * c) + Float64(18.0 * Float64(t * Float64(x * Float64(y * z))))) - t_2); elseif (x <= 2e-93) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - t_1); elseif (x <= 3.2e+97) tmp = Float64(Float64(Float64(b * c) - t_2) - t_1); else tmp = t_3; 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])){:}
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;
t_2 = 4.0 * (x * i);
t_3 = (x * ((18.0 * (t * (y * z))) + (i * -4.0))) + (j * (k * -27.0));
tmp = 0.0;
if (x <= -8e+147)
tmp = t_3;
elseif (x <= -1.32e-45)
tmp = ((b * c) + (18.0 * (t * (x * (y * z))))) - t_2;
elseif (x <= 2e-93)
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
elseif (x <= 3.2e+97)
tmp = ((b * c) - t_2) - t_1;
else
tmp = t_3;
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.
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]}, Block[{t$95$2 = N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -8e+147], t$95$3, If[LessEqual[x, -1.32e-45], N[(N[(N[(b * c), $MachinePrecision] + N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision], If[LessEqual[x, 2e-93], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[x, 3.2e+97], N[(N[(N[(b * c), $MachinePrecision] - t$95$2), $MachinePrecision] - t$95$1), $MachinePrecision], t$95$3]]]]]]]
\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])\\\\
[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\\
t_2 := 4 \cdot \left(x \cdot i\right)\\
t_3 := x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) + i \cdot -4\right) + j \cdot \left(k \cdot -27\right)\\
\mathbf{if}\;x \leq -8 \cdot 10^{+147}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq -1.32 \cdot 10^{-45}:\\
\;\;\;\;\left(b \cdot c + 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\right) - t\_2\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-93}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - t\_1\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+97}:\\
\;\;\;\;\left(b \cdot c - t\_2\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if x < -7.9999999999999998e147 or 3.20000000000000016e97 < x Initial program 63.6%
Simplified78.4%
Taylor expanded in x around inf 83.7%
if -7.9999999999999998e147 < x < -1.32000000000000005e-45Initial program 74.3%
Simplified79.6%
Taylor expanded in j around 0 90.1%
Taylor expanded in a around 0 77.6%
if -1.32000000000000005e-45 < x < 1.9999999999999998e-93Initial program 97.7%
Taylor expanded in x around 0 87.0%
if 1.9999999999999998e-93 < x < 3.20000000000000016e97Initial program 92.6%
Taylor expanded in t around 0 85.2%
Final simplification84.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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)) (* x (* 4.0 i)))))
(if (<= t -4e+123)
(* t (* x (+ (* -4.0 (/ a x)) (* 18.0 (* y z)))))
(if (<= t 2.4e-124)
(- (+ (* b c) (* (* x (* 18.0 y)) (* z t))) t_1)
(- (- (* b c) (* t (- (* a 4.0) (* (* x 18.0) (* y z))))) t_1)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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)) + (x * (4.0 * i));
double tmp;
if (t <= -4e+123) {
tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z))));
} else if (t <= 2.4e-124) {
tmp = ((b * c) + ((x * (18.0 * y)) * (z * t))) - t_1;
} else {
tmp = ((b * c) - (t * ((a * 4.0) - ((x * 18.0) * (y * z))))) - 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.
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)) + (x * (4.0d0 * i))
if (t <= (-4d+123)) then
tmp = t * (x * (((-4.0d0) * (a / x)) + (18.0d0 * (y * z))))
else if (t <= 2.4d-124) then
tmp = ((b * c) + ((x * (18.0d0 * y)) * (z * t))) - t_1
else
tmp = ((b * c) - (t * ((a * 4.0d0) - ((x * 18.0d0) * (y * z))))) - 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;
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)) + (x * (4.0 * i));
double tmp;
if (t <= -4e+123) {
tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z))));
} else if (t <= 2.4e-124) {
tmp = ((b * c) + ((x * (18.0 * y)) * (z * t))) - t_1;
} else {
tmp = ((b * c) - (t * ((a * 4.0) - ((x * 18.0) * (y * z))))) - 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]) [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)) + (x * (4.0 * i)) tmp = 0 if t <= -4e+123: tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z)))) elif t <= 2.4e-124: tmp = ((b * c) + ((x * (18.0 * y)) * (z * t))) - t_1 else: tmp = ((b * c) - (t * ((a * 4.0) - ((x * 18.0) * (y * z))))) - 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]) 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 * Float64(27.0 * k)) + Float64(x * Float64(4.0 * i))) tmp = 0.0 if (t <= -4e+123) tmp = Float64(t * Float64(x * Float64(Float64(-4.0 * Float64(a / x)) + Float64(18.0 * Float64(y * z))))); elseif (t <= 2.4e-124) tmp = Float64(Float64(Float64(b * c) + Float64(Float64(x * Float64(18.0 * y)) * Float64(z * t))) - t_1); else tmp = Float64(Float64(Float64(b * c) - Float64(t * Float64(Float64(a * 4.0) - Float64(Float64(x * 18.0) * Float64(y * z))))) - 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])){:}
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)) + (x * (4.0 * i));
tmp = 0.0;
if (t <= -4e+123)
tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z))));
elseif (t <= 2.4e-124)
tmp = ((b * c) + ((x * (18.0 * y)) * (z * t))) - t_1;
else
tmp = ((b * c) - (t * ((a * 4.0) - ((x * 18.0) * (y * z))))) - 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.
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 * N[(27.0 * k), $MachinePrecision]), $MachinePrecision] + N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4e+123], N[(t * N[(x * N[(N[(-4.0 * N[(a / x), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e-124], N[(N[(N[(b * c), $MachinePrecision] + N[(N[(x * N[(18.0 * y), $MachinePrecision]), $MachinePrecision] * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - N[(t * N[(N[(a * 4.0), $MachinePrecision] - N[(N[(x * 18.0), $MachinePrecision] * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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])\\\\
[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(27 \cdot k\right) + x \cdot \left(4 \cdot i\right)\\
\mathbf{if}\;t \leq -4 \cdot 10^{+123}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-4 \cdot \frac{a}{x} + 18 \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-124}:\\
\;\;\;\;\left(b \cdot c + \left(x \cdot \left(18 \cdot y\right)\right) \cdot \left(z \cdot t\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - t \cdot \left(a \cdot 4 - \left(x \cdot 18\right) \cdot \left(y \cdot z\right)\right)\right) - t\_1\\
\end{array}
\end{array}
if t < -3.99999999999999991e123Initial program 63.5%
Simplified84.7%
Taylor expanded in t around inf 96.8%
Taylor expanded in x around inf 96.8%
if -3.99999999999999991e123 < t < 2.39999999999999992e-124Initial program 82.2%
Simplified79.1%
associate-*r*82.2%
distribute-rgt-out--82.2%
associate-+l-82.2%
associate-*l*85.1%
fmm-def85.1%
associate-*l*85.2%
*-commutative85.2%
Applied egg-rr85.2%
fmm-undef85.1%
*-commutative85.1%
associate-*r*85.1%
*-commutative85.1%
*-commutative85.1%
*-commutative85.1%
associate-*l*85.1%
*-commutative85.1%
*-commutative85.1%
Simplified85.1%
Taylor expanded in a around 0 81.6%
associate-*r*81.6%
*-commutative81.6%
neg-mul-181.6%
Simplified81.6%
if 2.39999999999999992e-124 < t Initial program 87.4%
Simplified91.6%
Final simplification87.3%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 (* y (* t (* x (* 18.0 z))))))
(if (<= (* b c) -4.4e+153)
(* b c)
(if (<= (* b c) -1.5e-57)
t_1
(if (<= (* b c) 6.5e-162)
(* -27.0 (* j k))
(if (<= (* b c) 5.8e+220) t_1 (* b c)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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 = y * (t * (x * (18.0 * z)));
double tmp;
if ((b * c) <= -4.4e+153) {
tmp = b * c;
} else if ((b * c) <= -1.5e-57) {
tmp = t_1;
} else if ((b * c) <= 6.5e-162) {
tmp = -27.0 * (j * k);
} else if ((b * c) <= 5.8e+220) {
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.
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 = y * (t * (x * (18.0d0 * z)))
if ((b * c) <= (-4.4d+153)) then
tmp = b * c
else if ((b * c) <= (-1.5d-57)) then
tmp = t_1
else if ((b * c) <= 6.5d-162) then
tmp = (-27.0d0) * (j * k)
else if ((b * c) <= 5.8d+220) 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;
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 = y * (t * (x * (18.0 * z)));
double tmp;
if ((b * c) <= -4.4e+153) {
tmp = b * c;
} else if ((b * c) <= -1.5e-57) {
tmp = t_1;
} else if ((b * c) <= 6.5e-162) {
tmp = -27.0 * (j * k);
} else if ((b * c) <= 5.8e+220) {
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]) [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 = y * (t * (x * (18.0 * z))) tmp = 0 if (b * c) <= -4.4e+153: tmp = b * c elif (b * c) <= -1.5e-57: tmp = t_1 elif (b * c) <= 6.5e-162: tmp = -27.0 * (j * k) elif (b * c) <= 5.8e+220: 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]) 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(y * Float64(t * Float64(x * Float64(18.0 * z)))) tmp = 0.0 if (Float64(b * c) <= -4.4e+153) tmp = Float64(b * c); elseif (Float64(b * c) <= -1.5e-57) tmp = t_1; elseif (Float64(b * c) <= 6.5e-162) tmp = Float64(-27.0 * Float64(j * k)); elseif (Float64(b * c) <= 5.8e+220) 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])){:}
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 = y * (t * (x * (18.0 * z)));
tmp = 0.0;
if ((b * c) <= -4.4e+153)
tmp = b * c;
elseif ((b * c) <= -1.5e-57)
tmp = t_1;
elseif ((b * c) <= 6.5e-162)
tmp = -27.0 * (j * k);
elseif ((b * c) <= 5.8e+220)
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.
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[(y * N[(t * N[(x * N[(18.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -4.4e+153], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1.5e-57], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], 6.5e-162], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 5.8e+220], 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])\\\\
[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 := y \cdot \left(t \cdot \left(x \cdot \left(18 \cdot z\right)\right)\right)\\
\mathbf{if}\;b \cdot c \leq -4.4 \cdot 10^{+153}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -1.5 \cdot 10^{-57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \cdot c \leq 6.5 \cdot 10^{-162}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;b \cdot c \leq 5.8 \cdot 10^{+220}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -4.3999999999999999e153 or 5.79999999999999983e220 < (*.f64 b c) Initial program 75.7%
Simplified83.1%
associate-*r*81.8%
distribute-rgt-out--75.7%
associate-+l-75.7%
associate-*l*76.9%
fmm-def76.9%
associate-*l*76.9%
*-commutative76.9%
Applied egg-rr76.9%
fmm-undef76.9%
*-commutative76.9%
associate-*r*76.9%
*-commutative76.9%
*-commutative76.9%
*-commutative76.9%
associate-*l*76.9%
*-commutative76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in b around inf 66.6%
if -4.3999999999999999e153 < (*.f64 b c) < -1.5e-57 or 6.49999999999999989e-162 < (*.f64 b c) < 5.79999999999999983e220Initial program 80.0%
Simplified83.0%
Taylor expanded in t around inf 53.9%
Taylor expanded in x around inf 35.4%
Taylor expanded in t around 0 35.4%
associate-*r*35.4%
*-commutative35.4%
associate-*r*35.4%
associate-*l*38.1%
associate-*r*38.1%
*-commutative38.1%
*-commutative38.1%
associate-*l*38.2%
associate-*l*38.2%
*-commutative38.2%
Simplified38.2%
if -1.5e-57 < (*.f64 b c) < 6.49999999999999989e-162Initial program 91.4%
Simplified88.5%
Taylor expanded in j around inf 38.4%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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) -4e+152)
(* b c)
(if (<= (* b c) -1.8e-58)
(* t (* 18.0 (* x (* y z))))
(if (<= (* b c) 2.3e+20)
(* -27.0 (* j k))
(if (<= (* b c) 4.8e+220) (* t (* x (* 18.0 (* y z)))) (* b c))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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 ((b * c) <= -4e+152) {
tmp = b * c;
} else if ((b * c) <= -1.8e-58) {
tmp = t * (18.0 * (x * (y * z)));
} else if ((b * c) <= 2.3e+20) {
tmp = -27.0 * (j * k);
} else if ((b * c) <= 4.8e+220) {
tmp = t * (x * (18.0 * (y * z)));
} 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.
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) <= (-4d+152)) then
tmp = b * c
else if ((b * c) <= (-1.8d-58)) then
tmp = t * (18.0d0 * (x * (y * z)))
else if ((b * c) <= 2.3d+20) then
tmp = (-27.0d0) * (j * k)
else if ((b * c) <= 4.8d+220) then
tmp = t * (x * (18.0d0 * (y * z)))
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;
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) <= -4e+152) {
tmp = b * c;
} else if ((b * c) <= -1.8e-58) {
tmp = t * (18.0 * (x * (y * z)));
} else if ((b * c) <= 2.3e+20) {
tmp = -27.0 * (j * k);
} else if ((b * c) <= 4.8e+220) {
tmp = t * (x * (18.0 * (y * z)));
} 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]) [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) <= -4e+152: tmp = b * c elif (b * c) <= -1.8e-58: tmp = t * (18.0 * (x * (y * z))) elif (b * c) <= 2.3e+20: tmp = -27.0 * (j * k) elif (b * c) <= 4.8e+220: tmp = t * (x * (18.0 * (y * z))) 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]) 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) <= -4e+152) tmp = Float64(b * c); elseif (Float64(b * c) <= -1.8e-58) tmp = Float64(t * Float64(18.0 * Float64(x * Float64(y * z)))); elseif (Float64(b * c) <= 2.3e+20) tmp = Float64(-27.0 * Float64(j * k)); elseif (Float64(b * c) <= 4.8e+220) tmp = Float64(t * Float64(x * Float64(18.0 * Float64(y * z)))); 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])){:}
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) <= -4e+152)
tmp = b * c;
elseif ((b * c) <= -1.8e-58)
tmp = t * (18.0 * (x * (y * z)));
elseif ((b * c) <= 2.3e+20)
tmp = -27.0 * (j * k);
elseif ((b * c) <= 4.8e+220)
tmp = t * (x * (18.0 * (y * z)));
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. 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], -4e+152], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1.8e-58], N[(t * N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 2.3e+20], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 4.8e+220], N[(t * N[(x * N[(18.0 * N[(y * z), $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])\\\\
[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 \cdot 10^{+152}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -1.8 \cdot 10^{-58}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;b \cdot c \leq 2.3 \cdot 10^{+20}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;b \cdot c \leq 4.8 \cdot 10^{+220}:\\
\;\;\;\;t \cdot \left(x \cdot \left(18 \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -4.0000000000000002e152 or 4.7999999999999996e220 < (*.f64 b c) Initial program 75.7%
Simplified83.1%
associate-*r*81.8%
distribute-rgt-out--75.7%
associate-+l-75.7%
associate-*l*76.9%
fmm-def76.9%
associate-*l*76.9%
*-commutative76.9%
Applied egg-rr76.9%
fmm-undef76.9%
*-commutative76.9%
associate-*r*76.9%
*-commutative76.9%
*-commutative76.9%
*-commutative76.9%
associate-*l*76.9%
*-commutative76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in b around inf 66.6%
if -4.0000000000000002e152 < (*.f64 b c) < -1.80000000000000005e-58Initial program 82.4%
Simplified92.7%
Taylor expanded in t around inf 52.1%
Taylor expanded in x around inf 37.7%
if -1.80000000000000005e-58 < (*.f64 b c) < 2.3e20Initial program 86.0%
Simplified82.3%
Taylor expanded in j around inf 34.9%
if 2.3e20 < (*.f64 b c) < 4.7999999999999996e220Initial program 82.0%
Simplified85.8%
Taylor expanded in t around inf 61.5%
Taylor expanded in x around inf 61.5%
Taylor expanded in a around 0 47.8%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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))))))
(if (<= (* b c) -2.2e+151)
(* b c)
(if (<= (* b c) -5.4e-59)
t_1
(if (<= (* b c) 6e+18)
(* -27.0 (* j k))
(if (<= (* b c) 1.1e+223) t_1 (* b c)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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 = t * (18.0 * (x * (y * z)));
double tmp;
if ((b * c) <= -2.2e+151) {
tmp = b * c;
} else if ((b * c) <= -5.4e-59) {
tmp = t_1;
} else if ((b * c) <= 6e+18) {
tmp = -27.0 * (j * k);
} else if ((b * c) <= 1.1e+223) {
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.
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)))
if ((b * c) <= (-2.2d+151)) then
tmp = b * c
else if ((b * c) <= (-5.4d-59)) then
tmp = t_1
else if ((b * c) <= 6d+18) then
tmp = (-27.0d0) * (j * k)
else if ((b * c) <= 1.1d+223) 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;
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)));
double tmp;
if ((b * c) <= -2.2e+151) {
tmp = b * c;
} else if ((b * c) <= -5.4e-59) {
tmp = t_1;
} else if ((b * c) <= 6e+18) {
tmp = -27.0 * (j * k);
} else if ((b * c) <= 1.1e+223) {
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]) [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))) tmp = 0 if (b * c) <= -2.2e+151: tmp = b * c elif (b * c) <= -5.4e-59: tmp = t_1 elif (b * c) <= 6e+18: tmp = -27.0 * (j * k) elif (b * c) <= 1.1e+223: 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]) 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(18.0 * Float64(x * Float64(y * z)))) tmp = 0.0 if (Float64(b * c) <= -2.2e+151) tmp = Float64(b * c); elseif (Float64(b * c) <= -5.4e-59) tmp = t_1; elseif (Float64(b * c) <= 6e+18) tmp = Float64(-27.0 * Float64(j * k)); elseif (Float64(b * c) <= 1.1e+223) 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])){:}
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)));
tmp = 0.0;
if ((b * c) <= -2.2e+151)
tmp = b * c;
elseif ((b * c) <= -5.4e-59)
tmp = t_1;
elseif ((b * c) <= 6e+18)
tmp = -27.0 * (j * k);
elseif ((b * c) <= 1.1e+223)
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.
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[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -2.2e+151], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -5.4e-59], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], 6e+18], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1.1e+223], 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])\\\\
[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)\right)\\
\mathbf{if}\;b \cdot c \leq -2.2 \cdot 10^{+151}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -5.4 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \cdot c \leq 6 \cdot 10^{+18}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;b \cdot c \leq 1.1 \cdot 10^{+223}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -2.20000000000000007e151 or 1.1e223 < (*.f64 b c) Initial program 75.7%
Simplified83.1%
associate-*r*81.8%
distribute-rgt-out--75.7%
associate-+l-75.7%
associate-*l*76.9%
fmm-def76.9%
associate-*l*76.9%
*-commutative76.9%
Applied egg-rr76.9%
fmm-undef76.9%
*-commutative76.9%
associate-*r*76.9%
*-commutative76.9%
*-commutative76.9%
*-commutative76.9%
associate-*l*76.9%
*-commutative76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in b around inf 66.6%
if -2.20000000000000007e151 < (*.f64 b c) < -5.3999999999999998e-59 or 6e18 < (*.f64 b c) < 1.1e223Initial program 82.3%
Simplified89.8%
Taylor expanded in t around inf 56.0%
Taylor expanded in x around inf 41.9%
if -5.3999999999999998e-59 < (*.f64 b c) < 6e18Initial program 86.0%
Simplified82.3%
Taylor expanded in j around inf 34.9%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 -6.1e+119)
(* t (* x (+ (* -4.0 (/ a x)) (* 18.0 (* y z)))))
(if (<= t 4.3e+14)
(- (- (* b c) (* 4.0 (* x i))) t_1)
(if (<= t 2.2e+64)
(* t (- (* 18.0 (* x (* y z))) (* a 4.0)))
(if (<= t 6.5e+154)
(- (- (* b c) (* 4.0 (* t a))) t_1)
(* t (- (* a (- 4.0)) (* (* z (* x y)) -18.0)))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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 <= -6.1e+119) {
tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z))));
} else if (t <= 4.3e+14) {
tmp = ((b * c) - (4.0 * (x * i))) - t_1;
} else if (t <= 2.2e+64) {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
} else if (t <= 6.5e+154) {
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
} else {
tmp = t * ((a * -4.0) - ((z * (x * y)) * -18.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.
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 <= (-6.1d+119)) then
tmp = t * (x * (((-4.0d0) * (a / x)) + (18.0d0 * (y * z))))
else if (t <= 4.3d+14) then
tmp = ((b * c) - (4.0d0 * (x * i))) - t_1
else if (t <= 2.2d+64) then
tmp = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
else if (t <= 6.5d+154) then
tmp = ((b * c) - (4.0d0 * (t * a))) - t_1
else
tmp = t * ((a * -4.0d0) - ((z * (x * y)) * (-18.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;
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 <= -6.1e+119) {
tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z))));
} else if (t <= 4.3e+14) {
tmp = ((b * c) - (4.0 * (x * i))) - t_1;
} else if (t <= 2.2e+64) {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
} else if (t <= 6.5e+154) {
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
} else {
tmp = t * ((a * -4.0) - ((z * (x * y)) * -18.0));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [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 <= -6.1e+119: tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z)))) elif t <= 4.3e+14: tmp = ((b * c) - (4.0 * (x * i))) - t_1 elif t <= 2.2e+64: tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0)) elif t <= 6.5e+154: tmp = ((b * c) - (4.0 * (t * a))) - t_1 else: tmp = t * ((a * -4.0) - ((z * (x * y)) * -18.0)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) 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 <= -6.1e+119) tmp = Float64(t * Float64(x * Float64(Float64(-4.0 * Float64(a / x)) + Float64(18.0 * Float64(y * z))))); elseif (t <= 4.3e+14) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) - t_1); elseif (t <= 2.2e+64) tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0))); elseif (t <= 6.5e+154) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - t_1); else tmp = Float64(t * Float64(Float64(a * Float64(-4.0)) - Float64(Float64(z * Float64(x * y)) * -18.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])){:}
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 <= -6.1e+119)
tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z))));
elseif (t <= 4.3e+14)
tmp = ((b * c) - (4.0 * (x * i))) - t_1;
elseif (t <= 2.2e+64)
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
elseif (t <= 6.5e+154)
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
else
tmp = t * ((a * -4.0) - ((z * (x * y)) * -18.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.
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, -6.1e+119], N[(t * N[(x * N[(N[(-4.0 * N[(a / x), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.3e+14], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t, 2.2e+64], N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e+154], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(t * N[(N[(a * (-4.0)), $MachinePrecision] - N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] * -18.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])\\\\
[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 -6.1 \cdot 10^{+119}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-4 \cdot \frac{a}{x} + 18 \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;t \leq 4.3 \cdot 10^{+14}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(x \cdot i\right)\right) - t\_1\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{+64}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{+154}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-4\right) - \left(z \cdot \left(x \cdot y\right)\right) \cdot -18\right)\\
\end{array}
\end{array}
if t < -6.1e119Initial program 63.5%
Simplified84.7%
Taylor expanded in t around inf 96.8%
Taylor expanded in x around inf 96.8%
if -6.1e119 < t < 4.3e14Initial program 84.2%
Taylor expanded in t around 0 81.0%
if 4.3e14 < t < 2.20000000000000002e64Initial program 85.6%
Simplified99.9%
Taylor expanded in t around inf 85.4%
if 2.20000000000000002e64 < t < 6.5000000000000005e154Initial program 92.3%
Taylor expanded in x around 0 81.0%
if 6.5000000000000005e154 < t Initial program 77.6%
Simplified85.1%
associate-*r*85.1%
distribute-rgt-out--77.7%
associate-+l-77.7%
associate-*l*66.9%
fmm-def66.9%
associate-*l*66.9%
*-commutative66.9%
Applied egg-rr66.9%
fmm-undef66.9%
*-commutative66.9%
associate-*r*66.9%
*-commutative66.9%
*-commutative66.9%
*-commutative66.9%
associate-*l*66.9%
*-commutative66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in t around -inf 77.3%
mul-1-neg77.3%
cancel-sign-sub-inv77.3%
metadata-eval77.3%
*-commutative77.3%
associate-*r*77.3%
*-commutative77.3%
Simplified77.3%
Final simplification82.9%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 -4e+120)
(* t (* x (+ (* -4.0 (/ a x)) (* 18.0 (* y z)))))
(if (<= t 61000.0)
(- (- (* b c) (* 4.0 (* x i))) (* (* j 27.0) k))
(if (<= t 3e+132)
(+ (* x (+ (* 18.0 (* t (* y z))) (* i -4.0))) (* j (* k -27.0)))
(* t (- (* a (- 4.0)) (* (* z (* x y)) -18.0)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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 <= -4e+120) {
tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z))));
} else if (t <= 61000.0) {
tmp = ((b * c) - (4.0 * (x * i))) - ((j * 27.0) * k);
} else if (t <= 3e+132) {
tmp = (x * ((18.0 * (t * (y * z))) + (i * -4.0))) + (j * (k * -27.0));
} else {
tmp = t * ((a * -4.0) - ((z * (x * y)) * -18.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.
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 <= (-4d+120)) then
tmp = t * (x * (((-4.0d0) * (a / x)) + (18.0d0 * (y * z))))
else if (t <= 61000.0d0) then
tmp = ((b * c) - (4.0d0 * (x * i))) - ((j * 27.0d0) * k)
else if (t <= 3d+132) then
tmp = (x * ((18.0d0 * (t * (y * z))) + (i * (-4.0d0)))) + (j * (k * (-27.0d0)))
else
tmp = t * ((a * -4.0d0) - ((z * (x * y)) * (-18.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;
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 <= -4e+120) {
tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z))));
} else if (t <= 61000.0) {
tmp = ((b * c) - (4.0 * (x * i))) - ((j * 27.0) * k);
} else if (t <= 3e+132) {
tmp = (x * ((18.0 * (t * (y * z))) + (i * -4.0))) + (j * (k * -27.0));
} else {
tmp = t * ((a * -4.0) - ((z * (x * y)) * -18.0));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [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 <= -4e+120: tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z)))) elif t <= 61000.0: tmp = ((b * c) - (4.0 * (x * i))) - ((j * 27.0) * k) elif t <= 3e+132: tmp = (x * ((18.0 * (t * (y * z))) + (i * -4.0))) + (j * (k * -27.0)) else: tmp = t * ((a * -4.0) - ((z * (x * y)) * -18.0)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) 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 <= -4e+120) tmp = Float64(t * Float64(x * Float64(Float64(-4.0 * Float64(a / x)) + Float64(18.0 * Float64(y * z))))); elseif (t <= 61000.0) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) - Float64(Float64(j * 27.0) * k)); elseif (t <= 3e+132) tmp = Float64(Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) + Float64(i * -4.0))) + Float64(j * Float64(k * -27.0))); else tmp = Float64(t * Float64(Float64(a * Float64(-4.0)) - Float64(Float64(z * Float64(x * y)) * -18.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])){:}
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 <= -4e+120)
tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z))));
elseif (t <= 61000.0)
tmp = ((b * c) - (4.0 * (x * i))) - ((j * 27.0) * k);
elseif (t <= 3e+132)
tmp = (x * ((18.0 * (t * (y * z))) + (i * -4.0))) + (j * (k * -27.0));
else
tmp = t * ((a * -4.0) - ((z * (x * y)) * -18.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. 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, -4e+120], N[(t * N[(x * N[(N[(-4.0 * N[(a / x), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 61000.0], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e+132], N[(N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(a * (-4.0)), $MachinePrecision] - N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] * -18.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])\\\\
[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 -4 \cdot 10^{+120}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-4 \cdot \frac{a}{x} + 18 \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;t \leq 61000:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(x \cdot i\right)\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+132}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) + i \cdot -4\right) + j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-4\right) - \left(z \cdot \left(x \cdot y\right)\right) \cdot -18\right)\\
\end{array}
\end{array}
if t < -3.9999999999999999e120Initial program 63.5%
Simplified84.7%
Taylor expanded in t around inf 96.8%
Taylor expanded in x around inf 96.8%
if -3.9999999999999999e120 < t < 61000Initial program 84.2%
Taylor expanded in t around 0 81.0%
if 61000 < t < 2.9999999999999998e132Initial program 87.5%
Simplified96.8%
Taylor expanded in x around inf 75.7%
if 2.9999999999999998e132 < t Initial program 82.7%
Simplified85.7%
associate-*r*85.6%
distribute-rgt-out--79.9%
associate-+l-79.9%
associate-*l*71.6%
fmm-def71.6%
associate-*l*71.6%
*-commutative71.6%
Applied egg-rr71.6%
fmm-undef71.6%
*-commutative71.6%
associate-*r*71.6%
*-commutative71.6%
*-commutative71.6%
*-commutative71.6%
associate-*l*71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in t around -inf 76.8%
mul-1-neg76.8%
cancel-sign-sub-inv76.8%
metadata-eval76.8%
*-commutative76.8%
associate-*r*76.8%
*-commutative76.8%
Simplified76.8%
Final simplification81.8%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 -1.65e+118)
(* t (* x (+ (* -4.0 (/ a x)) (* 18.0 (* y z)))))
(if (<= t 1.2e-168)
(- (* b c) (* 4.0 (* x i)))
(if (<= t 0.003)
(+ (* b c) (* j (* k -27.0)))
(* t (- (* 18.0 (* x (* y z))) (* a 4.0)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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 <= -1.65e+118) {
tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z))));
} else if (t <= 1.2e-168) {
tmp = (b * c) - (4.0 * (x * i));
} else if (t <= 0.003) {
tmp = (b * c) + (j * (k * -27.0));
} else {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.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.
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 <= (-1.65d+118)) then
tmp = t * (x * (((-4.0d0) * (a / x)) + (18.0d0 * (y * z))))
else if (t <= 1.2d-168) then
tmp = (b * c) - (4.0d0 * (x * i))
else if (t <= 0.003d0) then
tmp = (b * c) + (j * (k * (-27.0d0)))
else
tmp = t * ((18.0d0 * (x * (y * z))) - (a * 4.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;
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 <= -1.65e+118) {
tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z))));
} else if (t <= 1.2e-168) {
tmp = (b * c) - (4.0 * (x * i));
} else if (t <= 0.003) {
tmp = (b * c) + (j * (k * -27.0));
} else {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [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 <= -1.65e+118: tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z)))) elif t <= 1.2e-168: tmp = (b * c) - (4.0 * (x * i)) elif t <= 0.003: tmp = (b * c) + (j * (k * -27.0)) else: tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) 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 <= -1.65e+118) tmp = Float64(t * Float64(x * Float64(Float64(-4.0 * Float64(a / x)) + Float64(18.0 * Float64(y * z))))); elseif (t <= 1.2e-168) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); elseif (t <= 0.003) tmp = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0))); else tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.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])){:}
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 <= -1.65e+118)
tmp = t * (x * ((-4.0 * (a / x)) + (18.0 * (y * z))));
elseif (t <= 1.2e-168)
tmp = (b * c) - (4.0 * (x * i));
elseif (t <= 0.003)
tmp = (b * c) + (j * (k * -27.0));
else
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.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. 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, -1.65e+118], N[(t * N[(x * N[(N[(-4.0 * N[(a / x), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.2e-168], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.003], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.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])\\\\
[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 -1.65 \cdot 10^{+118}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-4 \cdot \frac{a}{x} + 18 \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-168}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;t \leq 0.003:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\end{array}
\end{array}
if t < -1.65e118Initial program 63.5%
Simplified84.7%
Taylor expanded in t around inf 96.8%
Taylor expanded in x around inf 96.8%
if -1.65e118 < t < 1.2e-168Initial program 80.7%
Simplified78.2%
Taylor expanded in j around 0 65.9%
Taylor expanded in t around 0 62.9%
if 1.2e-168 < t < 0.0030000000000000001Initial program 94.7%
Simplified94.8%
Taylor expanded in b around inf 78.2%
if 0.0030000000000000001 < t Initial program 85.0%
Simplified89.5%
Taylor expanded in t around inf 66.1%
Final simplification70.4%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 -1.72e+118)
t_1
(if (<= t 9.5e-159)
(- (* b c) (* 4.0 (* x i)))
(if (<= t 2.8) (+ (* b c) (* 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);
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 <= -1.72e+118) {
tmp = t_1;
} else if (t <= 9.5e-159) {
tmp = (b * c) - (4.0 * (x * i));
} else if (t <= 2.8) {
tmp = (b * c) + (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.
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 <= (-1.72d+118)) then
tmp = t_1
else if (t <= 9.5d-159) then
tmp = (b * c) - (4.0d0 * (x * i))
else if (t <= 2.8d0) then
tmp = (b * c) + (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;
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 <= -1.72e+118) {
tmp = t_1;
} else if (t <= 9.5e-159) {
tmp = (b * c) - (4.0 * (x * i));
} else if (t <= 2.8) {
tmp = (b * c) + (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]) [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 <= -1.72e+118: tmp = t_1 elif t <= 9.5e-159: tmp = (b * c) - (4.0 * (x * i)) elif t <= 2.8: tmp = (b * c) + (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]) 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 <= -1.72e+118) tmp = t_1; elseif (t <= 9.5e-159) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); elseif (t <= 2.8) tmp = Float64(Float64(b * c) + Float64(j * Float64(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])){:}
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 <= -1.72e+118)
tmp = t_1;
elseif (t <= 9.5e-159)
tmp = (b * c) - (4.0 * (x * i));
elseif (t <= 2.8)
tmp = (b * c) + (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.
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, -1.72e+118], t$95$1, If[LessEqual[t, 9.5e-159], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $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])\\\\
[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 -1.72 \cdot 10^{+118}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-159}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;t \leq 2.8:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.71999999999999999e118 or 2.7999999999999998 < t Initial program 77.9%
Simplified87.9%
Taylor expanded in t around inf 76.2%
if -1.71999999999999999e118 < t < 9.4999999999999997e-159Initial program 80.7%
Simplified78.2%
Taylor expanded in j around 0 65.9%
Taylor expanded in t around 0 62.9%
if 9.4999999999999997e-159 < t < 2.7999999999999998Initial program 94.7%
Simplified94.8%
Taylor expanded in b around inf 78.2%
Final simplification70.4%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 -1.2e+115)
(* z (* y (* x (* 18.0 t))))
(if (<= t 2.8e-168)
(- (* b c) (* 4.0 (* x i)))
(if (<= t 9.2e+86)
(+ (* b c) (* j (* k -27.0)))
(* c (+ b (/ (* t (* a -4.0)) c)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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 <= -1.2e+115) {
tmp = z * (y * (x * (18.0 * t)));
} else if (t <= 2.8e-168) {
tmp = (b * c) - (4.0 * (x * i));
} else if (t <= 9.2e+86) {
tmp = (b * c) + (j * (k * -27.0));
} else {
tmp = c * (b + ((t * (a * -4.0)) / 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.
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 <= (-1.2d+115)) then
tmp = z * (y * (x * (18.0d0 * t)))
else if (t <= 2.8d-168) then
tmp = (b * c) - (4.0d0 * (x * i))
else if (t <= 9.2d+86) then
tmp = (b * c) + (j * (k * (-27.0d0)))
else
tmp = c * (b + ((t * (a * (-4.0d0))) / 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;
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 <= -1.2e+115) {
tmp = z * (y * (x * (18.0 * t)));
} else if (t <= 2.8e-168) {
tmp = (b * c) - (4.0 * (x * i));
} else if (t <= 9.2e+86) {
tmp = (b * c) + (j * (k * -27.0));
} else {
tmp = c * (b + ((t * (a * -4.0)) / c));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [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 <= -1.2e+115: tmp = z * (y * (x * (18.0 * t))) elif t <= 2.8e-168: tmp = (b * c) - (4.0 * (x * i)) elif t <= 9.2e+86: tmp = (b * c) + (j * (k * -27.0)) else: tmp = c * (b + ((t * (a * -4.0)) / c)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) 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 <= -1.2e+115) tmp = Float64(z * Float64(y * Float64(x * Float64(18.0 * t)))); elseif (t <= 2.8e-168) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); elseif (t <= 9.2e+86) tmp = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0))); else tmp = Float64(c * Float64(b + Float64(Float64(t * Float64(a * -4.0)) / 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])){:}
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 <= -1.2e+115)
tmp = z * (y * (x * (18.0 * t)));
elseif (t <= 2.8e-168)
tmp = (b * c) - (4.0 * (x * i));
elseif (t <= 9.2e+86)
tmp = (b * c) + (j * (k * -27.0));
else
tmp = c * (b + ((t * (a * -4.0)) / 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. 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, -1.2e+115], N[(z * N[(y * N[(x * N[(18.0 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e-168], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.2e+86], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(b + N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] / c), $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])\\\\
[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 -1.2 \cdot 10^{+115}:\\
\;\;\;\;z \cdot \left(y \cdot \left(x \cdot \left(18 \cdot t\right)\right)\right)\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-168}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{+86}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(b + \frac{t \cdot \left(a \cdot -4\right)}{c}\right)\\
\end{array}
\end{array}
if t < -1.2e115Initial program 63.8%
Simplified83.2%
Taylor expanded in y around inf 65.0%
associate-*r*70.2%
Simplified70.2%
Taylor expanded in z around inf 64.6%
Taylor expanded in j around 0 65.1%
associate-*r*75.6%
associate-*r*75.7%
associate-*r*75.6%
*-commutative75.6%
Simplified75.6%
if -1.2e115 < t < 2.8000000000000002e-168Initial program 81.1%
Simplified78.5%
Taylor expanded in j around 0 65.9%
Taylor expanded in t around 0 62.8%
if 2.8000000000000002e-168 < t < 9.19999999999999958e86Initial program 89.7%
Simplified94.8%
Taylor expanded in b around inf 62.5%
if 9.19999999999999958e86 < t Initial program 87.1%
Simplified89.3%
Taylor expanded in j around 0 82.7%
Taylor expanded in x around 0 52.1%
Taylor expanded in c around inf 50.2%
associate-*r/50.2%
associate-*r*50.2%
Simplified50.2%
Final simplification62.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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.9e+148)
(* b c)
(if (<= (* b c) -1.25e+45)
(* x (* i -4.0))
(if (<= (* b c) 8.8e+140) (* -27.0 (* j k)) (* b c)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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 ((b * c) <= -2.9e+148) {
tmp = b * c;
} else if ((b * c) <= -1.25e+45) {
tmp = x * (i * -4.0);
} else if ((b * c) <= 8.8e+140) {
tmp = -27.0 * (j * k);
} 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.
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.9d+148)) then
tmp = b * c
else if ((b * c) <= (-1.25d+45)) then
tmp = x * (i * (-4.0d0))
else if ((b * c) <= 8.8d+140) then
tmp = (-27.0d0) * (j * k)
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;
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.9e+148) {
tmp = b * c;
} else if ((b * c) <= -1.25e+45) {
tmp = x * (i * -4.0);
} else if ((b * c) <= 8.8e+140) {
tmp = -27.0 * (j * k);
} 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]) [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.9e+148: tmp = b * c elif (b * c) <= -1.25e+45: tmp = x * (i * -4.0) elif (b * c) <= 8.8e+140: tmp = -27.0 * (j * k) 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]) 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.9e+148) tmp = Float64(b * c); elseif (Float64(b * c) <= -1.25e+45) tmp = Float64(x * Float64(i * -4.0)); elseif (Float64(b * c) <= 8.8e+140) tmp = Float64(-27.0 * Float64(j * k)); 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])){:}
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.9e+148)
tmp = b * c;
elseif ((b * c) <= -1.25e+45)
tmp = x * (i * -4.0);
elseif ((b * c) <= 8.8e+140)
tmp = -27.0 * (j * k);
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. 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.9e+148], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1.25e+45], N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 8.8e+140], N[(-27.0 * N[(j * k), $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])\\\\
[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.9 \cdot 10^{+148}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -1.25 \cdot 10^{+45}:\\
\;\;\;\;x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq 8.8 \cdot 10^{+140}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -2.9e148 or 8.7999999999999993e140 < (*.f64 b c) Initial program 76.4%
Simplified84.0%
associate-*r*82.9%
distribute-rgt-out--76.4%
associate-+l-76.4%
associate-*l*76.5%
fmm-def76.4%
associate-*l*76.5%
*-commutative76.5%
Applied egg-rr76.5%
fmm-undef76.5%
*-commutative76.5%
associate-*r*76.5%
*-commutative76.5%
*-commutative76.5%
*-commutative76.5%
associate-*l*76.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in b around inf 62.3%
if -2.9e148 < (*.f64 b c) < -1.25e45Initial program 77.4%
Simplified89.2%
associate-*r*83.3%
distribute-rgt-out--77.4%
associate-+l-77.4%
associate-*l*71.6%
fmm-def71.6%
associate-*l*71.6%
*-commutative71.6%
Applied egg-rr71.6%
fmm-undef71.6%
*-commutative71.6%
associate-*r*71.6%
*-commutative71.6%
*-commutative71.6%
*-commutative71.6%
associate-*l*71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in i around inf 48.2%
metadata-eval48.2%
distribute-lft-neg-in48.2%
associate-*r*48.2%
*-commutative48.2%
distribute-rgt-neg-in48.2%
distribute-lft-neg-in48.2%
metadata-eval48.2%
Simplified48.2%
if -1.25e45 < (*.f64 b c) < 8.7999999999999993e140Initial program 85.6%
Simplified84.3%
Taylor expanded in j around inf 32.9%
Final simplification44.6%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. 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 (<= x -4.2e+28) (not (<= x 3.4e+83))) (* x (- (* 18.0 (* t (* y z))) (* 4.0 i))) (- (- (* b c) (* 4.0 (* t a))) (* (* j 27.0) k))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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 ((x <= -4.2e+28) || !(x <= 3.4e+83)) {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
} else {
tmp = ((b * c) - (4.0 * (t * a))) - ((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.
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 <= (-4.2d+28)) .or. (.not. (x <= 3.4d+83))) then
tmp = x * ((18.0d0 * (t * (y * z))) - (4.0d0 * i))
else
tmp = ((b * c) - (4.0d0 * (t * a))) - ((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;
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 <= -4.2e+28) || !(x <= 3.4e+83)) {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
} else {
tmp = ((b * c) - (4.0 * (t * a))) - ((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]) [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 <= -4.2e+28) or not (x <= 3.4e+83): tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)) else: tmp = ((b * c) - (4.0 * (t * a))) - ((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]) 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 <= -4.2e+28) || !(x <= 3.4e+83)) tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i))); else tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - 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])){:}
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 <= -4.2e+28) || ~((x <= 3.4e+83)))
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
else
tmp = ((b * c) - (4.0 * (t * a))) - ((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. 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[x, -4.2e+28], N[Not[LessEqual[x, 3.4e+83]], $MachinePrecision]], N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $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])\\\\
[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 -4.2 \cdot 10^{+28} \lor \neg \left(x \leq 3.4 \cdot 10^{+83}\right):\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - \left(j \cdot 27\right) \cdot k\\
\end{array}
\end{array}
if x < -4.19999999999999978e28 or 3.3999999999999998e83 < x Initial program 65.5%
Simplified78.5%
Taylor expanded in x around inf 72.6%
if -4.19999999999999978e28 < x < 3.3999999999999998e83Initial program 95.0%
Taylor expanded in x around 0 76.9%
Final simplification75.0%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 (<= (* b c) -2e+150)
(* c (+ b (/ (* t (* a -4.0)) c)))
(if (<= (* b c) 1e+22) (+ t_1 (* i (* x -4.0))) (+ (* b c) t_1)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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 * (k * -27.0);
double tmp;
if ((b * c) <= -2e+150) {
tmp = c * (b + ((t * (a * -4.0)) / c));
} else if ((b * c) <= 1e+22) {
tmp = t_1 + (i * (x * -4.0));
} else {
tmp = (b * c) + 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.
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 ((b * c) <= (-2d+150)) then
tmp = c * (b + ((t * (a * (-4.0d0))) / c))
else if ((b * c) <= 1d+22) then
tmp = t_1 + (i * (x * (-4.0d0)))
else
tmp = (b * c) + 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;
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 ((b * c) <= -2e+150) {
tmp = c * (b + ((t * (a * -4.0)) / c));
} else if ((b * c) <= 1e+22) {
tmp = t_1 + (i * (x * -4.0));
} else {
tmp = (b * c) + 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]) [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 (b * c) <= -2e+150: tmp = c * (b + ((t * (a * -4.0)) / c)) elif (b * c) <= 1e+22: tmp = t_1 + (i * (x * -4.0)) else: tmp = (b * c) + 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]) 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 (Float64(b * c) <= -2e+150) tmp = Float64(c * Float64(b + Float64(Float64(t * Float64(a * -4.0)) / c))); elseif (Float64(b * c) <= 1e+22) tmp = Float64(t_1 + Float64(i * Float64(x * -4.0))); else tmp = Float64(Float64(b * c) + 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])){:}
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 ((b * c) <= -2e+150)
tmp = c * (b + ((t * (a * -4.0)) / c));
elseif ((b * c) <= 1e+22)
tmp = t_1 + (i * (x * -4.0));
else
tmp = (b * c) + 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.
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[N[(b * c), $MachinePrecision], -2e+150], N[(c * N[(b + N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1e+22], N[(t$95$1 + N[(i * N[(x * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $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])\\\\
[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}\;b \cdot c \leq -2 \cdot 10^{+150}:\\
\;\;\;\;c \cdot \left(b + \frac{t \cdot \left(a \cdot -4\right)}{c}\right)\\
\mathbf{elif}\;b \cdot c \leq 10^{+22}:\\
\;\;\;\;t\_1 + i \cdot \left(x \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + t\_1\\
\end{array}
\end{array}
if (*.f64 b c) < -1.99999999999999996e150Initial program 77.7%
Simplified83.0%
Taylor expanded in j around 0 81.6%
Taylor expanded in x around 0 70.2%
Taylor expanded in c around inf 70.3%
associate-*r/70.3%
associate-*r*70.3%
Simplified70.3%
if -1.99999999999999996e150 < (*.f64 b c) < 1e22Initial program 85.9%
Simplified85.9%
Taylor expanded in i around inf 58.9%
metadata-eval58.9%
distribute-lft-neg-in58.9%
*-commutative58.9%
associate-*r*58.9%
distribute-rgt-neg-in58.9%
distribute-rgt-neg-in58.9%
metadata-eval58.9%
*-commutative58.9%
Simplified58.9%
if 1e22 < (*.f64 b c) Initial program 74.4%
Simplified82.4%
Taylor expanded in b around inf 63.1%
Final simplification62.3%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 -3.85e+115)
(* z (* y (* x (* 18.0 t))))
(if (<= t 3.2e-165)
(- (* b c) (* 4.0 (* x i)))
(if (<= t 8.2e+86)
(+ (* b c) (* j (* k -27.0)))
(+ (* b c) (* -4.0 (* t a)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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 <= -3.85e+115) {
tmp = z * (y * (x * (18.0 * t)));
} else if (t <= 3.2e-165) {
tmp = (b * c) - (4.0 * (x * i));
} else if (t <= 8.2e+86) {
tmp = (b * c) + (j * (k * -27.0));
} else {
tmp = (b * c) + (-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.
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 <= (-3.85d+115)) then
tmp = z * (y * (x * (18.0d0 * t)))
else if (t <= 3.2d-165) then
tmp = (b * c) - (4.0d0 * (x * i))
else if (t <= 8.2d+86) then
tmp = (b * c) + (j * (k * (-27.0d0)))
else
tmp = (b * c) + ((-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;
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 <= -3.85e+115) {
tmp = z * (y * (x * (18.0 * t)));
} else if (t <= 3.2e-165) {
tmp = (b * c) - (4.0 * (x * i));
} else if (t <= 8.2e+86) {
tmp = (b * c) + (j * (k * -27.0));
} else {
tmp = (b * c) + (-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]) [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 <= -3.85e+115: tmp = z * (y * (x * (18.0 * t))) elif t <= 3.2e-165: tmp = (b * c) - (4.0 * (x * i)) elif t <= 8.2e+86: tmp = (b * c) + (j * (k * -27.0)) else: tmp = (b * c) + (-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]) 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 <= -3.85e+115) tmp = Float64(z * Float64(y * Float64(x * Float64(18.0 * t)))); elseif (t <= 3.2e-165) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); elseif (t <= 8.2e+86) tmp = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0))); else tmp = Float64(Float64(b * c) + 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])){:}
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 <= -3.85e+115)
tmp = z * (y * (x * (18.0 * t)));
elseif (t <= 3.2e-165)
tmp = (b * c) - (4.0 * (x * i));
elseif (t <= 8.2e+86)
tmp = (b * c) + (j * (k * -27.0));
else
tmp = (b * c) + (-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. 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, -3.85e+115], N[(z * N[(y * N[(x * N[(18.0 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.2e-165], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.2e+86], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $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])\\\\
[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 -3.85 \cdot 10^{+115}:\\
\;\;\;\;z \cdot \left(y \cdot \left(x \cdot \left(18 \cdot t\right)\right)\right)\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{-165}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{+86}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\end{array}
\end{array}
if t < -3.84999999999999984e115Initial program 63.8%
Simplified83.2%
Taylor expanded in y around inf 65.0%
associate-*r*70.2%
Simplified70.2%
Taylor expanded in z around inf 64.6%
Taylor expanded in j around 0 65.1%
associate-*r*75.6%
associate-*r*75.7%
associate-*r*75.6%
*-commutative75.6%
Simplified75.6%
if -3.84999999999999984e115 < t < 3.20000000000000013e-165Initial program 81.1%
Simplified78.5%
Taylor expanded in j around 0 65.9%
Taylor expanded in t around 0 62.8%
if 3.20000000000000013e-165 < t < 8.1999999999999998e86Initial program 89.7%
Simplified94.8%
Taylor expanded in b around inf 62.5%
if 8.1999999999999998e86 < t Initial program 87.1%
Simplified89.3%
Taylor expanded in j around 0 82.7%
Taylor expanded in x around 0 52.1%
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. 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) -2.9e+146) (not (<= (* b c) 1.65e+140))) (* 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);
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.9e+146) || !((b * c) <= 1.65e+140)) {
tmp = b * c;
} else {
tmp = -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.
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.9d+146)) .or. (.not. ((b * c) <= 1.65d+140))) then
tmp = b * c
else
tmp = (-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;
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.9e+146) || !((b * c) <= 1.65e+140)) {
tmp = b * c;
} else {
tmp = -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]) [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.9e+146) or not ((b * c) <= 1.65e+140): tmp = b * c else: tmp = -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]) 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.9e+146) || !(Float64(b * c) <= 1.65e+140)) tmp = Float64(b * c); else tmp = 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])){:}
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.9e+146) || ~(((b * c) <= 1.65e+140)))
tmp = b * c;
else
tmp = -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. 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], -2.9e+146], N[Not[LessEqual[N[(b * c), $MachinePrecision], 1.65e+140]], $MachinePrecision]], N[(b * c), $MachinePrecision], N[(-27.0 * N[(j * 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])\\\\
[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.9 \cdot 10^{+146} \lor \neg \left(b \cdot c \leq 1.65 \cdot 10^{+140}\right):\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -2.8999999999999998e146 or 1.6500000000000001e140 < (*.f64 b c) Initial program 76.4%
Simplified84.0%
associate-*r*82.9%
distribute-rgt-out--76.4%
associate-+l-76.4%
associate-*l*76.5%
fmm-def76.4%
associate-*l*76.5%
*-commutative76.5%
Applied egg-rr76.5%
fmm-undef76.5%
*-commutative76.5%
associate-*r*76.5%
*-commutative76.5%
*-commutative76.5%
*-commutative76.5%
associate-*l*76.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in b around inf 62.3%
if -2.8999999999999998e146 < (*.f64 b c) < 1.6500000000000001e140Initial program 84.8%
Simplified84.8%
Taylor expanded in j around inf 31.4%
Final simplification42.6%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 -4e+115)
(* z (* y (* x (* 18.0 t))))
(if (<= t 7e+86)
(+ (* b c) (* j (* k -27.0)))
(+ (* b c) (* -4.0 (* t a))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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 <= -4e+115) {
tmp = z * (y * (x * (18.0 * t)));
} else if (t <= 7e+86) {
tmp = (b * c) + (j * (k * -27.0));
} else {
tmp = (b * c) + (-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.
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 <= (-4d+115)) then
tmp = z * (y * (x * (18.0d0 * t)))
else if (t <= 7d+86) then
tmp = (b * c) + (j * (k * (-27.0d0)))
else
tmp = (b * c) + ((-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;
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 <= -4e+115) {
tmp = z * (y * (x * (18.0 * t)));
} else if (t <= 7e+86) {
tmp = (b * c) + (j * (k * -27.0));
} else {
tmp = (b * c) + (-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]) [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 <= -4e+115: tmp = z * (y * (x * (18.0 * t))) elif t <= 7e+86: tmp = (b * c) + (j * (k * -27.0)) else: tmp = (b * c) + (-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]) 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 <= -4e+115) tmp = Float64(z * Float64(y * Float64(x * Float64(18.0 * t)))); elseif (t <= 7e+86) tmp = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0))); else tmp = Float64(Float64(b * c) + 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])){:}
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 <= -4e+115)
tmp = z * (y * (x * (18.0 * t)));
elseif (t <= 7e+86)
tmp = (b * c) + (j * (k * -27.0));
else
tmp = (b * c) + (-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. 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, -4e+115], N[(z * N[(y * N[(x * N[(18.0 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7e+86], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $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])\\\\
[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 -4 \cdot 10^{+115}:\\
\;\;\;\;z \cdot \left(y \cdot \left(x \cdot \left(18 \cdot t\right)\right)\right)\\
\mathbf{elif}\;t \leq 7 \cdot 10^{+86}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\end{array}
\end{array}
if t < -4.0000000000000001e115Initial program 63.8%
Simplified83.2%
Taylor expanded in y around inf 65.0%
associate-*r*70.2%
Simplified70.2%
Taylor expanded in z around inf 64.6%
Taylor expanded in j around 0 65.1%
associate-*r*75.6%
associate-*r*75.7%
associate-*r*75.6%
*-commutative75.6%
Simplified75.6%
if -4.0000000000000001e115 < t < 7.00000000000000038e86Initial program 84.0%
Simplified84.1%
Taylor expanded in b around inf 55.0%
if 7.00000000000000038e86 < t Initial program 87.1%
Simplified89.3%
Taylor expanded in j around 0 82.7%
Taylor expanded in x around 0 52.1%
Final simplification57.4%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 -2.1e+138)
(* y (* t (* x (* 18.0 z))))
(if (<= y 4.8e-172)
(+ (* b c) (* -4.0 (* t a)))
(* z (* y (* x (* 18.0 t)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && 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 (y <= -2.1e+138) {
tmp = y * (t * (x * (18.0 * z)));
} else if (y <= 4.8e-172) {
tmp = (b * c) + (-4.0 * (t * a));
} else {
tmp = z * (y * (x * (18.0 * t)));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 <= (-2.1d+138)) then
tmp = y * (t * (x * (18.0d0 * z)))
else if (y <= 4.8d-172) then
tmp = (b * c) + ((-4.0d0) * (t * a))
else
tmp = z * (y * (x * (18.0d0 * t)))
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;
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 <= -2.1e+138) {
tmp = y * (t * (x * (18.0 * z)));
} else if (y <= 4.8e-172) {
tmp = (b * c) + (-4.0 * (t * a));
} else {
tmp = z * (y * (x * (18.0 * t)));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [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 <= -2.1e+138: tmp = y * (t * (x * (18.0 * z))) elif y <= 4.8e-172: tmp = (b * c) + (-4.0 * (t * a)) else: tmp = z * (y * (x * (18.0 * t))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) 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 <= -2.1e+138) tmp = Float64(y * Float64(t * Float64(x * Float64(18.0 * z)))); elseif (y <= 4.8e-172) tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))); else tmp = Float64(z * Float64(y * Float64(x * Float64(18.0 * t)))); 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])){:}
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 <= -2.1e+138)
tmp = y * (t * (x * (18.0 * z)));
elseif (y <= 4.8e-172)
tmp = (b * c) + (-4.0 * (t * a));
else
tmp = z * (y * (x * (18.0 * t)));
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. 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, -2.1e+138], N[(y * N[(t * N[(x * N[(18.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.8e-172], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(y * N[(x * N[(18.0 * t), $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])\\\\
[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 -2.1 \cdot 10^{+138}:\\
\;\;\;\;y \cdot \left(t \cdot \left(x \cdot \left(18 \cdot z\right)\right)\right)\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-172}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(y \cdot \left(x \cdot \left(18 \cdot t\right)\right)\right)\\
\end{array}
\end{array}
if y < -2.10000000000000007e138Initial program 75.2%
Simplified69.6%
Taylor expanded in t around inf 56.0%
Taylor expanded in x around inf 55.5%
Taylor expanded in t around 0 55.5%
associate-*r*55.5%
*-commutative55.5%
associate-*r*53.0%
associate-*l*55.5%
associate-*r*55.5%
*-commutative55.5%
*-commutative55.5%
associate-*l*55.6%
associate-*l*55.6%
*-commutative55.6%
Simplified55.6%
if -2.10000000000000007e138 < y < 4.8000000000000002e-172Initial program 89.1%
Simplified90.0%
Taylor expanded in j around 0 75.3%
Taylor expanded in x around 0 50.3%
if 4.8000000000000002e-172 < y Initial program 75.4%
Simplified84.4%
Taylor expanded in y around inf 50.0%
associate-*r*50.9%
Simplified50.9%
Taylor expanded in z around inf 48.1%
Taylor expanded in j around 0 37.1%
associate-*r*37.2%
associate-*r*37.2%
associate-*r*37.2%
*-commutative37.2%
Simplified37.2%
Final simplification45.9%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. 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);
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.
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;
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]) [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]) 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])){:}
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. 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])\\\\
[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 81.7%
Simplified84.5%
associate-*r*85.7%
distribute-rgt-out--81.4%
associate-+l-81.4%
associate-*l*80.9%
fmm-def80.9%
associate-*l*80.6%
*-commutative80.6%
Applied egg-rr80.6%
fmm-undef80.6%
*-commutative80.6%
associate-*r*80.6%
*-commutative80.6%
*-commutative80.6%
*-commutative80.6%
associate-*l*80.6%
*-commutative80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in b around inf 25.9%
(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 2024185
(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)))