
(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 22 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
(if (<=
(-
(-
(+ (- (* (* (* (* x 18.0) y) z) t) (* t (* a 4.0))) (* b c))
(* (* x 4.0) i))
(* (* j 27.0) k))
INFINITY)
(+
(fma t (fma x (* 18.0 (* y z)) (* a -4.0)) (fma b c (* x (* i -4.0))))
(* j (* k -27.0)))
(* 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 tmp;
if (((((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)) <= ((double) INFINITY)) {
tmp = fma(t, fma(x, (18.0 * (y * z)), (a * -4.0)), fma(b, c, (x * (i * -4.0)))) + (j * (k * -27.0));
} 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) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) <= Inf) tmp = Float64(fma(t, fma(x, Float64(18.0 * Float64(y * z)), Float64(a * -4.0)), fma(b, c, Float64(x * Float64(i * -4.0)))) + Float64(j * Float64(k * -27.0))); else tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i))); end return 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[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(t * N[(x * N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(b * c + N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[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}\;\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\
\end{array}
\end{array}
if (-.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 97.4%
Simplified97.4%
if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) Initial program 0.0%
Simplified30.0%
Taylor expanded in x around inf 67.3%
Final simplification93.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 (<=
(-
(-
(+ (- (* (* (* (* x 18.0) y) z) t) (* t (* a 4.0))) (* b c))
(* (* x 4.0) i))
(* (* j 27.0) k))
INFINITY)
(-
(+ (* b c) (* t (- (* (* x 18.0) (* y z)) (* a 4.0))))
(+ (* x (* 4.0 i)) (* j (* 27.0 k))))
(* x (- (* 18.0 (* t (* y z))) (* 4.0 i)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
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 * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)) <= ((double) INFINITY)) {
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k)));
} 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 tmp;
if (((((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)) <= Double.POSITIVE_INFINITY) {
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k)));
} else {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [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 * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)) <= math.inf: tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k))) else: tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) 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(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) <= Inf) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(x * 18.0) * Float64(y * z)) - Float64(a * 4.0)))) - Float64(Float64(x * Float64(4.0 * i)) + Float64(j * Float64(27.0 * k)))); 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)
tmp = 0.0;
if (((((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)) <= Inf)
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k)));
else
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. 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[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(x * 18.0), $MachinePrecision] * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision] + N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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}
\mathbf{if}\;\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \leq \infty:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right)\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)\\
\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 97.4%
Simplified97.4%
if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) Initial program 0.0%
Simplified30.0%
Taylor expanded in x around inf 67.3%
Final simplification93.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 (* i -4.0)))
(t_2 (* t (* a -4.0)))
(t_3 (* x (* y z)))
(t_4 (* t (* 18.0 t_3))))
(if (<= j -3.5e+168)
(* -27.0 (* j k))
(if (<= j -3.4e+52)
t_4
(if (<= j -4.7e-26)
t_1
(if (<= j -5.5e-47)
(* 18.0 (* t t_3))
(if (<= j -6e-56)
(* b c)
(if (<= j -2.4e-123)
t_1
(if (<= j -4.3e-193)
t_2
(if (<= j 6.5e-224)
t_4
(if (<= j 1.05e-66)
t_2
(* a (* j (* -27.0 (/ k 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 t_1 = x * (i * -4.0);
double t_2 = t * (a * -4.0);
double t_3 = x * (y * z);
double t_4 = t * (18.0 * t_3);
double tmp;
if (j <= -3.5e+168) {
tmp = -27.0 * (j * k);
} else if (j <= -3.4e+52) {
tmp = t_4;
} else if (j <= -4.7e-26) {
tmp = t_1;
} else if (j <= -5.5e-47) {
tmp = 18.0 * (t * t_3);
} else if (j <= -6e-56) {
tmp = b * c;
} else if (j <= -2.4e-123) {
tmp = t_1;
} else if (j <= -4.3e-193) {
tmp = t_2;
} else if (j <= 6.5e-224) {
tmp = t_4;
} else if (j <= 1.05e-66) {
tmp = t_2;
} else {
tmp = a * (j * (-27.0 * (k / 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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = x * (i * (-4.0d0))
t_2 = t * (a * (-4.0d0))
t_3 = x * (y * z)
t_4 = t * (18.0d0 * t_3)
if (j <= (-3.5d+168)) then
tmp = (-27.0d0) * (j * k)
else if (j <= (-3.4d+52)) then
tmp = t_4
else if (j <= (-4.7d-26)) then
tmp = t_1
else if (j <= (-5.5d-47)) then
tmp = 18.0d0 * (t * t_3)
else if (j <= (-6d-56)) then
tmp = b * c
else if (j <= (-2.4d-123)) then
tmp = t_1
else if (j <= (-4.3d-193)) then
tmp = t_2
else if (j <= 6.5d-224) then
tmp = t_4
else if (j <= 1.05d-66) then
tmp = t_2
else
tmp = a * (j * ((-27.0d0) * (k / 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 t_1 = x * (i * -4.0);
double t_2 = t * (a * -4.0);
double t_3 = x * (y * z);
double t_4 = t * (18.0 * t_3);
double tmp;
if (j <= -3.5e+168) {
tmp = -27.0 * (j * k);
} else if (j <= -3.4e+52) {
tmp = t_4;
} else if (j <= -4.7e-26) {
tmp = t_1;
} else if (j <= -5.5e-47) {
tmp = 18.0 * (t * t_3);
} else if (j <= -6e-56) {
tmp = b * c;
} else if (j <= -2.4e-123) {
tmp = t_1;
} else if (j <= -4.3e-193) {
tmp = t_2;
} else if (j <= 6.5e-224) {
tmp = t_4;
} else if (j <= 1.05e-66) {
tmp = t_2;
} else {
tmp = a * (j * (-27.0 * (k / 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): t_1 = x * (i * -4.0) t_2 = t * (a * -4.0) t_3 = x * (y * z) t_4 = t * (18.0 * t_3) tmp = 0 if j <= -3.5e+168: tmp = -27.0 * (j * k) elif j <= -3.4e+52: tmp = t_4 elif j <= -4.7e-26: tmp = t_1 elif j <= -5.5e-47: tmp = 18.0 * (t * t_3) elif j <= -6e-56: tmp = b * c elif j <= -2.4e-123: tmp = t_1 elif j <= -4.3e-193: tmp = t_2 elif j <= 6.5e-224: tmp = t_4 elif j <= 1.05e-66: tmp = t_2 else: tmp = a * (j * (-27.0 * (k / 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) t_1 = Float64(x * Float64(i * -4.0)) t_2 = Float64(t * Float64(a * -4.0)) t_3 = Float64(x * Float64(y * z)) t_4 = Float64(t * Float64(18.0 * t_3)) tmp = 0.0 if (j <= -3.5e+168) tmp = Float64(-27.0 * Float64(j * k)); elseif (j <= -3.4e+52) tmp = t_4; elseif (j <= -4.7e-26) tmp = t_1; elseif (j <= -5.5e-47) tmp = Float64(18.0 * Float64(t * t_3)); elseif (j <= -6e-56) tmp = Float64(b * c); elseif (j <= -2.4e-123) tmp = t_1; elseif (j <= -4.3e-193) tmp = t_2; elseif (j <= 6.5e-224) tmp = t_4; elseif (j <= 1.05e-66) tmp = t_2; else tmp = Float64(a * Float64(j * Float64(-27.0 * Float64(k / 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)
t_1 = x * (i * -4.0);
t_2 = t * (a * -4.0);
t_3 = x * (y * z);
t_4 = t * (18.0 * t_3);
tmp = 0.0;
if (j <= -3.5e+168)
tmp = -27.0 * (j * k);
elseif (j <= -3.4e+52)
tmp = t_4;
elseif (j <= -4.7e-26)
tmp = t_1;
elseif (j <= -5.5e-47)
tmp = 18.0 * (t * t_3);
elseif (j <= -6e-56)
tmp = b * c;
elseif (j <= -2.4e-123)
tmp = t_1;
elseif (j <= -4.3e-193)
tmp = t_2;
elseif (j <= 6.5e-224)
tmp = t_4;
elseif (j <= 1.05e-66)
tmp = t_2;
else
tmp = a * (j * (-27.0 * (k / 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_] := Block[{t$95$1 = N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t * N[(18.0 * t$95$3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.5e+168], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.4e+52], t$95$4, If[LessEqual[j, -4.7e-26], t$95$1, If[LessEqual[j, -5.5e-47], N[(18.0 * N[(t * t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -6e-56], N[(b * c), $MachinePrecision], If[LessEqual[j, -2.4e-123], t$95$1, If[LessEqual[j, -4.3e-193], t$95$2, If[LessEqual[j, 6.5e-224], t$95$4, If[LessEqual[j, 1.05e-66], t$95$2, N[(a * N[(j * N[(-27.0 * N[(k / a), $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}
t_1 := x \cdot \left(i \cdot -4\right)\\
t_2 := t \cdot \left(a \cdot -4\right)\\
t_3 := x \cdot \left(y \cdot z\right)\\
t_4 := t \cdot \left(18 \cdot t\_3\right)\\
\mathbf{if}\;j \leq -3.5 \cdot 10^{+168}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;j \leq -3.4 \cdot 10^{+52}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;j \leq -4.7 \cdot 10^{-26}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -5.5 \cdot 10^{-47}:\\
\;\;\;\;18 \cdot \left(t \cdot t\_3\right)\\
\mathbf{elif}\;j \leq -6 \cdot 10^{-56}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;j \leq -2.4 \cdot 10^{-123}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -4.3 \cdot 10^{-193}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 6.5 \cdot 10^{-224}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;j \leq 1.05 \cdot 10^{-66}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(j \cdot \left(-27 \cdot \frac{k}{a}\right)\right)\\
\end{array}
\end{array}
if j < -3.5000000000000002e168Initial program 78.6%
Simplified81.8%
Taylor expanded in j around inf 63.9%
if -3.5000000000000002e168 < j < -3.4e52 or -4.3000000000000002e-193 < j < 6.5e-224Initial program 89.3%
pow189.3%
associate-*l*87.9%
*-commutative87.9%
Applied egg-rr87.9%
unpow187.9%
associate-*r*87.9%
*-commutative87.9%
*-commutative87.9%
*-commutative87.9%
Simplified87.9%
Taylor expanded in t around inf 56.0%
Taylor expanded in x around inf 41.1%
if -3.4e52 < j < -4.69999999999999989e-26 or -5.99999999999999979e-56 < j < -2.4e-123Initial program 77.2%
pow177.2%
associate-*l*81.7%
*-commutative81.7%
Applied egg-rr81.7%
unpow181.7%
associate-*r*81.7%
*-commutative81.7%
*-commutative81.7%
*-commutative81.7%
Simplified81.7%
Taylor expanded in i around inf 28.4%
*-commutative28.4%
*-commutative28.4%
associate-*r*28.4%
Simplified28.4%
if -4.69999999999999989e-26 < j < -5.5000000000000002e-47Initial program 99.2%
Simplified100.0%
Taylor expanded in x around 0 100.0%
associate-*r*100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around inf 19.2%
if -5.5000000000000002e-47 < j < -5.99999999999999979e-56Initial program 100.0%
pow1100.0%
associate-*l*100.0%
*-commutative100.0%
Applied egg-rr100.0%
unpow1100.0%
associate-*r*100.0%
*-commutative100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in b around inf 67.4%
if -2.4e-123 < j < -4.3000000000000002e-193 or 6.5e-224 < j < 1.05e-66Initial program 88.3%
pow188.3%
associate-*l*86.5%
*-commutative86.5%
Applied egg-rr86.5%
unpow186.5%
associate-*r*86.5%
*-commutative86.5%
*-commutative86.5%
*-commutative86.5%
Simplified86.5%
Taylor expanded in a around inf 27.0%
*-commutative27.0%
*-commutative27.0%
associate-*r*27.0%
Simplified27.0%
if 1.05e-66 < j Initial program 85.8%
Simplified87.3%
Taylor expanded in a around inf 51.1%
associate-*r*51.1%
*-commutative51.1%
metadata-eval51.1%
distribute-rgt-neg-in51.1%
*-commutative51.1%
distribute-rgt-neg-in51.1%
metadata-eval51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in a around inf 50.2%
Taylor expanded in j around inf 37.5%
associate-*r/37.4%
associate-*r*37.4%
*-commutative37.4%
associate-*r*37.4%
Simplified37.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 (* x (* i -4.0)))
(t_2 (* t (* a -4.0)))
(t_3 (* 18.0 (* t (* x (* y z))))))
(if (<= j -4.5e+168)
(* -27.0 (* j k))
(if (<= j -1.72e+52)
t_3
(if (<= j -1.85e-26)
t_1
(if (<= j -8.2e-47)
t_3
(if (<= j -1.45e-61)
(* b c)
(if (<= j -1.8e-123)
t_1
(if (<= j -1.25e-191)
t_2
(if (<= j 1.1e-223)
t_3
(if (<= j 2.15e-63)
t_2
(* a (* j (* -27.0 (/ k 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 t_1 = x * (i * -4.0);
double t_2 = t * (a * -4.0);
double t_3 = 18.0 * (t * (x * (y * z)));
double tmp;
if (j <= -4.5e+168) {
tmp = -27.0 * (j * k);
} else if (j <= -1.72e+52) {
tmp = t_3;
} else if (j <= -1.85e-26) {
tmp = t_1;
} else if (j <= -8.2e-47) {
tmp = t_3;
} else if (j <= -1.45e-61) {
tmp = b * c;
} else if (j <= -1.8e-123) {
tmp = t_1;
} else if (j <= -1.25e-191) {
tmp = t_2;
} else if (j <= 1.1e-223) {
tmp = t_3;
} else if (j <= 2.15e-63) {
tmp = t_2;
} else {
tmp = a * (j * (-27.0 * (k / 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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * (i * (-4.0d0))
t_2 = t * (a * (-4.0d0))
t_3 = 18.0d0 * (t * (x * (y * z)))
if (j <= (-4.5d+168)) then
tmp = (-27.0d0) * (j * k)
else if (j <= (-1.72d+52)) then
tmp = t_3
else if (j <= (-1.85d-26)) then
tmp = t_1
else if (j <= (-8.2d-47)) then
tmp = t_3
else if (j <= (-1.45d-61)) then
tmp = b * c
else if (j <= (-1.8d-123)) then
tmp = t_1
else if (j <= (-1.25d-191)) then
tmp = t_2
else if (j <= 1.1d-223) then
tmp = t_3
else if (j <= 2.15d-63) then
tmp = t_2
else
tmp = a * (j * ((-27.0d0) * (k / 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 t_1 = x * (i * -4.0);
double t_2 = t * (a * -4.0);
double t_3 = 18.0 * (t * (x * (y * z)));
double tmp;
if (j <= -4.5e+168) {
tmp = -27.0 * (j * k);
} else if (j <= -1.72e+52) {
tmp = t_3;
} else if (j <= -1.85e-26) {
tmp = t_1;
} else if (j <= -8.2e-47) {
tmp = t_3;
} else if (j <= -1.45e-61) {
tmp = b * c;
} else if (j <= -1.8e-123) {
tmp = t_1;
} else if (j <= -1.25e-191) {
tmp = t_2;
} else if (j <= 1.1e-223) {
tmp = t_3;
} else if (j <= 2.15e-63) {
tmp = t_2;
} else {
tmp = a * (j * (-27.0 * (k / 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): t_1 = x * (i * -4.0) t_2 = t * (a * -4.0) t_3 = 18.0 * (t * (x * (y * z))) tmp = 0 if j <= -4.5e+168: tmp = -27.0 * (j * k) elif j <= -1.72e+52: tmp = t_3 elif j <= -1.85e-26: tmp = t_1 elif j <= -8.2e-47: tmp = t_3 elif j <= -1.45e-61: tmp = b * c elif j <= -1.8e-123: tmp = t_1 elif j <= -1.25e-191: tmp = t_2 elif j <= 1.1e-223: tmp = t_3 elif j <= 2.15e-63: tmp = t_2 else: tmp = a * (j * (-27.0 * (k / 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) t_1 = Float64(x * Float64(i * -4.0)) t_2 = Float64(t * Float64(a * -4.0)) t_3 = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))) tmp = 0.0 if (j <= -4.5e+168) tmp = Float64(-27.0 * Float64(j * k)); elseif (j <= -1.72e+52) tmp = t_3; elseif (j <= -1.85e-26) tmp = t_1; elseif (j <= -8.2e-47) tmp = t_3; elseif (j <= -1.45e-61) tmp = Float64(b * c); elseif (j <= -1.8e-123) tmp = t_1; elseif (j <= -1.25e-191) tmp = t_2; elseif (j <= 1.1e-223) tmp = t_3; elseif (j <= 2.15e-63) tmp = t_2; else tmp = Float64(a * Float64(j * Float64(-27.0 * Float64(k / 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)
t_1 = x * (i * -4.0);
t_2 = t * (a * -4.0);
t_3 = 18.0 * (t * (x * (y * z)));
tmp = 0.0;
if (j <= -4.5e+168)
tmp = -27.0 * (j * k);
elseif (j <= -1.72e+52)
tmp = t_3;
elseif (j <= -1.85e-26)
tmp = t_1;
elseif (j <= -8.2e-47)
tmp = t_3;
elseif (j <= -1.45e-61)
tmp = b * c;
elseif (j <= -1.8e-123)
tmp = t_1;
elseif (j <= -1.25e-191)
tmp = t_2;
elseif (j <= 1.1e-223)
tmp = t_3;
elseif (j <= 2.15e-63)
tmp = t_2;
else
tmp = a * (j * (-27.0 * (k / 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_] := Block[{t$95$1 = N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.5e+168], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.72e+52], t$95$3, If[LessEqual[j, -1.85e-26], t$95$1, If[LessEqual[j, -8.2e-47], t$95$3, If[LessEqual[j, -1.45e-61], N[(b * c), $MachinePrecision], If[LessEqual[j, -1.8e-123], t$95$1, If[LessEqual[j, -1.25e-191], t$95$2, If[LessEqual[j, 1.1e-223], t$95$3, If[LessEqual[j, 2.15e-63], t$95$2, N[(a * N[(j * N[(-27.0 * N[(k / a), $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}
t_1 := x \cdot \left(i \cdot -4\right)\\
t_2 := t \cdot \left(a \cdot -4\right)\\
t_3 := 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{if}\;j \leq -4.5 \cdot 10^{+168}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;j \leq -1.72 \cdot 10^{+52}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq -1.85 \cdot 10^{-26}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -8.2 \cdot 10^{-47}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq -1.45 \cdot 10^{-61}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;j \leq -1.8 \cdot 10^{-123}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -1.25 \cdot 10^{-191}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 1.1 \cdot 10^{-223}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq 2.15 \cdot 10^{-63}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(j \cdot \left(-27 \cdot \frac{k}{a}\right)\right)\\
\end{array}
\end{array}
if j < -4.50000000000000012e168Initial program 78.6%
Simplified81.8%
Taylor expanded in j around inf 63.9%
if -4.50000000000000012e168 < j < -1.7199999999999999e52 or -1.8499999999999999e-26 < j < -8.20000000000000003e-47 or -1.25e-191 < j < 1.10000000000000004e-223Initial program 89.6%
Simplified93.3%
Taylor expanded in x around 0 85.0%
associate-*r*85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in x around inf 40.6%
if -1.7199999999999999e52 < j < -1.8499999999999999e-26 or -1.45e-61 < j < -1.7999999999999998e-123Initial program 77.2%
pow177.2%
associate-*l*81.7%
*-commutative81.7%
Applied egg-rr81.7%
unpow181.7%
associate-*r*81.7%
*-commutative81.7%
*-commutative81.7%
*-commutative81.7%
Simplified81.7%
Taylor expanded in i around inf 28.4%
*-commutative28.4%
*-commutative28.4%
associate-*r*28.4%
Simplified28.4%
if -8.20000000000000003e-47 < j < -1.45e-61Initial program 100.0%
pow1100.0%
associate-*l*100.0%
*-commutative100.0%
Applied egg-rr100.0%
unpow1100.0%
associate-*r*100.0%
*-commutative100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in b around inf 67.4%
if -1.7999999999999998e-123 < j < -1.25e-191 or 1.10000000000000004e-223 < j < 2.1499999999999999e-63Initial program 88.3%
pow188.3%
associate-*l*86.5%
*-commutative86.5%
Applied egg-rr86.5%
unpow186.5%
associate-*r*86.5%
*-commutative86.5%
*-commutative86.5%
*-commutative86.5%
Simplified86.5%
Taylor expanded in a around inf 27.0%
*-commutative27.0%
*-commutative27.0%
associate-*r*27.0%
Simplified27.0%
if 2.1499999999999999e-63 < j Initial program 85.8%
Simplified87.3%
Taylor expanded in a around inf 51.1%
associate-*r*51.1%
*-commutative51.1%
metadata-eval51.1%
distribute-rgt-neg-in51.1%
*-commutative51.1%
distribute-rgt-neg-in51.1%
metadata-eval51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in a around inf 50.2%
Taylor expanded in j around inf 37.5%
associate-*r/37.4%
associate-*r*37.4%
*-commutative37.4%
associate-*r*37.4%
Simplified37.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 (* x (* i -4.0)))
(t_2 (* t (* a -4.0)))
(t_3 (* 18.0 (* t (* x (* y z))))))
(if (<= j -9e+167)
(* -27.0 (* j k))
(if (<= j -1.4e+52)
t_3
(if (<= j -3e-25)
t_1
(if (<= j -1.22e-46)
t_3
(if (<= j -1.32e-58)
(* b c)
(if (<= j -1.6e-123)
t_1
(if (<= j -6.5e-193)
t_2
(if (<= j 1.75e-224)
t_3
(if (<= j 6.5e-62)
t_2
(* a (* -27.0 (/ (* j k) 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 t_1 = x * (i * -4.0);
double t_2 = t * (a * -4.0);
double t_3 = 18.0 * (t * (x * (y * z)));
double tmp;
if (j <= -9e+167) {
tmp = -27.0 * (j * k);
} else if (j <= -1.4e+52) {
tmp = t_3;
} else if (j <= -3e-25) {
tmp = t_1;
} else if (j <= -1.22e-46) {
tmp = t_3;
} else if (j <= -1.32e-58) {
tmp = b * c;
} else if (j <= -1.6e-123) {
tmp = t_1;
} else if (j <= -6.5e-193) {
tmp = t_2;
} else if (j <= 1.75e-224) {
tmp = t_3;
} else if (j <= 6.5e-62) {
tmp = t_2;
} else {
tmp = a * (-27.0 * ((j * k) / 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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * (i * (-4.0d0))
t_2 = t * (a * (-4.0d0))
t_3 = 18.0d0 * (t * (x * (y * z)))
if (j <= (-9d+167)) then
tmp = (-27.0d0) * (j * k)
else if (j <= (-1.4d+52)) then
tmp = t_3
else if (j <= (-3d-25)) then
tmp = t_1
else if (j <= (-1.22d-46)) then
tmp = t_3
else if (j <= (-1.32d-58)) then
tmp = b * c
else if (j <= (-1.6d-123)) then
tmp = t_1
else if (j <= (-6.5d-193)) then
tmp = t_2
else if (j <= 1.75d-224) then
tmp = t_3
else if (j <= 6.5d-62) then
tmp = t_2
else
tmp = a * ((-27.0d0) * ((j * k) / 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 t_1 = x * (i * -4.0);
double t_2 = t * (a * -4.0);
double t_3 = 18.0 * (t * (x * (y * z)));
double tmp;
if (j <= -9e+167) {
tmp = -27.0 * (j * k);
} else if (j <= -1.4e+52) {
tmp = t_3;
} else if (j <= -3e-25) {
tmp = t_1;
} else if (j <= -1.22e-46) {
tmp = t_3;
} else if (j <= -1.32e-58) {
tmp = b * c;
} else if (j <= -1.6e-123) {
tmp = t_1;
} else if (j <= -6.5e-193) {
tmp = t_2;
} else if (j <= 1.75e-224) {
tmp = t_3;
} else if (j <= 6.5e-62) {
tmp = t_2;
} else {
tmp = a * (-27.0 * ((j * k) / 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): t_1 = x * (i * -4.0) t_2 = t * (a * -4.0) t_3 = 18.0 * (t * (x * (y * z))) tmp = 0 if j <= -9e+167: tmp = -27.0 * (j * k) elif j <= -1.4e+52: tmp = t_3 elif j <= -3e-25: tmp = t_1 elif j <= -1.22e-46: tmp = t_3 elif j <= -1.32e-58: tmp = b * c elif j <= -1.6e-123: tmp = t_1 elif j <= -6.5e-193: tmp = t_2 elif j <= 1.75e-224: tmp = t_3 elif j <= 6.5e-62: tmp = t_2 else: tmp = a * (-27.0 * ((j * k) / 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) t_1 = Float64(x * Float64(i * -4.0)) t_2 = Float64(t * Float64(a * -4.0)) t_3 = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))) tmp = 0.0 if (j <= -9e+167) tmp = Float64(-27.0 * Float64(j * k)); elseif (j <= -1.4e+52) tmp = t_3; elseif (j <= -3e-25) tmp = t_1; elseif (j <= -1.22e-46) tmp = t_3; elseif (j <= -1.32e-58) tmp = Float64(b * c); elseif (j <= -1.6e-123) tmp = t_1; elseif (j <= -6.5e-193) tmp = t_2; elseif (j <= 1.75e-224) tmp = t_3; elseif (j <= 6.5e-62) tmp = t_2; else tmp = Float64(a * Float64(-27.0 * Float64(Float64(j * k) / 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)
t_1 = x * (i * -4.0);
t_2 = t * (a * -4.0);
t_3 = 18.0 * (t * (x * (y * z)));
tmp = 0.0;
if (j <= -9e+167)
tmp = -27.0 * (j * k);
elseif (j <= -1.4e+52)
tmp = t_3;
elseif (j <= -3e-25)
tmp = t_1;
elseif (j <= -1.22e-46)
tmp = t_3;
elseif (j <= -1.32e-58)
tmp = b * c;
elseif (j <= -1.6e-123)
tmp = t_1;
elseif (j <= -6.5e-193)
tmp = t_2;
elseif (j <= 1.75e-224)
tmp = t_3;
elseif (j <= 6.5e-62)
tmp = t_2;
else
tmp = a * (-27.0 * ((j * k) / 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_] := Block[{t$95$1 = N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -9e+167], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.4e+52], t$95$3, If[LessEqual[j, -3e-25], t$95$1, If[LessEqual[j, -1.22e-46], t$95$3, If[LessEqual[j, -1.32e-58], N[(b * c), $MachinePrecision], If[LessEqual[j, -1.6e-123], t$95$1, If[LessEqual[j, -6.5e-193], t$95$2, If[LessEqual[j, 1.75e-224], t$95$3, If[LessEqual[j, 6.5e-62], t$95$2, N[(a * N[(-27.0 * N[(N[(j * k), $MachinePrecision] / 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}
t_1 := x \cdot \left(i \cdot -4\right)\\
t_2 := t \cdot \left(a \cdot -4\right)\\
t_3 := 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{if}\;j \leq -9 \cdot 10^{+167}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;j \leq -1.4 \cdot 10^{+52}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq -3 \cdot 10^{-25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -1.22 \cdot 10^{-46}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq -1.32 \cdot 10^{-58}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;j \leq -1.6 \cdot 10^{-123}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -6.5 \cdot 10^{-193}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 1.75 \cdot 10^{-224}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq 6.5 \cdot 10^{-62}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(-27 \cdot \frac{j \cdot k}{a}\right)\\
\end{array}
\end{array}
if j < -8.9999999999999998e167Initial program 78.6%
Simplified81.8%
Taylor expanded in j around inf 63.9%
if -8.9999999999999998e167 < j < -1.4e52 or -2.9999999999999998e-25 < j < -1.22e-46 or -6.5000000000000004e-193 < j < 1.75000000000000009e-224Initial program 89.6%
Simplified93.3%
Taylor expanded in x around 0 85.0%
associate-*r*85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in x around inf 40.6%
if -1.4e52 < j < -2.9999999999999998e-25 or -1.31999999999999993e-58 < j < -1.59999999999999989e-123Initial program 77.2%
pow177.2%
associate-*l*81.7%
*-commutative81.7%
Applied egg-rr81.7%
unpow181.7%
associate-*r*81.7%
*-commutative81.7%
*-commutative81.7%
*-commutative81.7%
Simplified81.7%
Taylor expanded in i around inf 28.4%
*-commutative28.4%
*-commutative28.4%
associate-*r*28.4%
Simplified28.4%
if -1.22e-46 < j < -1.31999999999999993e-58Initial program 100.0%
pow1100.0%
associate-*l*100.0%
*-commutative100.0%
Applied egg-rr100.0%
unpow1100.0%
associate-*r*100.0%
*-commutative100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in b around inf 67.4%
if -1.59999999999999989e-123 < j < -6.5000000000000004e-193 or 1.75000000000000009e-224 < j < 6.50000000000000026e-62Initial program 88.3%
pow188.3%
associate-*l*86.5%
*-commutative86.5%
Applied egg-rr86.5%
unpow186.5%
associate-*r*86.5%
*-commutative86.5%
*-commutative86.5%
*-commutative86.5%
Simplified86.5%
Taylor expanded in a around inf 27.0%
*-commutative27.0%
*-commutative27.0%
associate-*r*27.0%
Simplified27.0%
if 6.50000000000000026e-62 < j Initial program 85.8%
Simplified87.3%
Taylor expanded in a around inf 51.1%
associate-*r*51.1%
*-commutative51.1%
metadata-eval51.1%
distribute-rgt-neg-in51.1%
*-commutative51.1%
distribute-rgt-neg-in51.1%
metadata-eval51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in a around inf 50.2%
Taylor expanded in j around inf 37.5%
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))) (t_2 (+ t_1 (* -4.0 (* x i)))))
(if (<= (* b c) -5.4e+59)
(- (* b c) (* 4.0 (* t a)))
(if (<= (* b c) -8.8e-162)
t_2
(if (<= (* b c) -3e-238)
(* 18.0 (* t (* x (* y z))))
(if (<= (* b c) 2.45e-126)
t_2
(if (<= (* b c) 3.95e+121)
(+ (* -4.0 (* t a)) (* -27.0 (* j k)))
(if (<= (* b c) 1e+217)
(* x (* y (* t (* 18.0 z))))
(+ (* 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 t_2 = t_1 + (-4.0 * (x * i));
double tmp;
if ((b * c) <= -5.4e+59) {
tmp = (b * c) - (4.0 * (t * a));
} else if ((b * c) <= -8.8e-162) {
tmp = t_2;
} else if ((b * c) <= -3e-238) {
tmp = 18.0 * (t * (x * (y * z)));
} else if ((b * c) <= 2.45e-126) {
tmp = t_2;
} else if ((b * c) <= 3.95e+121) {
tmp = (-4.0 * (t * a)) + (-27.0 * (j * k));
} else if ((b * c) <= 1e+217) {
tmp = x * (y * (t * (18.0 * z)));
} 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) :: t_2
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
t_2 = t_1 + ((-4.0d0) * (x * i))
if ((b * c) <= (-5.4d+59)) then
tmp = (b * c) - (4.0d0 * (t * a))
else if ((b * c) <= (-8.8d-162)) then
tmp = t_2
else if ((b * c) <= (-3d-238)) then
tmp = 18.0d0 * (t * (x * (y * z)))
else if ((b * c) <= 2.45d-126) then
tmp = t_2
else if ((b * c) <= 3.95d+121) then
tmp = ((-4.0d0) * (t * a)) + ((-27.0d0) * (j * k))
else if ((b * c) <= 1d+217) then
tmp = x * (y * (t * (18.0d0 * z)))
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 t_2 = t_1 + (-4.0 * (x * i));
double tmp;
if ((b * c) <= -5.4e+59) {
tmp = (b * c) - (4.0 * (t * a));
} else if ((b * c) <= -8.8e-162) {
tmp = t_2;
} else if ((b * c) <= -3e-238) {
tmp = 18.0 * (t * (x * (y * z)));
} else if ((b * c) <= 2.45e-126) {
tmp = t_2;
} else if ((b * c) <= 3.95e+121) {
tmp = (-4.0 * (t * a)) + (-27.0 * (j * k));
} else if ((b * c) <= 1e+217) {
tmp = x * (y * (t * (18.0 * z)));
} 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) t_2 = t_1 + (-4.0 * (x * i)) tmp = 0 if (b * c) <= -5.4e+59: tmp = (b * c) - (4.0 * (t * a)) elif (b * c) <= -8.8e-162: tmp = t_2 elif (b * c) <= -3e-238: tmp = 18.0 * (t * (x * (y * z))) elif (b * c) <= 2.45e-126: tmp = t_2 elif (b * c) <= 3.95e+121: tmp = (-4.0 * (t * a)) + (-27.0 * (j * k)) elif (b * c) <= 1e+217: tmp = x * (y * (t * (18.0 * z))) 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)) t_2 = Float64(t_1 + Float64(-4.0 * Float64(x * i))) tmp = 0.0 if (Float64(b * c) <= -5.4e+59) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))); elseif (Float64(b * c) <= -8.8e-162) tmp = t_2; elseif (Float64(b * c) <= -3e-238) tmp = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))); elseif (Float64(b * c) <= 2.45e-126) tmp = t_2; elseif (Float64(b * c) <= 3.95e+121) tmp = Float64(Float64(-4.0 * Float64(t * a)) + Float64(-27.0 * Float64(j * k))); elseif (Float64(b * c) <= 1e+217) tmp = Float64(x * Float64(y * Float64(t * Float64(18.0 * z)))); 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);
t_2 = t_1 + (-4.0 * (x * i));
tmp = 0.0;
if ((b * c) <= -5.4e+59)
tmp = (b * c) - (4.0 * (t * a));
elseif ((b * c) <= -8.8e-162)
tmp = t_2;
elseif ((b * c) <= -3e-238)
tmp = 18.0 * (t * (x * (y * z)));
elseif ((b * c) <= 2.45e-126)
tmp = t_2;
elseif ((b * c) <= 3.95e+121)
tmp = (-4.0 * (t * a)) + (-27.0 * (j * k));
elseif ((b * c) <= 1e+217)
tmp = x * (y * (t * (18.0 * z)));
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]}, Block[{t$95$2 = N[(t$95$1 + N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -5.4e+59], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -8.8e-162], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], -3e-238], N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 2.45e-126], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], 3.95e+121], N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1e+217], N[(x * N[(y * N[(t * N[(18.0 * z), $MachinePrecision]), $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)\\
t_2 := t\_1 + -4 \cdot \left(x \cdot i\right)\\
\mathbf{if}\;b \cdot c \leq -5.4 \cdot 10^{+59}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;b \cdot c \leq -8.8 \cdot 10^{-162}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \cdot c \leq -3 \cdot 10^{-238}:\\
\;\;\;\;18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;b \cdot c \leq 2.45 \cdot 10^{-126}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \cdot c \leq 3.95 \cdot 10^{+121}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right) + -27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;b \cdot c \leq 10^{+217}:\\
\;\;\;\;x \cdot \left(y \cdot \left(t \cdot \left(18 \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + t\_1\\
\end{array}
\end{array}
if (*.f64 b c) < -5.4000000000000002e59Initial program 87.0%
pow187.0%
associate-*l*88.9%
*-commutative88.9%
Applied egg-rr88.9%
unpow188.9%
associate-*r*88.9%
*-commutative88.9%
*-commutative88.9%
*-commutative88.9%
Simplified88.9%
Taylor expanded in x around 0 73.3%
Taylor expanded in j around 0 65.7%
if -5.4000000000000002e59 < (*.f64 b c) < -8.7999999999999997e-162 or -3e-238 < (*.f64 b c) < 2.45000000000000005e-126Initial program 89.2%
Simplified90.9%
Taylor expanded in i around inf 61.6%
if -8.7999999999999997e-162 < (*.f64 b c) < -3e-238Initial program 59.8%
Simplified73.2%
Taylor expanded in x around 0 73.9%
associate-*r*73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in x around inf 74.2%
if 2.45000000000000005e-126 < (*.f64 b c) < 3.95e121Initial program 84.7%
Simplified86.9%
Taylor expanded in a around inf 53.0%
associate-*r*53.0%
*-commutative53.0%
metadata-eval53.0%
distribute-rgt-neg-in53.0%
*-commutative53.0%
distribute-rgt-neg-in53.0%
metadata-eval53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in t around 0 53.0%
if 3.95e121 < (*.f64 b c) < 9.9999999999999996e216Initial program 84.6%
Simplified84.6%
Taylor expanded in x around inf 62.3%
Taylor expanded in t around inf 62.4%
*-commutative62.4%
*-commutative62.4%
associate-*l*62.4%
*-commutative62.4%
associate-*r*62.4%
associate-*l*62.4%
Simplified62.4%
if 9.9999999999999996e216 < (*.f64 b c) Initial program 89.4%
Simplified94.7%
Taylor expanded in b around inf 81.8%
Final simplification63.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 (* x (* i -4.0)))
(t_2 (* t (* a -4.0)))
(t_3 (* 18.0 (* t (* x (* y z)))))
(t_4 (* -27.0 (* j k))))
(if (<= j -7.6e+167)
t_4
(if (<= j -2.6e+52)
t_3
(if (<= j -3.7e-25)
t_1
(if (<= j -6.5e-47)
t_3
(if (<= j -1.2e-59)
(* b c)
(if (<= j -1.9e-123)
t_1
(if (<= j -6.3e-192)
t_2
(if (<= j 1.5e-223) t_3 (if (<= j 8e-64) t_2 t_4)))))))))))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 * (i * -4.0);
double t_2 = t * (a * -4.0);
double t_3 = 18.0 * (t * (x * (y * z)));
double t_4 = -27.0 * (j * k);
double tmp;
if (j <= -7.6e+167) {
tmp = t_4;
} else if (j <= -2.6e+52) {
tmp = t_3;
} else if (j <= -3.7e-25) {
tmp = t_1;
} else if (j <= -6.5e-47) {
tmp = t_3;
} else if (j <= -1.2e-59) {
tmp = b * c;
} else if (j <= -1.9e-123) {
tmp = t_1;
} else if (j <= -6.3e-192) {
tmp = t_2;
} else if (j <= 1.5e-223) {
tmp = t_3;
} else if (j <= 8e-64) {
tmp = t_2;
} else {
tmp = t_4;
}
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) :: t_4
real(8) :: tmp
t_1 = x * (i * (-4.0d0))
t_2 = t * (a * (-4.0d0))
t_3 = 18.0d0 * (t * (x * (y * z)))
t_4 = (-27.0d0) * (j * k)
if (j <= (-7.6d+167)) then
tmp = t_4
else if (j <= (-2.6d+52)) then
tmp = t_3
else if (j <= (-3.7d-25)) then
tmp = t_1
else if (j <= (-6.5d-47)) then
tmp = t_3
else if (j <= (-1.2d-59)) then
tmp = b * c
else if (j <= (-1.9d-123)) then
tmp = t_1
else if (j <= (-6.3d-192)) then
tmp = t_2
else if (j <= 1.5d-223) then
tmp = t_3
else if (j <= 8d-64) then
tmp = t_2
else
tmp = t_4
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 * (i * -4.0);
double t_2 = t * (a * -4.0);
double t_3 = 18.0 * (t * (x * (y * z)));
double t_4 = -27.0 * (j * k);
double tmp;
if (j <= -7.6e+167) {
tmp = t_4;
} else if (j <= -2.6e+52) {
tmp = t_3;
} else if (j <= -3.7e-25) {
tmp = t_1;
} else if (j <= -6.5e-47) {
tmp = t_3;
} else if (j <= -1.2e-59) {
tmp = b * c;
} else if (j <= -1.9e-123) {
tmp = t_1;
} else if (j <= -6.3e-192) {
tmp = t_2;
} else if (j <= 1.5e-223) {
tmp = t_3;
} else if (j <= 8e-64) {
tmp = t_2;
} else {
tmp = t_4;
}
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 * (i * -4.0) t_2 = t * (a * -4.0) t_3 = 18.0 * (t * (x * (y * z))) t_4 = -27.0 * (j * k) tmp = 0 if j <= -7.6e+167: tmp = t_4 elif j <= -2.6e+52: tmp = t_3 elif j <= -3.7e-25: tmp = t_1 elif j <= -6.5e-47: tmp = t_3 elif j <= -1.2e-59: tmp = b * c elif j <= -1.9e-123: tmp = t_1 elif j <= -6.3e-192: tmp = t_2 elif j <= 1.5e-223: tmp = t_3 elif j <= 8e-64: tmp = t_2 else: tmp = t_4 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(x * Float64(i * -4.0)) t_2 = Float64(t * Float64(a * -4.0)) t_3 = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))) t_4 = Float64(-27.0 * Float64(j * k)) tmp = 0.0 if (j <= -7.6e+167) tmp = t_4; elseif (j <= -2.6e+52) tmp = t_3; elseif (j <= -3.7e-25) tmp = t_1; elseif (j <= -6.5e-47) tmp = t_3; elseif (j <= -1.2e-59) tmp = Float64(b * c); elseif (j <= -1.9e-123) tmp = t_1; elseif (j <= -6.3e-192) tmp = t_2; elseif (j <= 1.5e-223) tmp = t_3; elseif (j <= 8e-64) tmp = t_2; else tmp = t_4; 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 * (i * -4.0);
t_2 = t * (a * -4.0);
t_3 = 18.0 * (t * (x * (y * z)));
t_4 = -27.0 * (j * k);
tmp = 0.0;
if (j <= -7.6e+167)
tmp = t_4;
elseif (j <= -2.6e+52)
tmp = t_3;
elseif (j <= -3.7e-25)
tmp = t_1;
elseif (j <= -6.5e-47)
tmp = t_3;
elseif (j <= -1.2e-59)
tmp = b * c;
elseif (j <= -1.9e-123)
tmp = t_1;
elseif (j <= -6.3e-192)
tmp = t_2;
elseif (j <= 1.5e-223)
tmp = t_3;
elseif (j <= 8e-64)
tmp = t_2;
else
tmp = t_4;
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[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -7.6e+167], t$95$4, If[LessEqual[j, -2.6e+52], t$95$3, If[LessEqual[j, -3.7e-25], t$95$1, If[LessEqual[j, -6.5e-47], t$95$3, If[LessEqual[j, -1.2e-59], N[(b * c), $MachinePrecision], If[LessEqual[j, -1.9e-123], t$95$1, If[LessEqual[j, -6.3e-192], t$95$2, If[LessEqual[j, 1.5e-223], t$95$3, If[LessEqual[j, 8e-64], t$95$2, t$95$4]]]]]]]]]]]]]
\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(i \cdot -4\right)\\
t_2 := t \cdot \left(a \cdot -4\right)\\
t_3 := 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
t_4 := -27 \cdot \left(j \cdot k\right)\\
\mathbf{if}\;j \leq -7.6 \cdot 10^{+167}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;j \leq -2.6 \cdot 10^{+52}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq -3.7 \cdot 10^{-25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -6.5 \cdot 10^{-47}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq -1.2 \cdot 10^{-59}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;j \leq -1.9 \cdot 10^{-123}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -6.3 \cdot 10^{-192}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 1.5 \cdot 10^{-223}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq 8 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if j < -7.59999999999999987e167 or 7.99999999999999972e-64 < j Initial program 83.3%
Simplified85.4%
Taylor expanded in j around inf 49.3%
if -7.59999999999999987e167 < j < -2.6e52 or -3.70000000000000009e-25 < j < -6.5000000000000004e-47 or -6.3000000000000002e-192 < j < 1.49999999999999996e-223Initial program 89.6%
Simplified93.3%
Taylor expanded in x around 0 85.0%
associate-*r*85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in x around inf 40.6%
if -2.6e52 < j < -3.70000000000000009e-25 or -1.20000000000000008e-59 < j < -1.89999999999999998e-123Initial program 77.2%
pow177.2%
associate-*l*81.7%
*-commutative81.7%
Applied egg-rr81.7%
unpow181.7%
associate-*r*81.7%
*-commutative81.7%
*-commutative81.7%
*-commutative81.7%
Simplified81.7%
Taylor expanded in i around inf 28.4%
*-commutative28.4%
*-commutative28.4%
associate-*r*28.4%
Simplified28.4%
if -6.5000000000000004e-47 < j < -1.20000000000000008e-59Initial program 100.0%
pow1100.0%
associate-*l*100.0%
*-commutative100.0%
Applied egg-rr100.0%
unpow1100.0%
associate-*r*100.0%
*-commutative100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in b around inf 67.4%
if -1.89999999999999998e-123 < j < -6.3000000000000002e-192 or 1.49999999999999996e-223 < j < 7.99999999999999972e-64Initial program 88.3%
pow188.3%
associate-*l*86.5%
*-commutative86.5%
Applied egg-rr86.5%
unpow186.5%
associate-*r*86.5%
*-commutative86.5%
*-commutative86.5%
*-commutative86.5%
Simplified86.5%
Taylor expanded in a around inf 27.0%
*-commutative27.0%
*-commutative27.0%
associate-*r*27.0%
Simplified27.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 (* x (* 18.0 (* t (* y z))))) (t_2 (* x (* i -4.0))))
(if (<= i -1.75e+109)
t_2
(if (<= i -9.2e-39)
t_1
(if (<= i -1.08e-166)
(* b c)
(if (<= i 3.6e-201)
t_1
(if (<= i 2.7e-53)
(* t (* a -4.0))
(if (<= i 2.8e+79) (* a (* j (* -27.0 (/ k a)))) t_2))))))))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)));
double t_2 = x * (i * -4.0);
double tmp;
if (i <= -1.75e+109) {
tmp = t_2;
} else if (i <= -9.2e-39) {
tmp = t_1;
} else if (i <= -1.08e-166) {
tmp = b * c;
} else if (i <= 3.6e-201) {
tmp = t_1;
} else if (i <= 2.7e-53) {
tmp = t * (a * -4.0);
} else if (i <= 2.8e+79) {
tmp = a * (j * (-27.0 * (k / a)));
} else {
tmp = t_2;
}
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) :: tmp
t_1 = x * (18.0d0 * (t * (y * z)))
t_2 = x * (i * (-4.0d0))
if (i <= (-1.75d+109)) then
tmp = t_2
else if (i <= (-9.2d-39)) then
tmp = t_1
else if (i <= (-1.08d-166)) then
tmp = b * c
else if (i <= 3.6d-201) then
tmp = t_1
else if (i <= 2.7d-53) then
tmp = t * (a * (-4.0d0))
else if (i <= 2.8d+79) then
tmp = a * (j * ((-27.0d0) * (k / a)))
else
tmp = t_2
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)));
double t_2 = x * (i * -4.0);
double tmp;
if (i <= -1.75e+109) {
tmp = t_2;
} else if (i <= -9.2e-39) {
tmp = t_1;
} else if (i <= -1.08e-166) {
tmp = b * c;
} else if (i <= 3.6e-201) {
tmp = t_1;
} else if (i <= 2.7e-53) {
tmp = t * (a * -4.0);
} else if (i <= 2.8e+79) {
tmp = a * (j * (-27.0 * (k / a)));
} else {
tmp = t_2;
}
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))) t_2 = x * (i * -4.0) tmp = 0 if i <= -1.75e+109: tmp = t_2 elif i <= -9.2e-39: tmp = t_1 elif i <= -1.08e-166: tmp = b * c elif i <= 3.6e-201: tmp = t_1 elif i <= 2.7e-53: tmp = t * (a * -4.0) elif i <= 2.8e+79: tmp = a * (j * (-27.0 * (k / a))) else: tmp = t_2 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(x * Float64(18.0 * Float64(t * Float64(y * z)))) t_2 = Float64(x * Float64(i * -4.0)) tmp = 0.0 if (i <= -1.75e+109) tmp = t_2; elseif (i <= -9.2e-39) tmp = t_1; elseif (i <= -1.08e-166) tmp = Float64(b * c); elseif (i <= 3.6e-201) tmp = t_1; elseif (i <= 2.7e-53) tmp = Float64(t * Float64(a * -4.0)); elseif (i <= 2.8e+79) tmp = Float64(a * Float64(j * Float64(-27.0 * Float64(k / a)))); else tmp = t_2; 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)));
t_2 = x * (i * -4.0);
tmp = 0.0;
if (i <= -1.75e+109)
tmp = t_2;
elseif (i <= -9.2e-39)
tmp = t_1;
elseif (i <= -1.08e-166)
tmp = b * c;
elseif (i <= 3.6e-201)
tmp = t_1;
elseif (i <= 2.7e-53)
tmp = t * (a * -4.0);
elseif (i <= 2.8e+79)
tmp = a * (j * (-27.0 * (k / a)));
else
tmp = t_2;
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[(x * N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.75e+109], t$95$2, If[LessEqual[i, -9.2e-39], t$95$1, If[LessEqual[i, -1.08e-166], N[(b * c), $MachinePrecision], If[LessEqual[i, 3.6e-201], t$95$1, If[LessEqual[i, 2.7e-53], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.8e+79], N[(a * N[(j * N[(-27.0 * N[(k / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\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)\right)\\
t_2 := x \cdot \left(i \cdot -4\right)\\
\mathbf{if}\;i \leq -1.75 \cdot 10^{+109}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -9.2 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.08 \cdot 10^{-166}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;i \leq 3.6 \cdot 10^{-201}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.7 \cdot 10^{-53}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;i \leq 2.8 \cdot 10^{+79}:\\
\;\;\;\;a \cdot \left(j \cdot \left(-27 \cdot \frac{k}{a}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -1.74999999999999992e109 or 2.8000000000000001e79 < i Initial program 85.6%
pow185.6%
associate-*l*85.6%
*-commutative85.6%
Applied egg-rr85.6%
unpow185.6%
associate-*r*85.6%
*-commutative85.6%
*-commutative85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in i around inf 54.0%
*-commutative54.0%
*-commutative54.0%
associate-*r*54.0%
Simplified54.0%
if -1.74999999999999992e109 < i < -9.20000000000000033e-39 or -1.08e-166 < i < 3.60000000000000031e-201Initial program 87.2%
Simplified88.4%
Taylor expanded in x around inf 46.7%
Taylor expanded in t around inf 43.4%
if -9.20000000000000033e-39 < i < -1.08e-166Initial program 93.0%
pow193.0%
associate-*l*93.0%
*-commutative93.0%
Applied egg-rr93.0%
unpow193.0%
associate-*r*93.0%
*-commutative93.0%
*-commutative93.0%
*-commutative93.0%
Simplified93.0%
Taylor expanded in b around inf 46.4%
if 3.60000000000000031e-201 < i < 2.6999999999999999e-53Initial program 96.8%
pow196.8%
associate-*l*90.9%
*-commutative90.9%
Applied egg-rr90.9%
unpow190.9%
associate-*r*90.9%
*-commutative90.9%
*-commutative90.9%
*-commutative90.9%
Simplified90.9%
Taylor expanded in a around inf 38.8%
*-commutative38.8%
*-commutative38.8%
associate-*r*38.8%
Simplified38.8%
if 2.6999999999999999e-53 < i < 2.8000000000000001e79Initial program 62.1%
Simplified84.5%
Taylor expanded in a around inf 48.2%
associate-*r*48.2%
*-commutative48.2%
metadata-eval48.2%
distribute-rgt-neg-in48.2%
*-commutative48.2%
distribute-rgt-neg-in48.2%
metadata-eval48.2%
*-commutative48.2%
Simplified48.2%
Taylor expanded in a around inf 52.0%
Taylor expanded in j around inf 40.6%
associate-*r/40.6%
associate-*r*40.5%
*-commutative40.5%
associate-*r*40.6%
Simplified40.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
(let* ((t_1 (* 27.0 (* j k)))
(t_2 (+ (* b c) (* t (- (* 18.0 (* x (* y z))) (* a 4.0))))))
(if (<= t -3e+203)
t_2
(if (<= t -1.25e+82)
(- (+ (* b c) (* -4.0 (* t a))) t_1)
(if (or (<= t -8.8e-45) (not (<= t 4.9e+38)))
t_2
(- (* b c) (+ (* 4.0 (* x 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 = 27.0 * (j * k);
double t_2 = (b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)));
double tmp;
if (t <= -3e+203) {
tmp = t_2;
} else if (t <= -1.25e+82) {
tmp = ((b * c) + (-4.0 * (t * a))) - t_1;
} else if ((t <= -8.8e-45) || !(t <= 4.9e+38)) {
tmp = t_2;
} else {
tmp = (b * c) - ((4.0 * (x * i)) + 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) :: t_2
real(8) :: tmp
t_1 = 27.0d0 * (j * k)
t_2 = (b * c) + (t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0)))
if (t <= (-3d+203)) then
tmp = t_2
else if (t <= (-1.25d+82)) then
tmp = ((b * c) + ((-4.0d0) * (t * a))) - t_1
else if ((t <= (-8.8d-45)) .or. (.not. (t <= 4.9d+38))) then
tmp = t_2
else
tmp = (b * c) - ((4.0d0 * (x * i)) + 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 = 27.0 * (j * k);
double t_2 = (b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)));
double tmp;
if (t <= -3e+203) {
tmp = t_2;
} else if (t <= -1.25e+82) {
tmp = ((b * c) + (-4.0 * (t * a))) - t_1;
} else if ((t <= -8.8e-45) || !(t <= 4.9e+38)) {
tmp = t_2;
} else {
tmp = (b * c) - ((4.0 * (x * i)) + 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 = 27.0 * (j * k) t_2 = (b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0))) tmp = 0 if t <= -3e+203: tmp = t_2 elif t <= -1.25e+82: tmp = ((b * c) + (-4.0 * (t * a))) - t_1 elif (t <= -8.8e-45) or not (t <= 4.9e+38): tmp = t_2 else: tmp = (b * c) - ((4.0 * (x * i)) + 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(27.0 * Float64(j * k)) t_2 = Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0)))) tmp = 0.0 if (t <= -3e+203) tmp = t_2; elseif (t <= -1.25e+82) tmp = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - t_1); elseif ((t <= -8.8e-45) || !(t <= 4.9e+38)) tmp = t_2; else tmp = Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(x * i)) + 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 = 27.0 * (j * k);
t_2 = (b * c) + (t * ((18.0 * (x * (y * z))) - (a * 4.0)));
tmp = 0.0;
if (t <= -3e+203)
tmp = t_2;
elseif (t <= -1.25e+82)
tmp = ((b * c) + (-4.0 * (t * a))) - t_1;
elseif ((t <= -8.8e-45) || ~((t <= 4.9e+38)))
tmp = t_2;
else
tmp = (b * c) - ((4.0 * (x * i)) + 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[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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]}, If[LessEqual[t, -3e+203], t$95$2, If[LessEqual[t, -1.25e+82], N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[Or[LessEqual[t, -8.8e-45], N[Not[LessEqual[t, 4.9e+38]], $MachinePrecision]], t$95$2, N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + t$95$1), $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 := 27 \cdot \left(j \cdot k\right)\\
t_2 := b \cdot c + t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -3 \cdot 10^{+203}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.25 \cdot 10^{+82}:\\
\;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - t\_1\\
\mathbf{elif}\;t \leq -8.8 \cdot 10^{-45} \lor \neg \left(t \leq 4.9 \cdot 10^{+38}\right):\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + t\_1\right)\\
\end{array}
\end{array}
if t < -3e203 or -1.25000000000000004e82 < t < -8.79999999999999974e-45 or 4.90000000000000002e38 < t Initial program 81.3%
Simplified89.3%
Taylor expanded in x around 0 87.0%
associate-*r*87.0%
*-commutative87.0%
Simplified87.0%
Taylor expanded in j around 0 82.3%
if -3e203 < t < -1.25000000000000004e82Initial program 93.4%
Simplified92.9%
Taylor expanded in x around 0 75.3%
if -8.79999999999999974e-45 < t < 4.90000000000000002e38Initial program 88.8%
Simplified88.8%
Taylor expanded in t around 0 83.3%
Final simplification82.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
(if (<= t -1.3e+203)
(* t (- (* 18.0 (* x (* y z))) (* a 4.0)))
(if (<= t -4.2e+82)
(* a (+ (* -27.0 (/ (* j k) a)) (* t -4.0)))
(if (or (<= t -60.0) (not (<= t 2.7e+37)))
(* t (+ (* a -4.0) (* (* x 18.0) (* y z))))
(- (* b c) (+ (* 4.0 (* x i)) (* 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 (t <= -1.3e+203) {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
} else if (t <= -4.2e+82) {
tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
} else if ((t <= -60.0) || !(t <= 2.7e+37)) {
tmp = t * ((a * -4.0) + ((x * 18.0) * (y * z)));
} else {
tmp = (b * c) - ((4.0 * (x * i)) + (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 (t <= (-1.3d+203)) then
tmp = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
else if (t <= (-4.2d+82)) then
tmp = a * (((-27.0d0) * ((j * k) / a)) + (t * (-4.0d0)))
else if ((t <= (-60.0d0)) .or. (.not. (t <= 2.7d+37))) then
tmp = t * ((a * (-4.0d0)) + ((x * 18.0d0) * (y * z)))
else
tmp = (b * c) - ((4.0d0 * (x * i)) + (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 (t <= -1.3e+203) {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
} else if (t <= -4.2e+82) {
tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
} else if ((t <= -60.0) || !(t <= 2.7e+37)) {
tmp = t * ((a * -4.0) + ((x * 18.0) * (y * z)));
} else {
tmp = (b * c) - ((4.0 * (x * i)) + (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 t <= -1.3e+203: tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0)) elif t <= -4.2e+82: tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0)) elif (t <= -60.0) or not (t <= 2.7e+37): tmp = t * ((a * -4.0) + ((x * 18.0) * (y * z))) else: tmp = (b * c) - ((4.0 * (x * i)) + (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 (t <= -1.3e+203) tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0))); elseif (t <= -4.2e+82) tmp = Float64(a * Float64(Float64(-27.0 * Float64(Float64(j * k) / a)) + Float64(t * -4.0))); elseif ((t <= -60.0) || !(t <= 2.7e+37)) tmp = Float64(t * Float64(Float64(a * -4.0) + Float64(Float64(x * 18.0) * Float64(y * z)))); else tmp = Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(x * i)) + 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 (t <= -1.3e+203)
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
elseif (t <= -4.2e+82)
tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
elseif ((t <= -60.0) || ~((t <= 2.7e+37)))
tmp = t * ((a * -4.0) + ((x * 18.0) * (y * z)));
else
tmp = (b * c) - ((4.0 * (x * i)) + (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[LessEqual[t, -1.3e+203], N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.2e+82], N[(a * N[(N[(-27.0 * N[(N[(j * k), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] + N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -60.0], N[Not[LessEqual[t, 2.7e+37]], $MachinePrecision]], N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(N[(x * 18.0), $MachinePrecision] * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[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.3 \cdot 10^{+203}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;t \leq -4.2 \cdot 10^{+82}:\\
\;\;\;\;a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + t \cdot -4\right)\\
\mathbf{elif}\;t \leq -60 \lor \neg \left(t \leq 2.7 \cdot 10^{+37}\right):\\
\;\;\;\;t \cdot \left(a \cdot -4 + \left(x \cdot 18\right) \cdot \left(y \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + 27 \cdot \left(j \cdot k\right)\right)\\
\end{array}
\end{array}
if t < -1.2999999999999999e203Initial program 79.3%
pow179.3%
associate-*l*73.4%
*-commutative73.4%
Applied egg-rr73.4%
unpow173.4%
associate-*r*73.4%
*-commutative73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in t around inf 83.3%
if -1.2999999999999999e203 < t < -4.2e82Initial program 93.4%
Simplified92.9%
Taylor expanded in a around inf 61.6%
associate-*r*61.6%
*-commutative61.6%
metadata-eval61.6%
distribute-rgt-neg-in61.6%
*-commutative61.6%
distribute-rgt-neg-in61.6%
metadata-eval61.6%
*-commutative61.6%
Simplified61.6%
Taylor expanded in a around inf 65.1%
if -4.2e82 < t < -60 or 2.69999999999999986e37 < t Initial program 81.9%
pow181.9%
associate-*l*75.1%
*-commutative75.1%
Applied egg-rr75.1%
unpow175.1%
associate-*r*75.1%
*-commutative75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in t around inf 76.4%
cancel-sign-sub-inv76.4%
associate-*r*76.4%
*-commutative76.4%
metadata-eval76.4%
Applied egg-rr76.4%
if -60 < t < 2.69999999999999986e37Initial program 88.6%
Simplified88.6%
Taylor expanded in t around 0 81.0%
Final simplification78.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 (* x (* y (* t (* 18.0 z))))))
(if (<= t -1.25e+181)
t_1
(if (<= t -1.25e+83)
(* j (* k -27.0))
(if (<= t -1.45e-59)
(* x (* 18.0 (* t (* y z))))
(if (<= t -2.3e-295)
(* -27.0 (* j k))
(if (<= t 7.2e+28) (* x (* i -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 = x * (y * (t * (18.0 * z)));
double tmp;
if (t <= -1.25e+181) {
tmp = t_1;
} else if (t <= -1.25e+83) {
tmp = j * (k * -27.0);
} else if (t <= -1.45e-59) {
tmp = x * (18.0 * (t * (y * z)));
} else if (t <= -2.3e-295) {
tmp = -27.0 * (j * k);
} else if (t <= 7.2e+28) {
tmp = x * (i * -4.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 = x * (y * (t * (18.0d0 * z)))
if (t <= (-1.25d+181)) then
tmp = t_1
else if (t <= (-1.25d+83)) then
tmp = j * (k * (-27.0d0))
else if (t <= (-1.45d-59)) then
tmp = x * (18.0d0 * (t * (y * z)))
else if (t <= (-2.3d-295)) then
tmp = (-27.0d0) * (j * k)
else if (t <= 7.2d+28) then
tmp = x * (i * (-4.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 = x * (y * (t * (18.0 * z)));
double tmp;
if (t <= -1.25e+181) {
tmp = t_1;
} else if (t <= -1.25e+83) {
tmp = j * (k * -27.0);
} else if (t <= -1.45e-59) {
tmp = x * (18.0 * (t * (y * z)));
} else if (t <= -2.3e-295) {
tmp = -27.0 * (j * k);
} else if (t <= 7.2e+28) {
tmp = x * (i * -4.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 = x * (y * (t * (18.0 * z))) tmp = 0 if t <= -1.25e+181: tmp = t_1 elif t <= -1.25e+83: tmp = j * (k * -27.0) elif t <= -1.45e-59: tmp = x * (18.0 * (t * (y * z))) elif t <= -2.3e-295: tmp = -27.0 * (j * k) elif t <= 7.2e+28: tmp = x * (i * -4.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(x * Float64(y * Float64(t * Float64(18.0 * z)))) tmp = 0.0 if (t <= -1.25e+181) tmp = t_1; elseif (t <= -1.25e+83) tmp = Float64(j * Float64(k * -27.0)); elseif (t <= -1.45e-59) tmp = Float64(x * Float64(18.0 * Float64(t * Float64(y * z)))); elseif (t <= -2.3e-295) tmp = Float64(-27.0 * Float64(j * k)); elseif (t <= 7.2e+28) tmp = Float64(x * Float64(i * -4.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 = x * (y * (t * (18.0 * z)));
tmp = 0.0;
if (t <= -1.25e+181)
tmp = t_1;
elseif (t <= -1.25e+83)
tmp = j * (k * -27.0);
elseif (t <= -1.45e-59)
tmp = x * (18.0 * (t * (y * z)));
elseif (t <= -2.3e-295)
tmp = -27.0 * (j * k);
elseif (t <= 7.2e+28)
tmp = x * (i * -4.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[(x * N[(y * N[(t * N[(18.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.25e+181], t$95$1, If[LessEqual[t, -1.25e+83], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.45e-59], N[(x * N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.3e-295], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.2e+28], N[(x * N[(i * -4.0), $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(y \cdot \left(t \cdot \left(18 \cdot z\right)\right)\right)\\
\mathbf{if}\;t \leq -1.25 \cdot 10^{+181}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.25 \cdot 10^{+83}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{elif}\;t \leq -1.45 \cdot 10^{-59}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;t \leq -2.3 \cdot 10^{-295}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{+28}:\\
\;\;\;\;x \cdot \left(i \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.2500000000000001e181 or 7.1999999999999999e28 < t Initial program 80.8%
Simplified90.3%
Taylor expanded in x around inf 58.5%
Taylor expanded in t around inf 51.1%
*-commutative51.1%
*-commutative51.1%
associate-*l*52.1%
*-commutative52.1%
associate-*r*52.1%
associate-*l*52.1%
Simplified52.1%
if -1.2500000000000001e181 < t < -1.25000000000000007e83Initial program 92.9%
Simplified92.4%
Taylor expanded in j around inf 37.3%
*-commutative37.3%
associate-*r*37.1%
*-commutative37.1%
Simplified37.1%
if -1.25000000000000007e83 < t < -1.45000000000000008e-59Initial program 88.3%
Simplified88.3%
Taylor expanded in x around inf 55.0%
Taylor expanded in t around inf 43.5%
if -1.45000000000000008e-59 < t < -2.3e-295Initial program 86.3%
Simplified88.6%
Taylor expanded in j around inf 41.3%
if -2.3e-295 < t < 7.1999999999999999e28Initial program 89.6%
pow189.6%
associate-*l*94.0%
*-commutative94.0%
Applied egg-rr94.0%
unpow194.0%
associate-*r*94.0%
*-commutative94.0%
*-commutative94.0%
*-commutative94.0%
Simplified94.0%
Taylor expanded in i around inf 37.3%
*-commutative37.3%
*-commutative37.3%
associate-*r*37.3%
Simplified37.3%
Final simplification44.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
(if (<= t -1.42e+203)
(* t (- (* 18.0 (* x (* y z))) (* a 4.0)))
(if (<= t -1.3e+83)
(* a (+ (* -27.0 (/ (* j k) a)) (* t -4.0)))
(if (or (<= t -1.45e-59) (not (<= t 4.8e+39)))
(* t (+ (* a -4.0) (* (* x 18.0) (* y z))))
(+ (* j (* k -27.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 tmp;
if (t <= -1.42e+203) {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
} else if (t <= -1.3e+83) {
tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
} else if ((t <= -1.45e-59) || !(t <= 4.8e+39)) {
tmp = t * ((a * -4.0) + ((x * 18.0) * (y * z)));
} else {
tmp = (j * (k * -27.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) :: tmp
if (t <= (-1.42d+203)) then
tmp = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
else if (t <= (-1.3d+83)) then
tmp = a * (((-27.0d0) * ((j * k) / a)) + (t * (-4.0d0)))
else if ((t <= (-1.45d-59)) .or. (.not. (t <= 4.8d+39))) then
tmp = t * ((a * (-4.0d0)) + ((x * 18.0d0) * (y * z)))
else
tmp = (j * (k * (-27.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 tmp;
if (t <= -1.42e+203) {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
} else if (t <= -1.3e+83) {
tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
} else if ((t <= -1.45e-59) || !(t <= 4.8e+39)) {
tmp = t * ((a * -4.0) + ((x * 18.0) * (y * z)));
} else {
tmp = (j * (k * -27.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): tmp = 0 if t <= -1.42e+203: tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0)) elif t <= -1.3e+83: tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0)) elif (t <= -1.45e-59) or not (t <= 4.8e+39): tmp = t * ((a * -4.0) + ((x * 18.0) * (y * z))) else: tmp = (j * (k * -27.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) tmp = 0.0 if (t <= -1.42e+203) tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0))); elseif (t <= -1.3e+83) tmp = Float64(a * Float64(Float64(-27.0 * Float64(Float64(j * k) / a)) + Float64(t * -4.0))); elseif ((t <= -1.45e-59) || !(t <= 4.8e+39)) tmp = Float64(t * Float64(Float64(a * -4.0) + Float64(Float64(x * 18.0) * Float64(y * z)))); else tmp = Float64(Float64(j * Float64(k * -27.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)
tmp = 0.0;
if (t <= -1.42e+203)
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
elseif (t <= -1.3e+83)
tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
elseif ((t <= -1.45e-59) || ~((t <= 4.8e+39)))
tmp = t * ((a * -4.0) + ((x * 18.0) * (y * z)));
else
tmp = (j * (k * -27.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_] := If[LessEqual[t, -1.42e+203], 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.3e+83], N[(a * N[(N[(-27.0 * N[(N[(j * k), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] + N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -1.45e-59], N[Not[LessEqual[t, 4.8e+39]], $MachinePrecision]], N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(N[(x * 18.0), $MachinePrecision] * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(k * -27.0), $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}
\mathbf{if}\;t \leq -1.42 \cdot 10^{+203}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;t \leq -1.3 \cdot 10^{+83}:\\
\;\;\;\;a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + t \cdot -4\right)\\
\mathbf{elif}\;t \leq -1.45 \cdot 10^{-59} \lor \neg \left(t \leq 4.8 \cdot 10^{+39}\right):\\
\;\;\;\;t \cdot \left(a \cdot -4 + \left(x \cdot 18\right) \cdot \left(y \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + -4 \cdot \left(x \cdot i\right)\\
\end{array}
\end{array}
if t < -1.41999999999999999e203Initial program 79.3%
pow179.3%
associate-*l*73.4%
*-commutative73.4%
Applied egg-rr73.4%
unpow173.4%
associate-*r*73.4%
*-commutative73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in t around inf 83.3%
if -1.41999999999999999e203 < t < -1.3000000000000001e83Initial program 93.4%
Simplified92.9%
Taylor expanded in a around inf 61.6%
associate-*r*61.6%
*-commutative61.6%
metadata-eval61.6%
distribute-rgt-neg-in61.6%
*-commutative61.6%
distribute-rgt-neg-in61.6%
metadata-eval61.6%
*-commutative61.6%
Simplified61.6%
Taylor expanded in a around inf 65.1%
if -1.3000000000000001e83 < t < -1.45000000000000008e-59 or 4.8000000000000002e39 < t Initial program 83.1%
pow183.1%
associate-*l*77.1%
*-commutative77.1%
Applied egg-rr77.1%
unpow177.1%
associate-*r*77.1%
*-commutative77.1%
*-commutative77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in t around inf 71.2%
cancel-sign-sub-inv71.2%
associate-*r*71.3%
*-commutative71.3%
metadata-eval71.3%
Applied egg-rr71.3%
if -1.45000000000000008e-59 < t < 4.8000000000000002e39Initial program 88.4%
Simplified88.4%
Taylor expanded in i around inf 61.4%
Final simplification67.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 (* t (+ (* a -4.0) (* (* x 18.0) (* y z))))))
(if (<= t -1.3e+203)
t_1
(if (<= t -3.3e+82)
(* a (+ (* -27.0 (/ (* j k) a)) (* t -4.0)))
(if (or (<= t -1.45e-59) (not (<= t 8.2e+37)))
t_1
(+ (* j (* k -27.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 = t * ((a * -4.0) + ((x * 18.0) * (y * z)));
double tmp;
if (t <= -1.3e+203) {
tmp = t_1;
} else if (t <= -3.3e+82) {
tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
} else if ((t <= -1.45e-59) || !(t <= 8.2e+37)) {
tmp = t_1;
} else {
tmp = (j * (k * -27.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 = t * ((a * (-4.0d0)) + ((x * 18.0d0) * (y * z)))
if (t <= (-1.3d+203)) then
tmp = t_1
else if (t <= (-3.3d+82)) then
tmp = a * (((-27.0d0) * ((j * k) / a)) + (t * (-4.0d0)))
else if ((t <= (-1.45d-59)) .or. (.not. (t <= 8.2d+37))) then
tmp = t_1
else
tmp = (j * (k * (-27.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 = t * ((a * -4.0) + ((x * 18.0) * (y * z)));
double tmp;
if (t <= -1.3e+203) {
tmp = t_1;
} else if (t <= -3.3e+82) {
tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
} else if ((t <= -1.45e-59) || !(t <= 8.2e+37)) {
tmp = t_1;
} else {
tmp = (j * (k * -27.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 = t * ((a * -4.0) + ((x * 18.0) * (y * z))) tmp = 0 if t <= -1.3e+203: tmp = t_1 elif t <= -3.3e+82: tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0)) elif (t <= -1.45e-59) or not (t <= 8.2e+37): tmp = t_1 else: tmp = (j * (k * -27.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(t * Float64(Float64(a * -4.0) + Float64(Float64(x * 18.0) * Float64(y * z)))) tmp = 0.0 if (t <= -1.3e+203) tmp = t_1; elseif (t <= -3.3e+82) tmp = Float64(a * Float64(Float64(-27.0 * Float64(Float64(j * k) / a)) + Float64(t * -4.0))); elseif ((t <= -1.45e-59) || !(t <= 8.2e+37)) tmp = t_1; else tmp = Float64(Float64(j * Float64(k * -27.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 = t * ((a * -4.0) + ((x * 18.0) * (y * z)));
tmp = 0.0;
if (t <= -1.3e+203)
tmp = t_1;
elseif (t <= -3.3e+82)
tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
elseif ((t <= -1.45e-59) || ~((t <= 8.2e+37)))
tmp = t_1;
else
tmp = (j * (k * -27.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[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(N[(x * 18.0), $MachinePrecision] * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.3e+203], t$95$1, If[LessEqual[t, -3.3e+82], N[(a * N[(N[(-27.0 * N[(N[(j * k), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] + N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -1.45e-59], N[Not[LessEqual[t, 8.2e+37]], $MachinePrecision]], t$95$1, N[(N[(j * N[(k * -27.0), $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 := t \cdot \left(a \cdot -4 + \left(x \cdot 18\right) \cdot \left(y \cdot z\right)\right)\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{+203}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -3.3 \cdot 10^{+82}:\\
\;\;\;\;a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + t \cdot -4\right)\\
\mathbf{elif}\;t \leq -1.45 \cdot 10^{-59} \lor \neg \left(t \leq 8.2 \cdot 10^{+37}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + -4 \cdot \left(x \cdot i\right)\\
\end{array}
\end{array}
if t < -1.2999999999999999e203 or -3.2999999999999998e82 < t < -1.45000000000000008e-59 or 8.1999999999999996e37 < t Initial program 82.0%
pow182.0%
associate-*l*76.0%
*-commutative76.0%
Applied egg-rr76.0%
unpow176.0%
associate-*r*76.1%
*-commutative76.1%
*-commutative76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in t around inf 74.7%
cancel-sign-sub-inv74.7%
associate-*r*74.7%
*-commutative74.7%
metadata-eval74.7%
Applied egg-rr74.7%
if -1.2999999999999999e203 < t < -3.2999999999999998e82Initial program 93.4%
Simplified92.9%
Taylor expanded in a around inf 61.6%
associate-*r*61.6%
*-commutative61.6%
metadata-eval61.6%
distribute-rgt-neg-in61.6%
*-commutative61.6%
distribute-rgt-neg-in61.6%
metadata-eval61.6%
*-commutative61.6%
Simplified61.6%
Taylor expanded in a around inf 65.1%
if -1.45000000000000008e-59 < t < 8.1999999999999996e37Initial program 88.4%
Simplified88.4%
Taylor expanded in i around inf 61.4%
Final simplification67.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 -3.05e+203)
(* t (- (* 18.0 (* x (* y z))) (* a 4.0)))
(if (<= t -1.25e+18)
(* a (+ (* -27.0 (/ (* j k) a)) (* t -4.0)))
(if (<= t -8e-60)
(* x (- (* 18.0 (* t (* y z))) (* 4.0 i)))
(if (<= t 2e+36)
(+ (* j (* k -27.0)) (* -4.0 (* x i)))
(* t (+ (* a -4.0) (* (* x 18.0) (* y z)))))))))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.05e+203) {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
} else if (t <= -1.25e+18) {
tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
} else if (t <= -8e-60) {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
} else if (t <= 2e+36) {
tmp = (j * (k * -27.0)) + (-4.0 * (x * i));
} else {
tmp = t * ((a * -4.0) + ((x * 18.0) * (y * z)));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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.05d+203)) then
tmp = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
else if (t <= (-1.25d+18)) then
tmp = a * (((-27.0d0) * ((j * k) / a)) + (t * (-4.0d0)))
else if (t <= (-8d-60)) then
tmp = x * ((18.0d0 * (t * (y * z))) - (4.0d0 * i))
else if (t <= 2d+36) then
tmp = (j * (k * (-27.0d0))) + ((-4.0d0) * (x * i))
else
tmp = t * ((a * (-4.0d0)) + ((x * 18.0d0) * (y * z)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
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.05e+203) {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
} else if (t <= -1.25e+18) {
tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
} else if (t <= -8e-60) {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
} else if (t <= 2e+36) {
tmp = (j * (k * -27.0)) + (-4.0 * (x * i));
} else {
tmp = t * ((a * -4.0) + ((x * 18.0) * (y * z)));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [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.05e+203: tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0)) elif t <= -1.25e+18: tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0)) elif t <= -8e-60: tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)) elif t <= 2e+36: tmp = (j * (k * -27.0)) + (-4.0 * (x * i)) else: tmp = t * ((a * -4.0) + ((x * 18.0) * (y * z))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) 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.05e+203) tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0))); elseif (t <= -1.25e+18) tmp = Float64(a * Float64(Float64(-27.0 * Float64(Float64(j * k) / a)) + Float64(t * -4.0))); elseif (t <= -8e-60) tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i))); elseif (t <= 2e+36) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(-4.0 * Float64(x * i))); else tmp = Float64(t * Float64(Float64(a * -4.0) + Float64(Float64(x * 18.0) * Float64(y * z)))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
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.05e+203)
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
elseif (t <= -1.25e+18)
tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
elseif (t <= -8e-60)
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
elseif (t <= 2e+36)
tmp = (j * (k * -27.0)) + (-4.0 * (x * i));
else
tmp = t * ((a * -4.0) + ((x * 18.0) * (y * z)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. 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.05e+203], 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.25e+18], N[(a * N[(N[(-27.0 * N[(N[(j * k), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] + N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8e-60], N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e+36], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(N[(x * 18.0), $MachinePrecision] * N[(y * z), $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}\;t \leq -3.05 \cdot 10^{+203}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;t \leq -1.25 \cdot 10^{+18}:\\
\;\;\;\;a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + t \cdot -4\right)\\
\mathbf{elif}\;t \leq -8 \cdot 10^{-60}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+36}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + -4 \cdot \left(x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot -4 + \left(x \cdot 18\right) \cdot \left(y \cdot z\right)\right)\\
\end{array}
\end{array}
if t < -3.05000000000000007e203Initial program 79.3%
pow179.3%
associate-*l*73.4%
*-commutative73.4%
Applied egg-rr73.4%
unpow173.4%
associate-*r*73.4%
*-commutative73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in t around inf 83.3%
if -3.05000000000000007e203 < t < -1.25e18Initial program 92.7%
Simplified92.4%
Taylor expanded in a around inf 62.4%
associate-*r*62.4%
*-commutative62.4%
metadata-eval62.4%
distribute-rgt-neg-in62.4%
*-commutative62.4%
distribute-rgt-neg-in62.4%
metadata-eval62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in a around inf 65.0%
if -1.25e18 < t < -7.9999999999999998e-60Initial program 86.5%
Simplified86.5%
Taylor expanded in x around inf 60.8%
if -7.9999999999999998e-60 < t < 2.00000000000000008e36Initial program 88.4%
Simplified88.4%
Taylor expanded in i around inf 61.4%
if 2.00000000000000008e36 < t Initial program 80.6%
pow180.6%
associate-*l*75.5%
*-commutative75.5%
Applied egg-rr75.5%
unpow175.5%
associate-*r*75.5%
*-commutative75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in t around inf 75.3%
cancel-sign-sub-inv75.3%
associate-*r*75.3%
*-commutative75.3%
metadata-eval75.3%
Applied egg-rr75.3%
Final simplification67.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 (* -27.0 (* j k))))
(if (<= (* b c) -2.1e+104)
(* b c)
(if (<= (* b c) 1.4e-240)
t_1
(if (<= (* b c) 3100000000000.0)
(* t (* a -4.0))
(if (<= (* b c) 7.5e+237) 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 = -27.0 * (j * k);
double tmp;
if ((b * c) <= -2.1e+104) {
tmp = b * c;
} else if ((b * c) <= 1.4e-240) {
tmp = t_1;
} else if ((b * c) <= 3100000000000.0) {
tmp = t * (a * -4.0);
} else if ((b * c) <= 7.5e+237) {
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 = (-27.0d0) * (j * k)
if ((b * c) <= (-2.1d+104)) then
tmp = b * c
else if ((b * c) <= 1.4d-240) then
tmp = t_1
else if ((b * c) <= 3100000000000.0d0) then
tmp = t * (a * (-4.0d0))
else if ((b * c) <= 7.5d+237) 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 = -27.0 * (j * k);
double tmp;
if ((b * c) <= -2.1e+104) {
tmp = b * c;
} else if ((b * c) <= 1.4e-240) {
tmp = t_1;
} else if ((b * c) <= 3100000000000.0) {
tmp = t * (a * -4.0);
} else if ((b * c) <= 7.5e+237) {
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 = -27.0 * (j * k) tmp = 0 if (b * c) <= -2.1e+104: tmp = b * c elif (b * c) <= 1.4e-240: tmp = t_1 elif (b * c) <= 3100000000000.0: tmp = t * (a * -4.0) elif (b * c) <= 7.5e+237: 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(-27.0 * Float64(j * k)) tmp = 0.0 if (Float64(b * c) <= -2.1e+104) tmp = Float64(b * c); elseif (Float64(b * c) <= 1.4e-240) tmp = t_1; elseif (Float64(b * c) <= 3100000000000.0) tmp = Float64(t * Float64(a * -4.0)); elseif (Float64(b * c) <= 7.5e+237) 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 = -27.0 * (j * k);
tmp = 0.0;
if ((b * c) <= -2.1e+104)
tmp = b * c;
elseif ((b * c) <= 1.4e-240)
tmp = t_1;
elseif ((b * c) <= 3100000000000.0)
tmp = t * (a * -4.0);
elseif ((b * c) <= 7.5e+237)
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[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -2.1e+104], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1.4e-240], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], 3100000000000.0], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 7.5e+237], 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 := -27 \cdot \left(j \cdot k\right)\\
\mathbf{if}\;b \cdot c \leq -2.1 \cdot 10^{+104}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq 1.4 \cdot 10^{-240}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \cdot c \leq 3100000000000:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq 7.5 \cdot 10^{+237}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -2.0999999999999998e104 or 7.5e237 < (*.f64 b c) Initial program 86.4%
pow186.4%
associate-*l*88.1%
*-commutative88.1%
Applied egg-rr88.1%
unpow188.1%
associate-*r*88.1%
*-commutative88.1%
*-commutative88.1%
*-commutative88.1%
Simplified88.1%
Taylor expanded in b around inf 61.3%
if -2.0999999999999998e104 < (*.f64 b c) < 1.4e-240 or 3.1e12 < (*.f64 b c) < 7.5e237Initial program 86.7%
Simplified88.6%
Taylor expanded in j around inf 32.1%
if 1.4e-240 < (*.f64 b c) < 3.1e12Initial program 82.4%
pow182.4%
associate-*l*79.7%
*-commutative79.7%
Applied egg-rr79.7%
unpow179.7%
associate-*r*79.7%
*-commutative79.7%
*-commutative79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in a around inf 32.7%
*-commutative32.7%
*-commutative32.7%
associate-*r*32.7%
Simplified32.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 (if (or (<= t -3.3e-57) (not (<= t 6.8e-63))) (- (+ (* b c) (* t (- (* (* x 18.0) (* y z)) (* a 4.0)))) (* (* j 27.0) k)) (- (* b c) (+ (* 4.0 (* x i)) (* 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 ((t <= -3.3e-57) || !(t <= 6.8e-63)) {
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((j * 27.0) * k);
} else {
tmp = (b * c) - ((4.0 * (x * i)) + (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 ((t <= (-3.3d-57)) .or. (.not. (t <= 6.8d-63))) then
tmp = ((b * c) + (t * (((x * 18.0d0) * (y * z)) - (a * 4.0d0)))) - ((j * 27.0d0) * k)
else
tmp = (b * c) - ((4.0d0 * (x * i)) + (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 ((t <= -3.3e-57) || !(t <= 6.8e-63)) {
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((j * 27.0) * k);
} else {
tmp = (b * c) - ((4.0 * (x * i)) + (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 (t <= -3.3e-57) or not (t <= 6.8e-63): tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((j * 27.0) * k) else: tmp = (b * c) - ((4.0 * (x * i)) + (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 ((t <= -3.3e-57) || !(t <= 6.8e-63)) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(x * 18.0) * Float64(y * z)) - Float64(a * 4.0)))) - Float64(Float64(j * 27.0) * k)); else tmp = Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(x * i)) + 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 ((t <= -3.3e-57) || ~((t <= 6.8e-63)))
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((j * 27.0) * k);
else
tmp = (b * c) - ((4.0 * (x * i)) + (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[t, -3.3e-57], N[Not[LessEqual[t, 6.8e-63]], $MachinePrecision]], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(x * 18.0), $MachinePrecision] * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[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.3 \cdot 10^{-57} \lor \neg \left(t \leq 6.8 \cdot 10^{-63}\right):\\
\;\;\;\;\left(b \cdot c + t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right)\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + 27 \cdot \left(j \cdot k\right)\right)\\
\end{array}
\end{array}
if t < -3.2999999999999998e-57 or 6.79999999999999997e-63 < t Initial program 84.7%
Simplified90.1%
Taylor expanded in x around 0 84.5%
associate-*r*84.5%
*-commutative84.5%
Simplified84.5%
if -3.2999999999999998e-57 < t < 6.79999999999999997e-63Initial program 88.3%
Simplified88.4%
Taylor expanded in t around 0 87.7%
Final simplification85.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 (* t (* a -4.0))) (t_2 (* -27.0 (* j k))))
(if (<= j -1.42e+104)
t_2
(if (<= j -2.6e-123)
(* x (* i -4.0))
(if (<= j -8.5e-280)
t_1
(if (<= j 7.2e-229) (* b c) (if (<= j 6.6e-65) t_1 t_2)))))))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 * (a * -4.0);
double t_2 = -27.0 * (j * k);
double tmp;
if (j <= -1.42e+104) {
tmp = t_2;
} else if (j <= -2.6e-123) {
tmp = x * (i * -4.0);
} else if (j <= -8.5e-280) {
tmp = t_1;
} else if (j <= 7.2e-229) {
tmp = b * c;
} else if (j <= 6.6e-65) {
tmp = t_1;
} else {
tmp = t_2;
}
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) :: tmp
t_1 = t * (a * (-4.0d0))
t_2 = (-27.0d0) * (j * k)
if (j <= (-1.42d+104)) then
tmp = t_2
else if (j <= (-2.6d-123)) then
tmp = x * (i * (-4.0d0))
else if (j <= (-8.5d-280)) then
tmp = t_1
else if (j <= 7.2d-229) then
tmp = b * c
else if (j <= 6.6d-65) then
tmp = t_1
else
tmp = t_2
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 * (a * -4.0);
double t_2 = -27.0 * (j * k);
double tmp;
if (j <= -1.42e+104) {
tmp = t_2;
} else if (j <= -2.6e-123) {
tmp = x * (i * -4.0);
} else if (j <= -8.5e-280) {
tmp = t_1;
} else if (j <= 7.2e-229) {
tmp = b * c;
} else if (j <= 6.6e-65) {
tmp = t_1;
} else {
tmp = t_2;
}
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 * (a * -4.0) t_2 = -27.0 * (j * k) tmp = 0 if j <= -1.42e+104: tmp = t_2 elif j <= -2.6e-123: tmp = x * (i * -4.0) elif j <= -8.5e-280: tmp = t_1 elif j <= 7.2e-229: tmp = b * c elif j <= 6.6e-65: tmp = t_1 else: tmp = t_2 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(a * -4.0)) t_2 = Float64(-27.0 * Float64(j * k)) tmp = 0.0 if (j <= -1.42e+104) tmp = t_2; elseif (j <= -2.6e-123) tmp = Float64(x * Float64(i * -4.0)); elseif (j <= -8.5e-280) tmp = t_1; elseif (j <= 7.2e-229) tmp = Float64(b * c); elseif (j <= 6.6e-65) tmp = t_1; else tmp = t_2; 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 * (a * -4.0);
t_2 = -27.0 * (j * k);
tmp = 0.0;
if (j <= -1.42e+104)
tmp = t_2;
elseif (j <= -2.6e-123)
tmp = x * (i * -4.0);
elseif (j <= -8.5e-280)
tmp = t_1;
elseif (j <= 7.2e-229)
tmp = b * c;
elseif (j <= 6.6e-65)
tmp = t_1;
else
tmp = t_2;
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[(a * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.42e+104], t$95$2, If[LessEqual[j, -2.6e-123], N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -8.5e-280], t$95$1, If[LessEqual[j, 7.2e-229], N[(b * c), $MachinePrecision], If[LessEqual[j, 6.6e-65], t$95$1, t$95$2]]]]]]]
\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(a \cdot -4\right)\\
t_2 := -27 \cdot \left(j \cdot k\right)\\
\mathbf{if}\;j \leq -1.42 \cdot 10^{+104}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -2.6 \cdot 10^{-123}:\\
\;\;\;\;x \cdot \left(i \cdot -4\right)\\
\mathbf{elif}\;j \leq -8.5 \cdot 10^{-280}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 7.2 \cdot 10^{-229}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;j \leq 6.6 \cdot 10^{-65}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -1.42e104 or 6.6000000000000002e-65 < j Initial program 84.8%
Simplified86.6%
Taylor expanded in j around inf 47.0%
if -1.42e104 < j < -2.59999999999999995e-123Initial program 81.9%
pow181.9%
associate-*l*82.0%
*-commutative82.0%
Applied egg-rr82.0%
unpow182.0%
associate-*r*82.0%
*-commutative82.0%
*-commutative82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in i around inf 22.6%
*-commutative22.6%
*-commutative22.6%
associate-*r*22.6%
Simplified22.6%
if -2.59999999999999995e-123 < j < -8.50000000000000037e-280 or 7.20000000000000006e-229 < j < 6.6000000000000002e-65Initial program 90.1%
pow190.1%
associate-*l*87.5%
*-commutative87.5%
Applied egg-rr87.5%
unpow187.5%
associate-*r*87.5%
*-commutative87.5%
*-commutative87.5%
*-commutative87.5%
Simplified87.5%
Taylor expanded in a around inf 27.8%
*-commutative27.8%
*-commutative27.8%
associate-*r*27.8%
Simplified27.8%
if -8.50000000000000037e-280 < j < 7.20000000000000006e-229Initial program 84.2%
pow184.2%
associate-*l*84.2%
*-commutative84.2%
Applied egg-rr84.2%
unpow184.2%
associate-*r*84.2%
*-commutative84.2%
*-commutative84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in b around inf 37.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 (* 27.0 (* j k))))
(if (<= t -1.42e+203)
(* t (- (* 18.0 (* x (* y z))) (* a 4.0)))
(if (<= t -5e-40)
(- (+ (* b c) (* -4.0 (* t a))) t_1)
(if (<= t 3.8e+41)
(- (* b c) (+ (* 4.0 (* x i)) t_1))
(* t (+ (* a -4.0) (* (* x 18.0) (* y z)))))))))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 = 27.0 * (j * k);
double tmp;
if (t <= -1.42e+203) {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
} else if (t <= -5e-40) {
tmp = ((b * c) + (-4.0 * (t * a))) - t_1;
} else if (t <= 3.8e+41) {
tmp = (b * c) - ((4.0 * (x * i)) + t_1);
} else {
tmp = t * ((a * -4.0) + ((x * 18.0) * (y * z)));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = 27.0d0 * (j * k)
if (t <= (-1.42d+203)) then
tmp = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
else if (t <= (-5d-40)) then
tmp = ((b * c) + ((-4.0d0) * (t * a))) - t_1
else if (t <= 3.8d+41) then
tmp = (b * c) - ((4.0d0 * (x * i)) + t_1)
else
tmp = t * ((a * (-4.0d0)) + ((x * 18.0d0) * (y * z)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = 27.0 * (j * k);
double tmp;
if (t <= -1.42e+203) {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
} else if (t <= -5e-40) {
tmp = ((b * c) + (-4.0 * (t * a))) - t_1;
} else if (t <= 3.8e+41) {
tmp = (b * c) - ((4.0 * (x * i)) + t_1);
} else {
tmp = t * ((a * -4.0) + ((x * 18.0) * (y * z)));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = 27.0 * (j * k) tmp = 0 if t <= -1.42e+203: tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0)) elif t <= -5e-40: tmp = ((b * c) + (-4.0 * (t * a))) - t_1 elif t <= 3.8e+41: tmp = (b * c) - ((4.0 * (x * i)) + t_1) else: tmp = t * ((a * -4.0) + ((x * 18.0) * (y * z))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(27.0 * Float64(j * k)) tmp = 0.0 if (t <= -1.42e+203) tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0))); elseif (t <= -5e-40) tmp = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - t_1); elseif (t <= 3.8e+41) tmp = Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(x * i)) + t_1)); else tmp = Float64(t * Float64(Float64(a * -4.0) + Float64(Float64(x * 18.0) * Float64(y * z)))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = 27.0 * (j * k);
tmp = 0.0;
if (t <= -1.42e+203)
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
elseif (t <= -5e-40)
tmp = ((b * c) + (-4.0 * (t * a))) - t_1;
elseif (t <= 3.8e+41)
tmp = (b * c) - ((4.0 * (x * i)) + t_1);
else
tmp = t * ((a * -4.0) + ((x * 18.0) * (y * z)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.42e+203], N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5e-40], N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t, 3.8e+41], N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(N[(x * 18.0), $MachinePrecision] * N[(y * z), $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}
t_1 := 27 \cdot \left(j \cdot k\right)\\
\mathbf{if}\;t \leq -1.42 \cdot 10^{+203}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;t \leq -5 \cdot 10^{-40}:\\
\;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - t\_1\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{+41}:\\
\;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot -4 + \left(x \cdot 18\right) \cdot \left(y \cdot z\right)\right)\\
\end{array}
\end{array}
if t < -1.41999999999999999e203Initial program 79.3%
pow179.3%
associate-*l*73.4%
*-commutative73.4%
Applied egg-rr73.4%
unpow173.4%
associate-*r*73.4%
*-commutative73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in t around inf 83.3%
if -1.41999999999999999e203 < t < -4.99999999999999965e-40Initial program 90.0%
Simplified89.8%
Taylor expanded in x around 0 68.0%
if -4.99999999999999965e-40 < t < 3.8000000000000001e41Initial program 88.9%
Simplified88.9%
Taylor expanded in t around 0 82.6%
if 3.8000000000000001e41 < t Initial program 80.6%
pow180.6%
associate-*l*75.5%
*-commutative75.5%
Applied egg-rr75.5%
unpow175.5%
associate-*r*75.5%
*-commutative75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in t around inf 75.3%
cancel-sign-sub-inv75.3%
associate-*r*75.3%
*-commutative75.3%
metadata-eval75.3%
Applied egg-rr75.3%
Final simplification78.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 (* x (* y (* t (* 18.0 z))))))
(if (<= t -1.95e+203)
t_1
(if (<= t -115000.0)
(+ (* -4.0 (* t a)) (* -27.0 (* j k)))
(if (<= t 1.9e+37) (+ (* 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 = x * (y * (t * (18.0 * z)));
double tmp;
if (t <= -1.95e+203) {
tmp = t_1;
} else if (t <= -115000.0) {
tmp = (-4.0 * (t * a)) + (-27.0 * (j * k));
} else if (t <= 1.9e+37) {
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 = x * (y * (t * (18.0d0 * z)))
if (t <= (-1.95d+203)) then
tmp = t_1
else if (t <= (-115000.0d0)) then
tmp = ((-4.0d0) * (t * a)) + ((-27.0d0) * (j * k))
else if (t <= 1.9d+37) 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 = x * (y * (t * (18.0 * z)));
double tmp;
if (t <= -1.95e+203) {
tmp = t_1;
} else if (t <= -115000.0) {
tmp = (-4.0 * (t * a)) + (-27.0 * (j * k));
} else if (t <= 1.9e+37) {
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 = x * (y * (t * (18.0 * z))) tmp = 0 if t <= -1.95e+203: tmp = t_1 elif t <= -115000.0: tmp = (-4.0 * (t * a)) + (-27.0 * (j * k)) elif t <= 1.9e+37: 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(x * Float64(y * Float64(t * Float64(18.0 * z)))) tmp = 0.0 if (t <= -1.95e+203) tmp = t_1; elseif (t <= -115000.0) tmp = Float64(Float64(-4.0 * Float64(t * a)) + Float64(-27.0 * Float64(j * k))); elseif (t <= 1.9e+37) 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 = x * (y * (t * (18.0 * z)));
tmp = 0.0;
if (t <= -1.95e+203)
tmp = t_1;
elseif (t <= -115000.0)
tmp = (-4.0 * (t * a)) + (-27.0 * (j * k));
elseif (t <= 1.9e+37)
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[(x * N[(y * N[(t * N[(18.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.95e+203], t$95$1, If[LessEqual[t, -115000.0], N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.9e+37], 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 := x \cdot \left(y \cdot \left(t \cdot \left(18 \cdot z\right)\right)\right)\\
\mathbf{if}\;t \leq -1.95 \cdot 10^{+203}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -115000:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right) + -27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{+37}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.94999999999999987e203 or 1.89999999999999995e37 < t Initial program 80.1%
Simplified90.0%
Taylor expanded in x around inf 59.3%
Taylor expanded in t around inf 51.6%
*-commutative51.6%
*-commutative51.6%
associate-*l*52.7%
*-commutative52.7%
associate-*r*52.7%
associate-*l*52.7%
Simplified52.7%
if -1.94999999999999987e203 < t < -115000Initial program 93.0%
Simplified92.7%
Taylor expanded in a around inf 61.9%
associate-*r*61.9%
*-commutative61.9%
metadata-eval61.9%
distribute-rgt-neg-in61.9%
*-commutative61.9%
distribute-rgt-neg-in61.9%
metadata-eval61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in t around 0 64.2%
if -115000 < t < 1.89999999999999995e37Initial program 88.0%
Simplified88.0%
Taylor expanded in b around inf 54.5%
Final simplification55.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 (or (<= t -1.85e+189) (not (<= t 3.8e+41))) (* x (* y (* t (* 18.0 z)))) (+ (* b c) (* j (* k -27.0)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
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.85e+189) || !(t <= 3.8e+41)) {
tmp = x * (y * (t * (18.0 * z)));
} else {
tmp = (b * c) + (j * (k * -27.0));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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.85d+189)) .or. (.not. (t <= 3.8d+41))) then
tmp = x * (y * (t * (18.0d0 * z)))
else
tmp = (b * c) + (j * (k * (-27.0d0)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
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.85e+189) || !(t <= 3.8e+41)) {
tmp = x * (y * (t * (18.0 * z)));
} else {
tmp = (b * c) + (j * (k * -27.0));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [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.85e+189) or not (t <= 3.8e+41): tmp = x * (y * (t * (18.0 * z))) else: tmp = (b * c) + (j * (k * -27.0)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) 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.85e+189) || !(t <= 3.8e+41)) tmp = Float64(x * Float64(y * Float64(t * Float64(18.0 * z)))); else tmp = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
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.85e+189) || ~((t <= 3.8e+41)))
tmp = x * (y * (t * (18.0 * z)));
else
tmp = (b * c) + (j * (k * -27.0));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -1.85e+189], N[Not[LessEqual[t, 3.8e+41]], $MachinePrecision]], N[(x * N[(y * N[(t * N[(18.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[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.85 \cdot 10^{+189} \lor \neg \left(t \leq 3.8 \cdot 10^{+41}\right):\\
\;\;\;\;x \cdot \left(y \cdot \left(t \cdot \left(18 \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if t < -1.8500000000000001e189 or 3.8000000000000001e41 < t Initial program 80.6%
Simplified90.2%
Taylor expanded in x around inf 59.1%
Taylor expanded in t around inf 51.6%
*-commutative51.6%
*-commutative51.6%
associate-*l*52.7%
*-commutative52.7%
associate-*r*52.6%
associate-*l*52.7%
Simplified52.7%
if -1.8500000000000001e189 < t < 3.8000000000000001e41Initial program 89.1%
Simplified89.1%
Taylor expanded in b around inf 51.3%
Final simplification51.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 (or (<= (* b c) -2.1e+104) (not (<= (* b c) 7.5e+237))) (* 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.1e+104) || !((b * c) <= 7.5e+237)) {
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.1d+104)) .or. (.not. ((b * c) <= 7.5d+237))) 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.1e+104) || !((b * c) <= 7.5e+237)) {
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.1e+104) or not ((b * c) <= 7.5e+237): 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.1e+104) || !(Float64(b * c) <= 7.5e+237)) 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.1e+104) || ~(((b * c) <= 7.5e+237)))
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.1e+104], N[Not[LessEqual[N[(b * c), $MachinePrecision], 7.5e+237]], $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.1 \cdot 10^{+104} \lor \neg \left(b \cdot c \leq 7.5 \cdot 10^{+237}\right):\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -2.0999999999999998e104 or 7.5e237 < (*.f64 b c) Initial program 86.4%
pow186.4%
associate-*l*88.1%
*-commutative88.1%
Applied egg-rr88.1%
unpow188.1%
associate-*r*88.1%
*-commutative88.1%
*-commutative88.1%
*-commutative88.1%
Simplified88.1%
Taylor expanded in b around inf 61.3%
if -2.0999999999999998e104 < (*.f64 b c) < 7.5e237Initial program 85.9%
Simplified88.4%
Taylor expanded in j around inf 28.6%
Final simplification36.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 (* 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 86.0%
pow186.0%
associate-*l*85.2%
*-commutative85.2%
Applied egg-rr85.2%
unpow185.2%
associate-*r*85.2%
*-commutative85.2%
*-commutative85.2%
*-commutative85.2%
Simplified85.2%
Taylor expanded in b around inf 18.7%
(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 2024108
(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
(if (< t -1.6210815397541398e-69) (- (- (* (* 18.0 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4.0)) (- (* (* k j) 27.0) (* c b))) (if (< t 165.68027943805222) (+ (- (* (* 18.0 y) (* x (* z t))) (* (+ (* a t) (* i x)) 4.0)) (- (* c b) (* 27.0 (* k j)))) (- (- (* (* 18.0 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4.0)) (- (* (* k j) 27.0) (* c b)))))
(- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))