
(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 30 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 (or (<= t -7.6e-83) (not (<= t 1.55e-209)))
(+
(fma t (fma x (* 18.0 (* y z)) (* a -4.0)) (fma b c (* x (* -4.0 i))))
(* j (* k -27.0)))
(-
(-
(+ (- (* y (* (* x 18.0) (* t z))) (* t (* a 4.0))) (* b c))
(* i (* x 4.0)))
(* k (* j 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 <= -7.6e-83) || !(t <= 1.55e-209)) {
tmp = fma(t, fma(x, (18.0 * (y * z)), (a * -4.0)), fma(b, c, (x * (-4.0 * i)))) + (j * (k * -27.0));
} else {
tmp = ((((y * ((x * 18.0) * (t * z))) - (t * (a * 4.0))) + (b * c)) - (i * (x * 4.0))) - (k * (j * 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 <= -7.6e-83) || !(t <= 1.55e-209)) tmp = Float64(fma(t, fma(x, Float64(18.0 * Float64(y * z)), Float64(a * -4.0)), fma(b, c, Float64(x * Float64(-4.0 * i)))) + Float64(j * Float64(k * -27.0))); else tmp = Float64(Float64(Float64(Float64(Float64(y * Float64(Float64(x * 18.0) * Float64(t * z))) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - Float64(i * Float64(x * 4.0))) - Float64(k * Float64(j * 27.0))); 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[Or[LessEqual[t, -7.6e-83], N[Not[LessEqual[t, 1.55e-209]], $MachinePrecision]], 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[(-4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(N[(y * N[(N[(x * 18.0), $MachinePrecision] * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 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 -7.6 \cdot 10^{-83} \lor \neg \left(t \leq 1.55 \cdot 10^{-209}\right):\\
\;\;\;\;\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(-4 \cdot i\right)\right)\right) + j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(y \cdot \left(\left(x \cdot 18\right) \cdot \left(t \cdot z\right)\right) - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - i \cdot \left(x \cdot 4\right)\right) - k \cdot \left(j \cdot 27\right)\\
\end{array}
\end{array}
if t < -7.59999999999999953e-83 or 1.55e-209 < t Initial program 89.0%
Simplified94.0%
if -7.59999999999999953e-83 < t < 1.55e-209Initial program 80.6%
pow180.6%
associate-*l*84.3%
*-commutative84.3%
Applied egg-rr84.3%
unpow184.3%
associate-*l*94.6%
*-commutative94.6%
Simplified94.6%
Final simplification94.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 (* b c)))
(t_3 (- (* b c) (* x (* i 4.0))))
(t_4 (* t (- (* 18.0 (* x (* y z))) (* a 4.0)))))
(if (<= t -2.15e+41)
t_4
(if (<= t -4.2e-102)
t_3
(if (<= t 7.5e-177)
t_2
(if (<= t 2.5e-78)
t_3
(if (<= t 7.6e-28)
(* -18.0 (* t (* z (- (* x y)))))
(if (<= t 7e-7)
(+ t_1 (* i (* x -4.0)))
(if (or (<= t 4.8e+41) (not (<= t 5.5e+79))) t_4 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 = j * (k * -27.0);
double t_2 = t_1 + (b * c);
double t_3 = (b * c) - (x * (i * 4.0));
double t_4 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
double tmp;
if (t <= -2.15e+41) {
tmp = t_4;
} else if (t <= -4.2e-102) {
tmp = t_3;
} else if (t <= 7.5e-177) {
tmp = t_2;
} else if (t <= 2.5e-78) {
tmp = t_3;
} else if (t <= 7.6e-28) {
tmp = -18.0 * (t * (z * -(x * y)));
} else if (t <= 7e-7) {
tmp = t_1 + (i * (x * -4.0));
} else if ((t <= 4.8e+41) || !(t <= 5.5e+79)) {
tmp = t_4;
} 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) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
t_2 = t_1 + (b * c)
t_3 = (b * c) - (x * (i * 4.0d0))
t_4 = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
if (t <= (-2.15d+41)) then
tmp = t_4
else if (t <= (-4.2d-102)) then
tmp = t_3
else if (t <= 7.5d-177) then
tmp = t_2
else if (t <= 2.5d-78) then
tmp = t_3
else if (t <= 7.6d-28) then
tmp = (-18.0d0) * (t * (z * -(x * y)))
else if (t <= 7d-7) then
tmp = t_1 + (i * (x * (-4.0d0)))
else if ((t <= 4.8d+41) .or. (.not. (t <= 5.5d+79))) then
tmp = t_4
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 = j * (k * -27.0);
double t_2 = t_1 + (b * c);
double t_3 = (b * c) - (x * (i * 4.0));
double t_4 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
double tmp;
if (t <= -2.15e+41) {
tmp = t_4;
} else if (t <= -4.2e-102) {
tmp = t_3;
} else if (t <= 7.5e-177) {
tmp = t_2;
} else if (t <= 2.5e-78) {
tmp = t_3;
} else if (t <= 7.6e-28) {
tmp = -18.0 * (t * (z * -(x * y)));
} else if (t <= 7e-7) {
tmp = t_1 + (i * (x * -4.0));
} else if ((t <= 4.8e+41) || !(t <= 5.5e+79)) {
tmp = t_4;
} 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 = j * (k * -27.0) t_2 = t_1 + (b * c) t_3 = (b * c) - (x * (i * 4.0)) t_4 = t * ((18.0 * (x * (y * z))) - (a * 4.0)) tmp = 0 if t <= -2.15e+41: tmp = t_4 elif t <= -4.2e-102: tmp = t_3 elif t <= 7.5e-177: tmp = t_2 elif t <= 2.5e-78: tmp = t_3 elif t <= 7.6e-28: tmp = -18.0 * (t * (z * -(x * y))) elif t <= 7e-7: tmp = t_1 + (i * (x * -4.0)) elif (t <= 4.8e+41) or not (t <= 5.5e+79): tmp = t_4 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(j * Float64(k * -27.0)) t_2 = Float64(t_1 + Float64(b * c)) t_3 = Float64(Float64(b * c) - Float64(x * Float64(i * 4.0))) t_4 = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0))) tmp = 0.0 if (t <= -2.15e+41) tmp = t_4; elseif (t <= -4.2e-102) tmp = t_3; elseif (t <= 7.5e-177) tmp = t_2; elseif (t <= 2.5e-78) tmp = t_3; elseif (t <= 7.6e-28) tmp = Float64(-18.0 * Float64(t * Float64(z * Float64(-Float64(x * y))))); elseif (t <= 7e-7) tmp = Float64(t_1 + Float64(i * Float64(x * -4.0))); elseif ((t <= 4.8e+41) || !(t <= 5.5e+79)) tmp = t_4; 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 = j * (k * -27.0);
t_2 = t_1 + (b * c);
t_3 = (b * c) - (x * (i * 4.0));
t_4 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
tmp = 0.0;
if (t <= -2.15e+41)
tmp = t_4;
elseif (t <= -4.2e-102)
tmp = t_3;
elseif (t <= 7.5e-177)
tmp = t_2;
elseif (t <= 2.5e-78)
tmp = t_3;
elseif (t <= 7.6e-28)
tmp = -18.0 * (t * (z * -(x * y)));
elseif (t <= 7e-7)
tmp = t_1 + (i * (x * -4.0));
elseif ((t <= 4.8e+41) || ~((t <= 5.5e+79)))
tmp = t_4;
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[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b * c), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.15e+41], t$95$4, If[LessEqual[t, -4.2e-102], t$95$3, If[LessEqual[t, 7.5e-177], t$95$2, If[LessEqual[t, 2.5e-78], t$95$3, If[LessEqual[t, 7.6e-28], N[(-18.0 * N[(t * N[(z * (-N[(x * y), $MachinePrecision])), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7e-7], N[(t$95$1 + N[(i * N[(x * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 4.8e+41], N[Not[LessEqual[t, 5.5e+79]], $MachinePrecision]], t$95$4, 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 := j \cdot \left(k \cdot -27\right)\\
t_2 := t\_1 + b \cdot c\\
t_3 := b \cdot c - x \cdot \left(i \cdot 4\right)\\
t_4 := t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -2.15 \cdot 10^{+41}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq -4.2 \cdot 10^{-102}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-177}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-78}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{-28}:\\
\;\;\;\;-18 \cdot \left(t \cdot \left(z \cdot \left(-x \cdot y\right)\right)\right)\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-7}:\\
\;\;\;\;t\_1 + i \cdot \left(x \cdot -4\right)\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{+41} \lor \neg \left(t \leq 5.5 \cdot 10^{+79}\right):\\
\;\;\;\;t\_4\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -2.15000000000000012e41 or 6.99999999999999968e-7 < t < 4.8000000000000003e41 or 5.50000000000000007e79 < t Initial program 88.9%
Simplified92.7%
associate-*r*93.5%
distribute-rgt-out--89.0%
associate-*l*81.8%
*-commutative81.8%
*-commutative81.8%
Applied egg-rr81.8%
Taylor expanded in t around inf 74.0%
if -2.15000000000000012e41 < t < -4.2e-102 or 7.5e-177 < t < 2.4999999999999998e-78Initial program 88.8%
Taylor expanded in y around 0 86.9%
Taylor expanded in j around 0 73.7%
Taylor expanded in a around 0 61.5%
associate-*r*61.5%
Simplified61.5%
if -4.2e-102 < t < 7.5e-177 or 4.8000000000000003e41 < t < 5.50000000000000007e79Initial program 81.9%
Simplified78.3%
Taylor expanded in b around inf 66.2%
if 2.4999999999999998e-78 < t < 7.60000000000000018e-28Initial program 86.2%
Simplified99.6%
associate-*r*86.2%
distribute-rgt-out--86.2%
sub-neg86.2%
associate-*l*86.2%
*-commutative86.2%
*-commutative86.2%
Applied egg-rr86.2%
distribute-lft-neg-in86.2%
*-commutative86.2%
cancel-sign-sub-inv86.2%
*-commutative86.2%
associate-*r*86.2%
distribute-rgt-out--86.2%
associate-*r*86.2%
*-commutative86.2%
*-commutative86.2%
*-commutative86.2%
Simplified86.2%
Taylor expanded in x around -inf 72.4%
mul-1-neg72.4%
cancel-sign-sub-inv72.4%
associate-*r*72.4%
metadata-eval72.4%
Simplified72.4%
Taylor expanded in t around inf 72.1%
*-commutative72.1%
associate-*r*58.7%
Simplified58.7%
if 7.60000000000000018e-28 < t < 6.99999999999999968e-7Initial program 87.5%
Simplified87.5%
Taylor expanded in i around inf 87.6%
associate-*r*87.6%
*-commutative87.6%
associate-*r*87.6%
*-commutative87.6%
*-commutative87.6%
Simplified87.6%
Final simplification69.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* y (* (* t x) (- (* z -18.0)))))
(t_2 (* j (* k -27.0)))
(t_3 (+ t_2 (* b c))))
(if (<= x -5.2e+250)
(- (* b c) (* x (* i 4.0)))
(if (<= x -3e+143)
t_1
(if (<= x -5.8e+109)
(- (* b c) (* t (* a 4.0)))
(if (<= x -2.4e-127)
t_3
(if (<= x 5.6e-212)
(+ t_2 (* t (* a -4.0)))
(if (<= x 2.9e-118)
t_3
(if (<= x 9.8e+23)
(* k (+ (* j -27.0) (* -4.0 (/ (* t a) k))))
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 = y * ((t * x) * -(z * -18.0));
double t_2 = j * (k * -27.0);
double t_3 = t_2 + (b * c);
double tmp;
if (x <= -5.2e+250) {
tmp = (b * c) - (x * (i * 4.0));
} else if (x <= -3e+143) {
tmp = t_1;
} else if (x <= -5.8e+109) {
tmp = (b * c) - (t * (a * 4.0));
} else if (x <= -2.4e-127) {
tmp = t_3;
} else if (x <= 5.6e-212) {
tmp = t_2 + (t * (a * -4.0));
} else if (x <= 2.9e-118) {
tmp = t_3;
} else if (x <= 9.8e+23) {
tmp = k * ((j * -27.0) + (-4.0 * ((t * a) / k)));
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 = y * ((t * x) * -(z * (-18.0d0)))
t_2 = j * (k * (-27.0d0))
t_3 = t_2 + (b * c)
if (x <= (-5.2d+250)) then
tmp = (b * c) - (x * (i * 4.0d0))
else if (x <= (-3d+143)) then
tmp = t_1
else if (x <= (-5.8d+109)) then
tmp = (b * c) - (t * (a * 4.0d0))
else if (x <= (-2.4d-127)) then
tmp = t_3
else if (x <= 5.6d-212) then
tmp = t_2 + (t * (a * (-4.0d0)))
else if (x <= 2.9d-118) then
tmp = t_3
else if (x <= 9.8d+23) then
tmp = k * ((j * (-27.0d0)) + ((-4.0d0) * ((t * a) / k)))
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = y * ((t * x) * -(z * -18.0));
double t_2 = j * (k * -27.0);
double t_3 = t_2 + (b * c);
double tmp;
if (x <= -5.2e+250) {
tmp = (b * c) - (x * (i * 4.0));
} else if (x <= -3e+143) {
tmp = t_1;
} else if (x <= -5.8e+109) {
tmp = (b * c) - (t * (a * 4.0));
} else if (x <= -2.4e-127) {
tmp = t_3;
} else if (x <= 5.6e-212) {
tmp = t_2 + (t * (a * -4.0));
} else if (x <= 2.9e-118) {
tmp = t_3;
} else if (x <= 9.8e+23) {
tmp = k * ((j * -27.0) + (-4.0 * ((t * a) / k)));
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = y * ((t * x) * -(z * -18.0)) t_2 = j * (k * -27.0) t_3 = t_2 + (b * c) tmp = 0 if x <= -5.2e+250: tmp = (b * c) - (x * (i * 4.0)) elif x <= -3e+143: tmp = t_1 elif x <= -5.8e+109: tmp = (b * c) - (t * (a * 4.0)) elif x <= -2.4e-127: tmp = t_3 elif x <= 5.6e-212: tmp = t_2 + (t * (a * -4.0)) elif x <= 2.9e-118: tmp = t_3 elif x <= 9.8e+23: tmp = k * ((j * -27.0) + (-4.0 * ((t * a) / k))) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(y * Float64(Float64(t * x) * Float64(-Float64(z * -18.0)))) t_2 = Float64(j * Float64(k * -27.0)) t_3 = Float64(t_2 + Float64(b * c)) tmp = 0.0 if (x <= -5.2e+250) tmp = Float64(Float64(b * c) - Float64(x * Float64(i * 4.0))); elseif (x <= -3e+143) tmp = t_1; elseif (x <= -5.8e+109) tmp = Float64(Float64(b * c) - Float64(t * Float64(a * 4.0))); elseif (x <= -2.4e-127) tmp = t_3; elseif (x <= 5.6e-212) tmp = Float64(t_2 + Float64(t * Float64(a * -4.0))); elseif (x <= 2.9e-118) tmp = t_3; elseif (x <= 9.8e+23) tmp = Float64(k * Float64(Float64(j * -27.0) + Float64(-4.0 * Float64(Float64(t * a) / k)))); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = y * ((t * x) * -(z * -18.0));
t_2 = j * (k * -27.0);
t_3 = t_2 + (b * c);
tmp = 0.0;
if (x <= -5.2e+250)
tmp = (b * c) - (x * (i * 4.0));
elseif (x <= -3e+143)
tmp = t_1;
elseif (x <= -5.8e+109)
tmp = (b * c) - (t * (a * 4.0));
elseif (x <= -2.4e-127)
tmp = t_3;
elseif (x <= 5.6e-212)
tmp = t_2 + (t * (a * -4.0));
elseif (x <= 2.9e-118)
tmp = t_3;
elseif (x <= 9.8e+23)
tmp = k * ((j * -27.0) + (-4.0 * ((t * a) / k)));
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(y * N[(N[(t * x), $MachinePrecision] * (-N[(z * -18.0), $MachinePrecision])), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + N[(b * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.2e+250], N[(N[(b * c), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3e+143], t$95$1, If[LessEqual[x, -5.8e+109], N[(N[(b * c), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.4e-127], t$95$3, If[LessEqual[x, 5.6e-212], N[(t$95$2 + N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.9e-118], t$95$3, If[LessEqual[x, 9.8e+23], N[(k * N[(N[(j * -27.0), $MachinePrecision] + N[(-4.0 * N[(N[(t * a), $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := y \cdot \left(\left(t \cdot x\right) \cdot \left(-z \cdot -18\right)\right)\\
t_2 := j \cdot \left(k \cdot -27\right)\\
t_3 := t\_2 + b \cdot c\\
\mathbf{if}\;x \leq -5.2 \cdot 10^{+250}:\\
\;\;\;\;b \cdot c - x \cdot \left(i \cdot 4\right)\\
\mathbf{elif}\;x \leq -3 \cdot 10^{+143}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -5.8 \cdot 10^{+109}:\\
\;\;\;\;b \cdot c - t \cdot \left(a \cdot 4\right)\\
\mathbf{elif}\;x \leq -2.4 \cdot 10^{-127}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{-212}:\\
\;\;\;\;t\_2 + t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{-118}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq 9.8 \cdot 10^{+23}:\\
\;\;\;\;k \cdot \left(j \cdot -27 + -4 \cdot \frac{t \cdot a}{k}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -5.20000000000000023e250Initial program 74.7%
Taylor expanded in y around 0 81.6%
Taylor expanded in j around 0 75.1%
Taylor expanded in a around 0 68.1%
associate-*r*68.1%
Simplified68.1%
if -5.20000000000000023e250 < x < -3.0000000000000001e143 or 9.8000000000000006e23 < x Initial program 72.8%
Simplified81.5%
associate-*r*77.2%
distribute-rgt-out--72.8%
sub-neg72.8%
associate-*l*74.1%
*-commutative74.1%
*-commutative74.1%
Applied egg-rr74.1%
distribute-lft-neg-in74.1%
*-commutative74.1%
cancel-sign-sub-inv74.1%
*-commutative74.1%
associate-*r*72.8%
distribute-rgt-out--77.2%
associate-*r*77.2%
*-commutative77.2%
*-commutative77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in x around -inf 74.7%
mul-1-neg74.7%
cancel-sign-sub-inv74.7%
associate-*r*74.7%
metadata-eval74.7%
Simplified74.7%
Taylor expanded in t around inf 50.1%
associate-*r*53.7%
*-commutative53.7%
associate-*r*62.0%
associate-*r*60.6%
associate-*l*60.6%
*-commutative60.6%
associate-*r*62.0%
associate-*l*61.9%
Simplified61.9%
if -3.0000000000000001e143 < x < -5.8e109Initial program 88.9%
Taylor expanded in y around 0 88.9%
Taylor expanded in j around 0 88.9%
Taylor expanded in a around inf 67.0%
associate-*r*67.0%
*-commutative67.0%
Simplified67.0%
if -5.8e109 < x < -2.39999999999999982e-127 or 5.60000000000000027e-212 < x < 2.8999999999999998e-118Initial program 95.6%
Simplified95.7%
Taylor expanded in b around inf 57.5%
if -2.39999999999999982e-127 < x < 5.60000000000000027e-212Initial program 96.6%
Simplified90.4%
Taylor expanded in a around inf 71.7%
associate-*r*71.7%
*-commutative71.7%
Simplified71.7%
if 2.8999999999999998e-118 < x < 9.8000000000000006e23Initial program 81.2%
Simplified84.5%
Taylor expanded in a around inf 52.3%
associate-*r*52.3%
*-commutative52.3%
Simplified52.3%
Taylor expanded in k around inf 54.9%
Final simplification62.8%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* j (* k 27.0)) (* x (* i 4.0))))
(t_2 (- (+ (* b c) (* x (* z (* y (* t 18.0))))) t_1)))
(if (<= x -2e+135)
t_2
(if (<= x 1e-163)
(- (+ (* b c) (* t (- (* z (* 18.0 (* x y))) (* a 4.0)))) t_1)
(if (<= x 1.65e+77)
(- (+ (* b c) (- (* (* y (* x 18.0)) (* t z)) (* t (* a 4.0)))) 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 = (j * (k * 27.0)) + (x * (i * 4.0));
double t_2 = ((b * c) + (x * (z * (y * (t * 18.0))))) - t_1;
double tmp;
if (x <= -2e+135) {
tmp = t_2;
} else if (x <= 1e-163) {
tmp = ((b * c) + (t * ((z * (18.0 * (x * y))) - (a * 4.0)))) - t_1;
} else if (x <= 1.65e+77) {
tmp = ((b * c) + (((y * (x * 18.0)) * (t * z)) - (t * (a * 4.0)))) - 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 = (j * (k * 27.0d0)) + (x * (i * 4.0d0))
t_2 = ((b * c) + (x * (z * (y * (t * 18.0d0))))) - t_1
if (x <= (-2d+135)) then
tmp = t_2
else if (x <= 1d-163) then
tmp = ((b * c) + (t * ((z * (18.0d0 * (x * y))) - (a * 4.0d0)))) - t_1
else if (x <= 1.65d+77) then
tmp = ((b * c) + (((y * (x * 18.0d0)) * (t * z)) - (t * (a * 4.0d0)))) - 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 = (j * (k * 27.0)) + (x * (i * 4.0));
double t_2 = ((b * c) + (x * (z * (y * (t * 18.0))))) - t_1;
double tmp;
if (x <= -2e+135) {
tmp = t_2;
} else if (x <= 1e-163) {
tmp = ((b * c) + (t * ((z * (18.0 * (x * y))) - (a * 4.0)))) - t_1;
} else if (x <= 1.65e+77) {
tmp = ((b * c) + (((y * (x * 18.0)) * (t * z)) - (t * (a * 4.0)))) - 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 = (j * (k * 27.0)) + (x * (i * 4.0)) t_2 = ((b * c) + (x * (z * (y * (t * 18.0))))) - t_1 tmp = 0 if x <= -2e+135: tmp = t_2 elif x <= 1e-163: tmp = ((b * c) + (t * ((z * (18.0 * (x * y))) - (a * 4.0)))) - t_1 elif x <= 1.65e+77: tmp = ((b * c) + (((y * (x * 18.0)) * (t * z)) - (t * (a * 4.0)))) - 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(Float64(j * Float64(k * 27.0)) + Float64(x * Float64(i * 4.0))) t_2 = Float64(Float64(Float64(b * c) + Float64(x * Float64(z * Float64(y * Float64(t * 18.0))))) - t_1) tmp = 0.0 if (x <= -2e+135) tmp = t_2; elseif (x <= 1e-163) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(z * Float64(18.0 * Float64(x * y))) - Float64(a * 4.0)))) - t_1); elseif (x <= 1.65e+77) tmp = Float64(Float64(Float64(b * c) + Float64(Float64(Float64(y * Float64(x * 18.0)) * Float64(t * z)) - Float64(t * Float64(a * 4.0)))) - 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 = (j * (k * 27.0)) + (x * (i * 4.0));
t_2 = ((b * c) + (x * (z * (y * (t * 18.0))))) - t_1;
tmp = 0.0;
if (x <= -2e+135)
tmp = t_2;
elseif (x <= 1e-163)
tmp = ((b * c) + (t * ((z * (18.0 * (x * y))) - (a * 4.0)))) - t_1;
elseif (x <= 1.65e+77)
tmp = ((b * c) + (((y * (x * 18.0)) * (t * z)) - (t * (a * 4.0)))) - 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[(N[(j * N[(k * 27.0), $MachinePrecision]), $MachinePrecision] + N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(z * N[(y * N[(t * 18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, If[LessEqual[x, -2e+135], t$95$2, If[LessEqual[x, 1e-163], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(z * N[(18.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[x, 1.65e+77], N[(N[(N[(b * c), $MachinePrecision] + N[(N[(N[(y * N[(x * 18.0), $MachinePrecision]), $MachinePrecision] * N[(t * z), $MachinePrecision]), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $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 := j \cdot \left(k \cdot 27\right) + x \cdot \left(i \cdot 4\right)\\
t_2 := \left(b \cdot c + x \cdot \left(z \cdot \left(y \cdot \left(t \cdot 18\right)\right)\right)\right) - t\_1\\
\mathbf{if}\;x \leq -2 \cdot 10^{+135}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 10^{-163}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(z \cdot \left(18 \cdot \left(x \cdot y\right)\right) - a \cdot 4\right)\right) - t\_1\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{+77}:\\
\;\;\;\;\left(b \cdot c + \left(\left(y \cdot \left(x \cdot 18\right)\right) \cdot \left(t \cdot z\right) - t \cdot \left(a \cdot 4\right)\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -1.99999999999999992e135 or 1.6499999999999999e77 < x Initial program 69.9%
Simplified80.9%
associate-*r*74.2%
distribute-rgt-out--69.9%
sub-neg69.9%
associate-*l*71.0%
*-commutative71.0%
*-commutative71.0%
Applied egg-rr71.0%
distribute-lft-neg-in71.0%
*-commutative71.0%
cancel-sign-sub-inv71.0%
*-commutative71.0%
associate-*r*69.9%
distribute-rgt-out--74.2%
associate-*r*74.2%
*-commutative74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in x around 0 80.9%
associate-*r*74.2%
Simplified74.2%
Taylor expanded in x around inf 80.8%
*-commutative80.8%
*-commutative80.8%
associate-*l*90.2%
*-commutative90.2%
associate-*r*90.2%
*-commutative90.2%
associate-*r*90.2%
associate-*r*90.2%
Simplified90.2%
if -1.99999999999999992e135 < x < 9.99999999999999923e-164Initial program 96.1%
Simplified93.3%
associate-*r*97.6%
distribute-rgt-out--96.1%
sub-neg96.1%
associate-*l*90.1%
*-commutative90.1%
*-commutative90.1%
Applied egg-rr90.1%
distribute-lft-neg-in90.1%
*-commutative90.1%
cancel-sign-sub-inv90.1%
*-commutative90.1%
associate-*r*96.1%
distribute-rgt-out--97.6%
associate-*r*97.6%
*-commutative97.6%
*-commutative97.6%
*-commutative97.6%
Simplified97.6%
if 9.99999999999999923e-164 < x < 1.6499999999999999e77Initial program 85.1%
Simplified85.1%
associate-*r*85.1%
distribute-rgt-out--85.1%
associate-*l*90.4%
*-commutative90.4%
*-commutative90.4%
Applied egg-rr90.4%
Final simplification94.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* k (* j 27.0)))
(t_2 (* z (* x y)))
(t_3 (- (- (* b c) (* 4.0 (* t a))) t_1))
(t_4 (* t (- (* a (- 4.0)) (* t_2 -18.0)))))
(if (<= t -3.7e+126)
t_4
(if (<= t -1.45e-100)
(* t (- (/ (* b c) t) (* 4.0 (+ a (* i (/ x t))))))
(if (<= t -5e-249)
t_3
(if (<= t 2.5e-78)
(- (- (* b c) (* 4.0 (* x i))) t_1)
(if (<= t 1.95e+42)
(+ (* j (* k -27.0)) (* 18.0 (* t t_2)))
(if (<= t 9.5e+219) t_3 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 = k * (j * 27.0);
double t_2 = z * (x * y);
double t_3 = ((b * c) - (4.0 * (t * a))) - t_1;
double t_4 = t * ((a * -4.0) - (t_2 * -18.0));
double tmp;
if (t <= -3.7e+126) {
tmp = t_4;
} else if (t <= -1.45e-100) {
tmp = t * (((b * c) / t) - (4.0 * (a + (i * (x / t)))));
} else if (t <= -5e-249) {
tmp = t_3;
} else if (t <= 2.5e-78) {
tmp = ((b * c) - (4.0 * (x * i))) - t_1;
} else if (t <= 1.95e+42) {
tmp = (j * (k * -27.0)) + (18.0 * (t * t_2));
} else if (t <= 9.5e+219) {
tmp = t_3;
} 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 = k * (j * 27.0d0)
t_2 = z * (x * y)
t_3 = ((b * c) - (4.0d0 * (t * a))) - t_1
t_4 = t * ((a * -4.0d0) - (t_2 * (-18.0d0)))
if (t <= (-3.7d+126)) then
tmp = t_4
else if (t <= (-1.45d-100)) then
tmp = t * (((b * c) / t) - (4.0d0 * (a + (i * (x / t)))))
else if (t <= (-5d-249)) then
tmp = t_3
else if (t <= 2.5d-78) then
tmp = ((b * c) - (4.0d0 * (x * i))) - t_1
else if (t <= 1.95d+42) then
tmp = (j * (k * (-27.0d0))) + (18.0d0 * (t * t_2))
else if (t <= 9.5d+219) then
tmp = t_3
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 = k * (j * 27.0);
double t_2 = z * (x * y);
double t_3 = ((b * c) - (4.0 * (t * a))) - t_1;
double t_4 = t * ((a * -4.0) - (t_2 * -18.0));
double tmp;
if (t <= -3.7e+126) {
tmp = t_4;
} else if (t <= -1.45e-100) {
tmp = t * (((b * c) / t) - (4.0 * (a + (i * (x / t)))));
} else if (t <= -5e-249) {
tmp = t_3;
} else if (t <= 2.5e-78) {
tmp = ((b * c) - (4.0 * (x * i))) - t_1;
} else if (t <= 1.95e+42) {
tmp = (j * (k * -27.0)) + (18.0 * (t * t_2));
} else if (t <= 9.5e+219) {
tmp = t_3;
} 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 = k * (j * 27.0) t_2 = z * (x * y) t_3 = ((b * c) - (4.0 * (t * a))) - t_1 t_4 = t * ((a * -4.0) - (t_2 * -18.0)) tmp = 0 if t <= -3.7e+126: tmp = t_4 elif t <= -1.45e-100: tmp = t * (((b * c) / t) - (4.0 * (a + (i * (x / t))))) elif t <= -5e-249: tmp = t_3 elif t <= 2.5e-78: tmp = ((b * c) - (4.0 * (x * i))) - t_1 elif t <= 1.95e+42: tmp = (j * (k * -27.0)) + (18.0 * (t * t_2)) elif t <= 9.5e+219: tmp = t_3 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(k * Float64(j * 27.0)) t_2 = Float64(z * Float64(x * y)) t_3 = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - t_1) t_4 = Float64(t * Float64(Float64(a * Float64(-4.0)) - Float64(t_2 * -18.0))) tmp = 0.0 if (t <= -3.7e+126) tmp = t_4; elseif (t <= -1.45e-100) tmp = Float64(t * Float64(Float64(Float64(b * c) / t) - Float64(4.0 * Float64(a + Float64(i * Float64(x / t)))))); elseif (t <= -5e-249) tmp = t_3; elseif (t <= 2.5e-78) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) - t_1); elseif (t <= 1.95e+42) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(18.0 * Float64(t * t_2))); elseif (t <= 9.5e+219) tmp = t_3; 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 = k * (j * 27.0);
t_2 = z * (x * y);
t_3 = ((b * c) - (4.0 * (t * a))) - t_1;
t_4 = t * ((a * -4.0) - (t_2 * -18.0));
tmp = 0.0;
if (t <= -3.7e+126)
tmp = t_4;
elseif (t <= -1.45e-100)
tmp = t * (((b * c) / t) - (4.0 * (a + (i * (x / t)))));
elseif (t <= -5e-249)
tmp = t_3;
elseif (t <= 2.5e-78)
tmp = ((b * c) - (4.0 * (x * i))) - t_1;
elseif (t <= 1.95e+42)
tmp = (j * (k * -27.0)) + (18.0 * (t * t_2));
elseif (t <= 9.5e+219)
tmp = t_3;
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[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, Block[{t$95$4 = N[(t * N[(N[(a * (-4.0)), $MachinePrecision] - N[(t$95$2 * -18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.7e+126], t$95$4, If[LessEqual[t, -1.45e-100], N[(t * N[(N[(N[(b * c), $MachinePrecision] / t), $MachinePrecision] - N[(4.0 * N[(a + N[(i * N[(x / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5e-249], t$95$3, If[LessEqual[t, 2.5e-78], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t, 1.95e+42], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.5e+219], t$95$3, 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 := k \cdot \left(j \cdot 27\right)\\
t_2 := z \cdot \left(x \cdot y\right)\\
t_3 := \left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - t\_1\\
t_4 := t \cdot \left(a \cdot \left(-4\right) - t\_2 \cdot -18\right)\\
\mathbf{if}\;t \leq -3.7 \cdot 10^{+126}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq -1.45 \cdot 10^{-100}:\\
\;\;\;\;t \cdot \left(\frac{b \cdot c}{t} - 4 \cdot \left(a + i \cdot \frac{x}{t}\right)\right)\\
\mathbf{elif}\;t \leq -5 \cdot 10^{-249}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-78}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(x \cdot i\right)\right) - t\_1\\
\mathbf{elif}\;t \leq 1.95 \cdot 10^{+42}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + 18 \cdot \left(t \cdot t\_2\right)\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{+219}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if t < -3.6999999999999998e126 or 9.49999999999999959e219 < t Initial program 83.0%
Simplified89.7%
associate-*r*89.8%
distribute-rgt-out--83.0%
associate-*l*76.2%
*-commutative76.2%
*-commutative76.2%
Applied egg-rr76.2%
Taylor expanded in t around -inf 86.9%
associate-*r*86.9%
neg-mul-186.9%
cancel-sign-sub-inv86.9%
metadata-eval86.9%
*-commutative86.9%
associate-*r*87.0%
Simplified87.0%
if -3.6999999999999998e126 < t < -1.44999999999999988e-100Initial program 85.7%
Taylor expanded in y around 0 83.3%
Taylor expanded in j around 0 68.8%
Taylor expanded in t around inf 64.2%
distribute-lft-out64.2%
associate-/l*69.0%
Simplified69.0%
if -1.44999999999999988e-100 < t < -4.9999999999999999e-249 or 1.94999999999999985e42 < t < 9.49999999999999959e219Initial program 91.3%
Taylor expanded in x around 0 79.6%
if -4.9999999999999999e-249 < t < 2.4999999999999998e-78Initial program 88.0%
Taylor expanded in t around 0 81.6%
if 2.4999999999999998e-78 < t < 1.94999999999999985e42Initial program 80.1%
Simplified88.2%
Taylor expanded in y around inf 72.7%
pow172.7%
Applied egg-rr72.7%
unpow172.7%
associate-*r*72.7%
Simplified72.7%
Final simplification79.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 (* z (* x y)))
(t_2 (* k (* j 27.0)))
(t_3 (- (- (* b c) (* 4.0 (* t a))) t_2))
(t_4 (* t (- (* a (- 4.0)) (* t_1 -18.0)))))
(if (<= t -4.3e+129)
t_4
(if (<= t -1.08e-100)
(- (* b c) (* 4.0 (+ (* x i) (* t a))))
(if (<= t -6.4e-249)
t_3
(if (<= t 2.5e-78)
(- (- (* b c) (* 4.0 (* x i))) t_2)
(if (<= t 1.95e+42)
(+ (* j (* k -27.0)) (* 18.0 (* t t_1)))
(if (<= t 1e+220) t_3 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 = z * (x * y);
double t_2 = k * (j * 27.0);
double t_3 = ((b * c) - (4.0 * (t * a))) - t_2;
double t_4 = t * ((a * -4.0) - (t_1 * -18.0));
double tmp;
if (t <= -4.3e+129) {
tmp = t_4;
} else if (t <= -1.08e-100) {
tmp = (b * c) - (4.0 * ((x * i) + (t * a)));
} else if (t <= -6.4e-249) {
tmp = t_3;
} else if (t <= 2.5e-78) {
tmp = ((b * c) - (4.0 * (x * i))) - t_2;
} else if (t <= 1.95e+42) {
tmp = (j * (k * -27.0)) + (18.0 * (t * t_1));
} else if (t <= 1e+220) {
tmp = t_3;
} 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 = z * (x * y)
t_2 = k * (j * 27.0d0)
t_3 = ((b * c) - (4.0d0 * (t * a))) - t_2
t_4 = t * ((a * -4.0d0) - (t_1 * (-18.0d0)))
if (t <= (-4.3d+129)) then
tmp = t_4
else if (t <= (-1.08d-100)) then
tmp = (b * c) - (4.0d0 * ((x * i) + (t * a)))
else if (t <= (-6.4d-249)) then
tmp = t_3
else if (t <= 2.5d-78) then
tmp = ((b * c) - (4.0d0 * (x * i))) - t_2
else if (t <= 1.95d+42) then
tmp = (j * (k * (-27.0d0))) + (18.0d0 * (t * t_1))
else if (t <= 1d+220) then
tmp = t_3
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 = z * (x * y);
double t_2 = k * (j * 27.0);
double t_3 = ((b * c) - (4.0 * (t * a))) - t_2;
double t_4 = t * ((a * -4.0) - (t_1 * -18.0));
double tmp;
if (t <= -4.3e+129) {
tmp = t_4;
} else if (t <= -1.08e-100) {
tmp = (b * c) - (4.0 * ((x * i) + (t * a)));
} else if (t <= -6.4e-249) {
tmp = t_3;
} else if (t <= 2.5e-78) {
tmp = ((b * c) - (4.0 * (x * i))) - t_2;
} else if (t <= 1.95e+42) {
tmp = (j * (k * -27.0)) + (18.0 * (t * t_1));
} else if (t <= 1e+220) {
tmp = t_3;
} 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 = z * (x * y) t_2 = k * (j * 27.0) t_3 = ((b * c) - (4.0 * (t * a))) - t_2 t_4 = t * ((a * -4.0) - (t_1 * -18.0)) tmp = 0 if t <= -4.3e+129: tmp = t_4 elif t <= -1.08e-100: tmp = (b * c) - (4.0 * ((x * i) + (t * a))) elif t <= -6.4e-249: tmp = t_3 elif t <= 2.5e-78: tmp = ((b * c) - (4.0 * (x * i))) - t_2 elif t <= 1.95e+42: tmp = (j * (k * -27.0)) + (18.0 * (t * t_1)) elif t <= 1e+220: tmp = t_3 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(z * Float64(x * y)) t_2 = Float64(k * Float64(j * 27.0)) t_3 = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - t_2) t_4 = Float64(t * Float64(Float64(a * Float64(-4.0)) - Float64(t_1 * -18.0))) tmp = 0.0 if (t <= -4.3e+129) tmp = t_4; elseif (t <= -1.08e-100) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(Float64(x * i) + Float64(t * a)))); elseif (t <= -6.4e-249) tmp = t_3; elseif (t <= 2.5e-78) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) - t_2); elseif (t <= 1.95e+42) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(18.0 * Float64(t * t_1))); elseif (t <= 1e+220) tmp = t_3; 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 = z * (x * y);
t_2 = k * (j * 27.0);
t_3 = ((b * c) - (4.0 * (t * a))) - t_2;
t_4 = t * ((a * -4.0) - (t_1 * -18.0));
tmp = 0.0;
if (t <= -4.3e+129)
tmp = t_4;
elseif (t <= -1.08e-100)
tmp = (b * c) - (4.0 * ((x * i) + (t * a)));
elseif (t <= -6.4e-249)
tmp = t_3;
elseif (t <= 2.5e-78)
tmp = ((b * c) - (4.0 * (x * i))) - t_2;
elseif (t <= 1.95e+42)
tmp = (j * (k * -27.0)) + (18.0 * (t * t_1));
elseif (t <= 1e+220)
tmp = t_3;
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[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(t * N[(N[(a * (-4.0)), $MachinePrecision] - N[(t$95$1 * -18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.3e+129], t$95$4, If[LessEqual[t, -1.08e-100], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.4e-249], t$95$3, If[LessEqual[t, 2.5e-78], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision], If[LessEqual[t, 1.95e+42], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(t * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e+220], t$95$3, 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 := z \cdot \left(x \cdot y\right)\\
t_2 := k \cdot \left(j \cdot 27\right)\\
t_3 := \left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - t\_2\\
t_4 := t \cdot \left(a \cdot \left(-4\right) - t\_1 \cdot -18\right)\\
\mathbf{if}\;t \leq -4.3 \cdot 10^{+129}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq -1.08 \cdot 10^{-100}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{elif}\;t \leq -6.4 \cdot 10^{-249}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-78}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(x \cdot i\right)\right) - t\_2\\
\mathbf{elif}\;t \leq 1.95 \cdot 10^{+42}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + 18 \cdot \left(t \cdot t\_1\right)\\
\mathbf{elif}\;t \leq 10^{+220}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if t < -4.30000000000000021e129 or 1e220 < t Initial program 83.0%
Simplified89.7%
associate-*r*89.8%
distribute-rgt-out--83.0%
associate-*l*76.2%
*-commutative76.2%
*-commutative76.2%
Applied egg-rr76.2%
Taylor expanded in t around -inf 86.9%
associate-*r*86.9%
neg-mul-186.9%
cancel-sign-sub-inv86.9%
metadata-eval86.9%
*-commutative86.9%
associate-*r*87.0%
Simplified87.0%
if -4.30000000000000021e129 < t < -1.0800000000000001e-100Initial program 85.7%
Taylor expanded in y around 0 83.3%
Taylor expanded in j around 0 68.8%
+-commutative68.8%
associate-*r*68.8%
*-commutative68.8%
fma-define68.8%
associate-*r*68.8%
*-commutative68.8%
Applied egg-rr68.8%
fma-undefine68.8%
*-commutative68.8%
associate-*r*68.8%
*-commutative68.8%
*-commutative68.8%
*-commutative68.8%
associate-*r*68.8%
distribute-lft-out68.8%
*-commutative68.8%
*-commutative68.8%
Simplified68.8%
if -1.0800000000000001e-100 < t < -6.4000000000000003e-249 or 1.94999999999999985e42 < t < 1e220Initial program 91.3%
Taylor expanded in x around 0 79.6%
if -6.4000000000000003e-249 < t < 2.4999999999999998e-78Initial program 88.0%
Taylor expanded in t around 0 81.6%
if 2.4999999999999998e-78 < t < 1.94999999999999985e42Initial program 80.1%
Simplified88.2%
Taylor expanded in y around inf 72.7%
pow172.7%
Applied egg-rr72.7%
unpow172.7%
associate-*r*72.7%
Simplified72.7%
Final simplification79.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)) (* b c)))
(t_2 (* t (- (* 18.0 (* x (* y z))) (* a 4.0)))))
(if (<= t -2.9e+74)
t_2
(if (<= t -5.4e-105)
(* x (- (* 18.0 (* t (* y z))) (* i 4.0)))
(if (<= t 9.5e-177)
t_1
(if (<= t 2.25e-145)
(- (* b c) (* x (* i 4.0)))
(if (<= t 6e-104)
t_1
(if (<= t 1.95e+71)
(* x (+ (* -4.0 i) (* 18.0 (* z (* t y)))))
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 = (j * (k * -27.0)) + (b * c);
double t_2 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
double tmp;
if (t <= -2.9e+74) {
tmp = t_2;
} else if (t <= -5.4e-105) {
tmp = x * ((18.0 * (t * (y * z))) - (i * 4.0));
} else if (t <= 9.5e-177) {
tmp = t_1;
} else if (t <= 2.25e-145) {
tmp = (b * c) - (x * (i * 4.0));
} else if (t <= 6e-104) {
tmp = t_1;
} else if (t <= 1.95e+71) {
tmp = x * ((-4.0 * i) + (18.0 * (z * (t * y))));
} 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 = (j * (k * (-27.0d0))) + (b * c)
t_2 = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
if (t <= (-2.9d+74)) then
tmp = t_2
else if (t <= (-5.4d-105)) then
tmp = x * ((18.0d0 * (t * (y * z))) - (i * 4.0d0))
else if (t <= 9.5d-177) then
tmp = t_1
else if (t <= 2.25d-145) then
tmp = (b * c) - (x * (i * 4.0d0))
else if (t <= 6d-104) then
tmp = t_1
else if (t <= 1.95d+71) then
tmp = x * (((-4.0d0) * i) + (18.0d0 * (z * (t * y))))
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 = (j * (k * -27.0)) + (b * c);
double t_2 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
double tmp;
if (t <= -2.9e+74) {
tmp = t_2;
} else if (t <= -5.4e-105) {
tmp = x * ((18.0 * (t * (y * z))) - (i * 4.0));
} else if (t <= 9.5e-177) {
tmp = t_1;
} else if (t <= 2.25e-145) {
tmp = (b * c) - (x * (i * 4.0));
} else if (t <= 6e-104) {
tmp = t_1;
} else if (t <= 1.95e+71) {
tmp = x * ((-4.0 * i) + (18.0 * (z * (t * y))));
} 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 = (j * (k * -27.0)) + (b * c) t_2 = t * ((18.0 * (x * (y * z))) - (a * 4.0)) tmp = 0 if t <= -2.9e+74: tmp = t_2 elif t <= -5.4e-105: tmp = x * ((18.0 * (t * (y * z))) - (i * 4.0)) elif t <= 9.5e-177: tmp = t_1 elif t <= 2.25e-145: tmp = (b * c) - (x * (i * 4.0)) elif t <= 6e-104: tmp = t_1 elif t <= 1.95e+71: tmp = x * ((-4.0 * i) + (18.0 * (z * (t * y)))) 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(Float64(j * Float64(k * -27.0)) + Float64(b * c)) t_2 = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0))) tmp = 0.0 if (t <= -2.9e+74) tmp = t_2; elseif (t <= -5.4e-105) tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(i * 4.0))); elseif (t <= 9.5e-177) tmp = t_1; elseif (t <= 2.25e-145) tmp = Float64(Float64(b * c) - Float64(x * Float64(i * 4.0))); elseif (t <= 6e-104) tmp = t_1; elseif (t <= 1.95e+71) tmp = Float64(x * Float64(Float64(-4.0 * i) + Float64(18.0 * Float64(z * Float64(t * y))))); 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 = (j * (k * -27.0)) + (b * c);
t_2 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
tmp = 0.0;
if (t <= -2.9e+74)
tmp = t_2;
elseif (t <= -5.4e-105)
tmp = x * ((18.0 * (t * (y * z))) - (i * 4.0));
elseif (t <= 9.5e-177)
tmp = t_1;
elseif (t <= 2.25e-145)
tmp = (b * c) - (x * (i * 4.0));
elseif (t <= 6e-104)
tmp = t_1;
elseif (t <= 1.95e+71)
tmp = x * ((-4.0 * i) + (18.0 * (z * (t * y))));
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[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.9e+74], t$95$2, If[LessEqual[t, -5.4e-105], N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.5e-177], t$95$1, If[LessEqual[t, 2.25e-145], N[(N[(b * c), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6e-104], t$95$1, If[LessEqual[t, 1.95e+71], N[(x * N[(N[(-4.0 * i), $MachinePrecision] + N[(18.0 * N[(z * N[(t * y), $MachinePrecision]), $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 := j \cdot \left(k \cdot -27\right) + b \cdot c\\
t_2 := t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -2.9 \cdot 10^{+74}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -5.4 \cdot 10^{-105}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - i \cdot 4\right)\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-177}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{-145}:\\
\;\;\;\;b \cdot c - x \cdot \left(i \cdot 4\right)\\
\mathbf{elif}\;t \leq 6 \cdot 10^{-104}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.95 \cdot 10^{+71}:\\
\;\;\;\;x \cdot \left(-4 \cdot i + 18 \cdot \left(z \cdot \left(t \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -2.9000000000000002e74 or 1.9500000000000001e71 < t Initial program 89.5%
Simplified93.7%
associate-*r*93.7%
distribute-rgt-out--89.6%
associate-*l*81.4%
*-commutative81.4%
*-commutative81.4%
Applied egg-rr81.4%
Taylor expanded in t around inf 75.5%
if -2.9000000000000002e74 < t < -5.39999999999999985e-105Initial program 81.0%
Simplified91.9%
Taylor expanded in x around inf 55.8%
if -5.39999999999999985e-105 < t < 9.50000000000000031e-177 or 2.25e-145 < t < 6.0000000000000005e-104Initial program 84.7%
Simplified78.8%
Taylor expanded in b around inf 65.6%
if 9.50000000000000031e-177 < t < 2.25e-145Initial program 100.0%
Taylor expanded in y around 0 100.0%
Taylor expanded in j around 0 91.3%
Taylor expanded in a around 0 72.5%
associate-*r*72.5%
Simplified72.5%
if 6.0000000000000005e-104 < t < 1.9500000000000001e71Initial program 84.5%
Simplified87.7%
associate-*r*87.6%
distribute-rgt-out--84.5%
associate-*l*84.5%
*-commutative84.5%
*-commutative84.5%
Applied egg-rr84.5%
Taylor expanded in x around inf 57.8%
cancel-sign-sub-inv57.8%
associate-*r*57.7%
metadata-eval57.7%
*-commutative57.7%
Simplified57.7%
Final simplification67.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 (+ (* j (* k -27.0)) (* b c)))
(t_2 (* x (+ (* -4.0 i) (* 18.0 (* z (* t y))))))
(t_3 (* t (- (* 18.0 (* x (* y z))) (* a 4.0)))))
(if (<= t -6e+73)
t_3
(if (<= t -1e-106)
t_2
(if (<= t 7.6e-177)
t_1
(if (<= t 7.6e-146)
(- (* b c) (* x (* i 4.0)))
(if (<= t 9.8e-104) t_1 (if (<= t 3.4e+71) t_2 t_3))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * (k * -27.0)) + (b * c);
double t_2 = x * ((-4.0 * i) + (18.0 * (z * (t * y))));
double t_3 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
double tmp;
if (t <= -6e+73) {
tmp = t_3;
} else if (t <= -1e-106) {
tmp = t_2;
} else if (t <= 7.6e-177) {
tmp = t_1;
} else if (t <= 7.6e-146) {
tmp = (b * c) - (x * (i * 4.0));
} else if (t <= 9.8e-104) {
tmp = t_1;
} else if (t <= 3.4e+71) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (j * (k * (-27.0d0))) + (b * c)
t_2 = x * (((-4.0d0) * i) + (18.0d0 * (z * (t * y))))
t_3 = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
if (t <= (-6d+73)) then
tmp = t_3
else if (t <= (-1d-106)) then
tmp = t_2
else if (t <= 7.6d-177) then
tmp = t_1
else if (t <= 7.6d-146) then
tmp = (b * c) - (x * (i * 4.0d0))
else if (t <= 9.8d-104) then
tmp = t_1
else if (t <= 3.4d+71) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * (k * -27.0)) + (b * c);
double t_2 = x * ((-4.0 * i) + (18.0 * (z * (t * y))));
double t_3 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
double tmp;
if (t <= -6e+73) {
tmp = t_3;
} else if (t <= -1e-106) {
tmp = t_2;
} else if (t <= 7.6e-177) {
tmp = t_1;
} else if (t <= 7.6e-146) {
tmp = (b * c) - (x * (i * 4.0));
} else if (t <= 9.8e-104) {
tmp = t_1;
} else if (t <= 3.4e+71) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * (k * -27.0)) + (b * c) t_2 = x * ((-4.0 * i) + (18.0 * (z * (t * y)))) t_3 = t * ((18.0 * (x * (y * z))) - (a * 4.0)) tmp = 0 if t <= -6e+73: tmp = t_3 elif t <= -1e-106: tmp = t_2 elif t <= 7.6e-177: tmp = t_1 elif t <= 7.6e-146: tmp = (b * c) - (x * (i * 4.0)) elif t <= 9.8e-104: tmp = t_1 elif t <= 3.4e+71: tmp = t_2 else: tmp = t_3 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * Float64(k * -27.0)) + Float64(b * c)) t_2 = Float64(x * Float64(Float64(-4.0 * i) + Float64(18.0 * Float64(z * Float64(t * y))))) t_3 = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0))) tmp = 0.0 if (t <= -6e+73) tmp = t_3; elseif (t <= -1e-106) tmp = t_2; elseif (t <= 7.6e-177) tmp = t_1; elseif (t <= 7.6e-146) tmp = Float64(Float64(b * c) - Float64(x * Float64(i * 4.0))); elseif (t <= 9.8e-104) tmp = t_1; elseif (t <= 3.4e+71) tmp = t_2; else tmp = t_3; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (j * (k * -27.0)) + (b * c);
t_2 = x * ((-4.0 * i) + (18.0 * (z * (t * y))));
t_3 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
tmp = 0.0;
if (t <= -6e+73)
tmp = t_3;
elseif (t <= -1e-106)
tmp = t_2;
elseif (t <= 7.6e-177)
tmp = t_1;
elseif (t <= 7.6e-146)
tmp = (b * c) - (x * (i * 4.0));
elseif (t <= 9.8e-104)
tmp = t_1;
elseif (t <= 3.4e+71)
tmp = t_2;
else
tmp = t_3;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(-4.0 * i), $MachinePrecision] + N[(18.0 * N[(z * N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6e+73], t$95$3, If[LessEqual[t, -1e-106], t$95$2, If[LessEqual[t, 7.6e-177], t$95$1, If[LessEqual[t, 7.6e-146], N[(N[(b * c), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.8e-104], t$95$1, If[LessEqual[t, 3.4e+71], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right) + b \cdot c\\
t_2 := x \cdot \left(-4 \cdot i + 18 \cdot \left(z \cdot \left(t \cdot y\right)\right)\right)\\
t_3 := t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -6 \cdot 10^{+73}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-106}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{-177}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{-146}:\\
\;\;\;\;b \cdot c - x \cdot \left(i \cdot 4\right)\\
\mathbf{elif}\;t \leq 9.8 \cdot 10^{-104}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{+71}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if t < -6.00000000000000021e73 or 3.3999999999999998e71 < t Initial program 89.5%
Simplified93.7%
associate-*r*93.7%
distribute-rgt-out--89.6%
associate-*l*81.4%
*-commutative81.4%
*-commutative81.4%
Applied egg-rr81.4%
Taylor expanded in t around inf 75.5%
if -6.00000000000000021e73 < t < -9.99999999999999941e-107 or 9.8000000000000006e-104 < t < 3.3999999999999998e71Initial program 82.6%
Simplified89.9%
associate-*r*84.1%
distribute-rgt-out--82.6%
associate-*l*82.4%
*-commutative82.4%
*-commutative82.4%
Applied egg-rr82.4%
Taylor expanded in x around inf 56.7%
cancel-sign-sub-inv56.7%
associate-*r*56.7%
metadata-eval56.7%
*-commutative56.7%
Simplified56.7%
if -9.99999999999999941e-107 < t < 7.60000000000000007e-177 or 7.59999999999999989e-146 < t < 9.8000000000000006e-104Initial program 84.7%
Simplified78.8%
Taylor expanded in b around inf 65.6%
if 7.60000000000000007e-177 < t < 7.59999999999999989e-146Initial program 100.0%
Taylor expanded in y around 0 100.0%
Taylor expanded in j around 0 91.3%
Taylor expanded in a around 0 72.5%
associate-*r*72.5%
Simplified72.5%
Final simplification67.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 (* k (* j 27.0))))
(if (<= t -8e-83)
(-
(+ (* b c) (* t (- (* (* y z) (* x 18.0)) (* a 4.0))))
(+ (* j (* k 27.0)) (* x (* i 4.0))))
(if (<= t 4.3e-98)
(-
(-
(+ (- (* y (* (* x 18.0) (* t z))) (* t (* a 4.0))) (* b c))
(* i (* x 4.0)))
t_1)
(-
(*
t
(-
(+ (* 18.0 (* x (* y z))) (/ (* b c) t))
(+ (* a 4.0) (* 4.0 (/ (* x i) t)))))
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 = k * (j * 27.0);
double tmp;
if (t <= -8e-83) {
tmp = ((b * c) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((j * (k * 27.0)) + (x * (i * 4.0)));
} else if (t <= 4.3e-98) {
tmp = ((((y * ((x * 18.0) * (t * z))) - (t * (a * 4.0))) + (b * c)) - (i * (x * 4.0))) - t_1;
} else {
tmp = (t * (((18.0 * (x * (y * z))) + ((b * c) / t)) - ((a * 4.0) + (4.0 * ((x * i) / t))))) - 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 = k * (j * 27.0d0)
if (t <= (-8d-83)) then
tmp = ((b * c) + (t * (((y * z) * (x * 18.0d0)) - (a * 4.0d0)))) - ((j * (k * 27.0d0)) + (x * (i * 4.0d0)))
else if (t <= 4.3d-98) then
tmp = ((((y * ((x * 18.0d0) * (t * z))) - (t * (a * 4.0d0))) + (b * c)) - (i * (x * 4.0d0))) - t_1
else
tmp = (t * (((18.0d0 * (x * (y * z))) + ((b * c) / t)) - ((a * 4.0d0) + (4.0d0 * ((x * i) / t))))) - 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 = k * (j * 27.0);
double tmp;
if (t <= -8e-83) {
tmp = ((b * c) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((j * (k * 27.0)) + (x * (i * 4.0)));
} else if (t <= 4.3e-98) {
tmp = ((((y * ((x * 18.0) * (t * z))) - (t * (a * 4.0))) + (b * c)) - (i * (x * 4.0))) - t_1;
} else {
tmp = (t * (((18.0 * (x * (y * z))) + ((b * c) / t)) - ((a * 4.0) + (4.0 * ((x * i) / t))))) - 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 = k * (j * 27.0) tmp = 0 if t <= -8e-83: tmp = ((b * c) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((j * (k * 27.0)) + (x * (i * 4.0))) elif t <= 4.3e-98: tmp = ((((y * ((x * 18.0) * (t * z))) - (t * (a * 4.0))) + (b * c)) - (i * (x * 4.0))) - t_1 else: tmp = (t * (((18.0 * (x * (y * z))) + ((b * c) / t)) - ((a * 4.0) + (4.0 * ((x * i) / t))))) - 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(k * Float64(j * 27.0)) tmp = 0.0 if (t <= -8e-83) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(y * z) * Float64(x * 18.0)) - Float64(a * 4.0)))) - Float64(Float64(j * Float64(k * 27.0)) + Float64(x * Float64(i * 4.0)))); elseif (t <= 4.3e-98) tmp = Float64(Float64(Float64(Float64(Float64(y * Float64(Float64(x * 18.0) * Float64(t * z))) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - Float64(i * Float64(x * 4.0))) - t_1); else tmp = Float64(Float64(t * Float64(Float64(Float64(18.0 * Float64(x * Float64(y * z))) + Float64(Float64(b * c) / t)) - Float64(Float64(a * 4.0) + Float64(4.0 * Float64(Float64(x * i) / t))))) - 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 = k * (j * 27.0);
tmp = 0.0;
if (t <= -8e-83)
tmp = ((b * c) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((j * (k * 27.0)) + (x * (i * 4.0)));
elseif (t <= 4.3e-98)
tmp = ((((y * ((x * 18.0) * (t * z))) - (t * (a * 4.0))) + (b * c)) - (i * (x * 4.0))) - t_1;
else
tmp = (t * (((18.0 * (x * (y * z))) + ((b * c) / t)) - ((a * 4.0) + (4.0 * ((x * i) / t))))) - 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[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8e-83], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(y * z), $MachinePrecision] * N[(x * 18.0), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(k * 27.0), $MachinePrecision]), $MachinePrecision] + N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.3e-98], N[(N[(N[(N[(N[(y * N[(N[(x * 18.0), $MachinePrecision] * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(t * N[(N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] + N[(4.0 * N[(N[(x * i), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;t \leq -8 \cdot 10^{-83}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(\left(y \cdot z\right) \cdot \left(x \cdot 18\right) - a \cdot 4\right)\right) - \left(j \cdot \left(k \cdot 27\right) + x \cdot \left(i \cdot 4\right)\right)\\
\mathbf{elif}\;t \leq 4.3 \cdot 10^{-98}:\\
\;\;\;\;\left(\left(\left(y \cdot \left(\left(x \cdot 18\right) \cdot \left(t \cdot z\right)\right) - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - i \cdot \left(x \cdot 4\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(\left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + \frac{b \cdot c}{t}\right) - \left(a \cdot 4 + 4 \cdot \frac{x \cdot i}{t}\right)\right) - t\_1\\
\end{array}
\end{array}
if t < -8.0000000000000003e-83Initial program 88.9%
Simplified95.8%
if -8.0000000000000003e-83 < t < 4.29999999999999988e-98Initial program 85.7%
pow185.7%
associate-*l*88.5%
*-commutative88.5%
Applied egg-rr88.5%
unpow188.5%
associate-*l*96.0%
*-commutative96.0%
Simplified96.0%
if 4.29999999999999988e-98 < t Initial program 85.7%
Taylor expanded in t around inf 90.4%
Final simplification94.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (or (<= t -7.8e-83) (not (<= t 2e-210)))
(-
(+ (* b c) (* t (- (* (* y z) (* x 18.0)) (* a 4.0))))
(+ (* j (* k 27.0)) (* x (* i 4.0))))
(-
(-
(+ (- (* y (* (* x 18.0) (* t z))) (* t (* a 4.0))) (* b c))
(* i (* x 4.0)))
(* k (* j 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 <= -7.8e-83) || !(t <= 2e-210)) {
tmp = ((b * c) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((j * (k * 27.0)) + (x * (i * 4.0)));
} else {
tmp = ((((y * ((x * 18.0) * (t * z))) - (t * (a * 4.0))) + (b * c)) - (i * (x * 4.0))) - (k * (j * 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 <= (-7.8d-83)) .or. (.not. (t <= 2d-210))) then
tmp = ((b * c) + (t * (((y * z) * (x * 18.0d0)) - (a * 4.0d0)))) - ((j * (k * 27.0d0)) + (x * (i * 4.0d0)))
else
tmp = ((((y * ((x * 18.0d0) * (t * z))) - (t * (a * 4.0d0))) + (b * c)) - (i * (x * 4.0d0))) - (k * (j * 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 <= -7.8e-83) || !(t <= 2e-210)) {
tmp = ((b * c) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((j * (k * 27.0)) + (x * (i * 4.0)));
} else {
tmp = ((((y * ((x * 18.0) * (t * z))) - (t * (a * 4.0))) + (b * c)) - (i * (x * 4.0))) - (k * (j * 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 <= -7.8e-83) or not (t <= 2e-210): tmp = ((b * c) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((j * (k * 27.0)) + (x * (i * 4.0))) else: tmp = ((((y * ((x * 18.0) * (t * z))) - (t * (a * 4.0))) + (b * c)) - (i * (x * 4.0))) - (k * (j * 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 <= -7.8e-83) || !(t <= 2e-210)) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(y * z) * Float64(x * 18.0)) - Float64(a * 4.0)))) - Float64(Float64(j * Float64(k * 27.0)) + Float64(x * Float64(i * 4.0)))); else tmp = Float64(Float64(Float64(Float64(Float64(y * Float64(Float64(x * 18.0) * Float64(t * z))) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - Float64(i * Float64(x * 4.0))) - Float64(k * Float64(j * 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 <= -7.8e-83) || ~((t <= 2e-210)))
tmp = ((b * c) + (t * (((y * z) * (x * 18.0)) - (a * 4.0)))) - ((j * (k * 27.0)) + (x * (i * 4.0)));
else
tmp = ((((y * ((x * 18.0) * (t * z))) - (t * (a * 4.0))) + (b * c)) - (i * (x * 4.0))) - (k * (j * 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, -7.8e-83], N[Not[LessEqual[t, 2e-210]], $MachinePrecision]], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(y * z), $MachinePrecision] * N[(x * 18.0), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(k * 27.0), $MachinePrecision]), $MachinePrecision] + N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(N[(y * N[(N[(x * 18.0), $MachinePrecision] * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 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 -7.8 \cdot 10^{-83} \lor \neg \left(t \leq 2 \cdot 10^{-210}\right):\\
\;\;\;\;\left(b \cdot c + t \cdot \left(\left(y \cdot z\right) \cdot \left(x \cdot 18\right) - a \cdot 4\right)\right) - \left(j \cdot \left(k \cdot 27\right) + x \cdot \left(i \cdot 4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(y \cdot \left(\left(x \cdot 18\right) \cdot \left(t \cdot z\right)\right) - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - i \cdot \left(x \cdot 4\right)\right) - k \cdot \left(j \cdot 27\right)\\
\end{array}
\end{array}
if t < -7.800000000000001e-83 or 2.0000000000000001e-210 < t Initial program 89.0%
Simplified93.4%
if -7.800000000000001e-83 < t < 2.0000000000000001e-210Initial program 80.6%
pow180.6%
associate-*l*84.3%
*-commutative84.3%
Applied egg-rr84.3%
unpow184.3%
associate-*l*94.6%
*-commutative94.6%
Simplified94.6%
Final simplification93.8%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* k (* j 27.0))))
(if (<= t_1 -2e+215)
(+ (* j (* k -27.0)) (* t (+ (* 18.0 (* x (* y z))) (* a -4.0))))
(if (<= t_1 5e+131)
(-
(+ (* b c) (* t (- (* 18.0 (* z (* x y))) (* a 4.0))))
(* x (* i 4.0)))
(- (- (* b c) (+ (* 4.0 (* t a)) (* 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 = k * (j * 27.0);
double tmp;
if (t_1 <= -2e+215) {
tmp = (j * (k * -27.0)) + (t * ((18.0 * (x * (y * z))) + (a * -4.0)));
} else if (t_1 <= 5e+131) {
tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (a * 4.0)))) - (x * (i * 4.0));
} else {
tmp = ((b * c) - ((4.0 * (t * a)) + (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) :: tmp
t_1 = k * (j * 27.0d0)
if (t_1 <= (-2d+215)) then
tmp = (j * (k * (-27.0d0))) + (t * ((18.0d0 * (x * (y * z))) + (a * (-4.0d0))))
else if (t_1 <= 5d+131) then
tmp = ((b * c) + (t * ((18.0d0 * (z * (x * y))) - (a * 4.0d0)))) - (x * (i * 4.0d0))
else
tmp = ((b * c) - ((4.0d0 * (t * a)) + (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 = k * (j * 27.0);
double tmp;
if (t_1 <= -2e+215) {
tmp = (j * (k * -27.0)) + (t * ((18.0 * (x * (y * z))) + (a * -4.0)));
} else if (t_1 <= 5e+131) {
tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (a * 4.0)))) - (x * (i * 4.0));
} else {
tmp = ((b * c) - ((4.0 * (t * a)) + (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 = k * (j * 27.0) tmp = 0 if t_1 <= -2e+215: tmp = (j * (k * -27.0)) + (t * ((18.0 * (x * (y * z))) + (a * -4.0))) elif t_1 <= 5e+131: tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (a * 4.0)))) - (x * (i * 4.0)) else: tmp = ((b * c) - ((4.0 * (t * a)) + (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(k * Float64(j * 27.0)) tmp = 0.0 if (t_1 <= -2e+215) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) + Float64(a * -4.0)))); elseif (t_1 <= 5e+131) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(z * Float64(x * y))) - Float64(a * 4.0)))) - Float64(x * Float64(i * 4.0))); else tmp = Float64(Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(t * a)) + 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 = k * (j * 27.0);
tmp = 0.0;
if (t_1 <= -2e+215)
tmp = (j * (k * -27.0)) + (t * ((18.0 * (x * (y * z))) + (a * -4.0)));
elseif (t_1 <= 5e+131)
tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (a * 4.0)))) - (x * (i * 4.0));
else
tmp = ((b * c) - ((4.0 * (t * a)) + (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[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+215], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $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$95$1, 5e+131], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+215}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + a \cdot -4\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+131}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(18 \cdot \left(z \cdot \left(x \cdot y\right)\right) - a \cdot 4\right)\right) - x \cdot \left(i \cdot 4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - \left(4 \cdot \left(t \cdot a\right) + 4 \cdot \left(x \cdot i\right)\right)\right) - t\_1\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1.99999999999999981e215Initial program 89.0%
Simplified92.5%
Taylor expanded in t around inf 99.9%
if -1.99999999999999981e215 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 4.99999999999999995e131Initial program 87.2%
Simplified87.7%
associate-*r*88.8%
distribute-rgt-out--87.2%
sub-neg87.2%
associate-*l*86.0%
*-commutative86.0%
*-commutative86.0%
Applied egg-rr86.0%
distribute-lft-neg-in86.0%
*-commutative86.0%
cancel-sign-sub-inv86.0%
*-commutative86.0%
associate-*r*87.2%
distribute-rgt-out--88.8%
associate-*r*88.7%
*-commutative88.7%
*-commutative88.7%
*-commutative88.7%
Simplified88.7%
Taylor expanded in x around 0 87.7%
associate-*r*88.8%
Simplified88.8%
Taylor expanded in x around inf 82.6%
associate-*r*82.6%
*-commutative82.6%
Simplified82.6%
if 4.99999999999999995e131 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 82.0%
Taylor expanded in y around 0 79.6%
Final simplification84.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 (* t (* a -4.0))))
(if (<= (* b c) -3.4e+16)
(* b c)
(if (<= (* b c) -1.2e-237)
t_1
(if (<= (* b c) 5.5e-251)
(* j (* k -27.0))
(if (<= (* b c) 7.8e-79)
t_1
(if (<= (* b c) 9.5e+102) (* -27.0 (* j k)) (* b c))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = t * (a * -4.0);
double tmp;
if ((b * c) <= -3.4e+16) {
tmp = b * c;
} else if ((b * c) <= -1.2e-237) {
tmp = t_1;
} else if ((b * c) <= 5.5e-251) {
tmp = j * (k * -27.0);
} else if ((b * c) <= 7.8e-79) {
tmp = t_1;
} else if ((b * c) <= 9.5e+102) {
tmp = -27.0 * (j * k);
} else {
tmp = b * c;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = t * (a * (-4.0d0))
if ((b * c) <= (-3.4d+16)) then
tmp = b * c
else if ((b * c) <= (-1.2d-237)) then
tmp = t_1
else if ((b * c) <= 5.5d-251) then
tmp = j * (k * (-27.0d0))
else if ((b * c) <= 7.8d-79) then
tmp = t_1
else if ((b * c) <= 9.5d+102) then
tmp = (-27.0d0) * (j * k)
else
tmp = b * c
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = t * (a * -4.0);
double tmp;
if ((b * c) <= -3.4e+16) {
tmp = b * c;
} else if ((b * c) <= -1.2e-237) {
tmp = t_1;
} else if ((b * c) <= 5.5e-251) {
tmp = j * (k * -27.0);
} else if ((b * c) <= 7.8e-79) {
tmp = t_1;
} else if ((b * c) <= 9.5e+102) {
tmp = -27.0 * (j * k);
} else {
tmp = b * c;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = t * (a * -4.0) tmp = 0 if (b * c) <= -3.4e+16: tmp = b * c elif (b * c) <= -1.2e-237: tmp = t_1 elif (b * c) <= 5.5e-251: tmp = j * (k * -27.0) elif (b * c) <= 7.8e-79: tmp = t_1 elif (b * c) <= 9.5e+102: tmp = -27.0 * (j * k) else: tmp = b * c return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(t * Float64(a * -4.0)) tmp = 0.0 if (Float64(b * c) <= -3.4e+16) tmp = Float64(b * c); elseif (Float64(b * c) <= -1.2e-237) tmp = t_1; elseif (Float64(b * c) <= 5.5e-251) tmp = Float64(j * Float64(k * -27.0)); elseif (Float64(b * c) <= 7.8e-79) tmp = t_1; elseif (Float64(b * c) <= 9.5e+102) tmp = Float64(-27.0 * Float64(j * k)); else tmp = Float64(b * c); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = t * (a * -4.0);
tmp = 0.0;
if ((b * c) <= -3.4e+16)
tmp = b * c;
elseif ((b * c) <= -1.2e-237)
tmp = t_1;
elseif ((b * c) <= 5.5e-251)
tmp = j * (k * -27.0);
elseif ((b * c) <= 7.8e-79)
tmp = t_1;
elseif ((b * c) <= 9.5e+102)
tmp = -27.0 * (j * k);
else
tmp = b * c;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -3.4e+16], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1.2e-237], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], 5.5e-251], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 7.8e-79], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], 9.5e+102], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], N[(b * c), $MachinePrecision]]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := t \cdot \left(a \cdot -4\right)\\
\mathbf{if}\;b \cdot c \leq -3.4 \cdot 10^{+16}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -1.2 \cdot 10^{-237}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \cdot c \leq 5.5 \cdot 10^{-251}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{elif}\;b \cdot c \leq 7.8 \cdot 10^{-79}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \cdot c \leq 9.5 \cdot 10^{+102}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -3.4e16 or 9.4999999999999992e102 < (*.f64 b c) Initial program 82.2%
Simplified80.2%
associate-*r*84.1%
distribute-rgt-out--82.2%
sub-neg82.2%
associate-*l*81.9%
*-commutative81.9%
*-commutative81.9%
Applied egg-rr81.9%
distribute-lft-neg-in81.9%
*-commutative81.9%
cancel-sign-sub-inv81.9%
*-commutative81.9%
associate-*r*82.2%
distribute-rgt-out--84.1%
associate-*r*84.0%
*-commutative84.0%
*-commutative84.0%
*-commutative84.0%
Simplified84.0%
Taylor expanded in b around inf 47.5%
if -3.4e16 < (*.f64 b c) < -1.2e-237 or 5.5e-251 < (*.f64 b c) < 7.80000000000000011e-79Initial program 91.1%
Simplified92.6%
associate-*r*92.6%
distribute-rgt-out--91.1%
associate-*l*92.3%
*-commutative92.3%
*-commutative92.3%
Applied egg-rr92.3%
Taylor expanded in a around inf 38.8%
*-commutative38.8%
*-commutative38.8%
associate-*r*38.8%
Simplified38.8%
if -1.2e-237 < (*.f64 b c) < 5.5e-251Initial program 91.3%
Simplified95.8%
associate-*r*93.6%
distribute-rgt-out--91.4%
sub-neg91.4%
associate-*l*82.8%
*-commutative82.8%
*-commutative82.8%
Applied egg-rr82.8%
distribute-lft-neg-in82.8%
*-commutative82.8%
cancel-sign-sub-inv82.8%
*-commutative82.8%
associate-*r*91.4%
distribute-rgt-out--93.6%
associate-*r*93.6%
*-commutative93.6%
*-commutative93.6%
*-commutative93.6%
Simplified93.6%
Taylor expanded in j around inf 42.7%
metadata-eval42.7%
distribute-lft-neg-in42.7%
associate-*r*42.6%
*-commutative42.6%
associate-*r*42.7%
distribute-rgt-neg-in42.7%
distribute-lft-neg-in42.7%
metadata-eval42.7%
*-commutative42.7%
Simplified42.7%
if 7.80000000000000011e-79 < (*.f64 b c) < 9.4999999999999992e102Initial program 85.5%
Simplified92.6%
Taylor expanded in j around inf 33.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
(+ (* j (* k -27.0)) (* t (+ (* 18.0 (* x (* y z))) (* a -4.0))))))
(if (<= t -6.5e+126)
t_1
(if (<= t -1.55e+34)
(- (* a (- (* b (/ c a)) (* 4.0 (+ t (/ (* x i) a))))) (* k (* j 27.0)))
(if (<= t 10000.0)
(-
(+ (* b c) (* x (* z (* y (* t 18.0)))))
(+ (* j (* k 27.0)) (* 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 = (j * (k * -27.0)) + (t * ((18.0 * (x * (y * z))) + (a * -4.0)));
double tmp;
if (t <= -6.5e+126) {
tmp = t_1;
} else if (t <= -1.55e+34) {
tmp = (a * ((b * (c / a)) - (4.0 * (t + ((x * i) / a))))) - (k * (j * 27.0));
} else if (t <= 10000.0) {
tmp = ((b * c) + (x * (z * (y * (t * 18.0))))) - ((j * (k * 27.0)) + (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 = (j * (k * (-27.0d0))) + (t * ((18.0d0 * (x * (y * z))) + (a * (-4.0d0))))
if (t <= (-6.5d+126)) then
tmp = t_1
else if (t <= (-1.55d+34)) then
tmp = (a * ((b * (c / a)) - (4.0d0 * (t + ((x * i) / a))))) - (k * (j * 27.0d0))
else if (t <= 10000.0d0) then
tmp = ((b * c) + (x * (z * (y * (t * 18.0d0))))) - ((j * (k * 27.0d0)) + (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 = (j * (k * -27.0)) + (t * ((18.0 * (x * (y * z))) + (a * -4.0)));
double tmp;
if (t <= -6.5e+126) {
tmp = t_1;
} else if (t <= -1.55e+34) {
tmp = (a * ((b * (c / a)) - (4.0 * (t + ((x * i) / a))))) - (k * (j * 27.0));
} else if (t <= 10000.0) {
tmp = ((b * c) + (x * (z * (y * (t * 18.0))))) - ((j * (k * 27.0)) + (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 = (j * (k * -27.0)) + (t * ((18.0 * (x * (y * z))) + (a * -4.0))) tmp = 0 if t <= -6.5e+126: tmp = t_1 elif t <= -1.55e+34: tmp = (a * ((b * (c / a)) - (4.0 * (t + ((x * i) / a))))) - (k * (j * 27.0)) elif t <= 10000.0: tmp = ((b * c) + (x * (z * (y * (t * 18.0))))) - ((j * (k * 27.0)) + (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(Float64(j * Float64(k * -27.0)) + Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) + Float64(a * -4.0)))) tmp = 0.0 if (t <= -6.5e+126) tmp = t_1; elseif (t <= -1.55e+34) tmp = Float64(Float64(a * Float64(Float64(b * Float64(c / a)) - Float64(4.0 * Float64(t + Float64(Float64(x * i) / a))))) - Float64(k * Float64(j * 27.0))); elseif (t <= 10000.0) tmp = Float64(Float64(Float64(b * c) + Float64(x * Float64(z * Float64(y * Float64(t * 18.0))))) - Float64(Float64(j * Float64(k * 27.0)) + 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 = (j * (k * -27.0)) + (t * ((18.0 * (x * (y * z))) + (a * -4.0)));
tmp = 0.0;
if (t <= -6.5e+126)
tmp = t_1;
elseif (t <= -1.55e+34)
tmp = (a * ((b * (c / a)) - (4.0 * (t + ((x * i) / a))))) - (k * (j * 27.0));
elseif (t <= 10000.0)
tmp = ((b * c) + (x * (z * (y * (t * 18.0))))) - ((j * (k * 27.0)) + (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[(N[(j * N[(k * -27.0), $MachinePrecision]), $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, -6.5e+126], t$95$1, If[LessEqual[t, -1.55e+34], N[(N[(a * N[(N[(b * N[(c / a), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(t + N[(N[(x * i), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 10000.0], N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(z * N[(y * N[(t * 18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(k * 27.0), $MachinePrecision]), $MachinePrecision] + N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right) + t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + a \cdot -4\right)\\
\mathbf{if}\;t \leq -6.5 \cdot 10^{+126}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.55 \cdot 10^{+34}:\\
\;\;\;\;a \cdot \left(b \cdot \frac{c}{a} - 4 \cdot \left(t + \frac{x \cdot i}{a}\right)\right) - k \cdot \left(j \cdot 27\right)\\
\mathbf{elif}\;t \leq 10000:\\
\;\;\;\;\left(b \cdot c + x \cdot \left(z \cdot \left(y \cdot \left(t \cdot 18\right)\right)\right)\right) - \left(j \cdot \left(k \cdot 27\right) + x \cdot \left(i \cdot 4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -6.5000000000000005e126 or 1e4 < t Initial program 87.4%
Simplified92.3%
Taylor expanded in t around inf 87.6%
if -6.5000000000000005e126 < t < -1.54999999999999989e34Initial program 99.8%
Taylor expanded in y around 0 93.8%
Taylor expanded in a around inf 99.8%
associate-/l*99.8%
distribute-lft-out99.8%
*-commutative99.8%
Simplified99.8%
if -1.54999999999999989e34 < t < 1e4Initial program 84.5%
Simplified84.4%
associate-*r*84.5%
distribute-rgt-out--84.5%
sub-neg84.5%
associate-*l*87.8%
*-commutative87.8%
*-commutative87.8%
Applied egg-rr87.8%
distribute-lft-neg-in87.8%
*-commutative87.8%
cancel-sign-sub-inv87.8%
*-commutative87.8%
associate-*r*84.5%
distribute-rgt-out--84.5%
associate-*r*84.5%
*-commutative84.5%
*-commutative84.5%
*-commutative84.5%
Simplified84.5%
Taylor expanded in x around 0 84.4%
associate-*r*84.5%
Simplified84.5%
Taylor expanded in x around inf 76.7%
*-commutative76.7%
*-commutative76.7%
associate-*l*81.6%
*-commutative81.6%
associate-*r*81.6%
*-commutative81.6%
associate-*r*81.6%
associate-*r*87.9%
Simplified87.9%
Final simplification88.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 (* k (* j 27.0)))
(t_2
(+ (* j (* k -27.0)) (* t (+ (* 18.0 (* x (* y z))) (* a -4.0))))))
(if (<= t -2.1e+126)
t_2
(if (<= t -1.45e-100)
(* t (- (/ (* b c) t) (* 4.0 (+ a (* i (/ x t))))))
(if (<= t -4.1e-249)
(- (- (* b c) (* 4.0 (* t a))) t_1)
(if (<= t 2.5e-79) (- (- (* b c) (* 4.0 (* x i))) 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 = k * (j * 27.0);
double t_2 = (j * (k * -27.0)) + (t * ((18.0 * (x * (y * z))) + (a * -4.0)));
double tmp;
if (t <= -2.1e+126) {
tmp = t_2;
} else if (t <= -1.45e-100) {
tmp = t * (((b * c) / t) - (4.0 * (a + (i * (x / t)))));
} else if (t <= -4.1e-249) {
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
} else if (t <= 2.5e-79) {
tmp = ((b * c) - (4.0 * (x * i))) - 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 = k * (j * 27.0d0)
t_2 = (j * (k * (-27.0d0))) + (t * ((18.0d0 * (x * (y * z))) + (a * (-4.0d0))))
if (t <= (-2.1d+126)) then
tmp = t_2
else if (t <= (-1.45d-100)) then
tmp = t * (((b * c) / t) - (4.0d0 * (a + (i * (x / t)))))
else if (t <= (-4.1d-249)) then
tmp = ((b * c) - (4.0d0 * (t * a))) - t_1
else if (t <= 2.5d-79) then
tmp = ((b * c) - (4.0d0 * (x * i))) - 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 = k * (j * 27.0);
double t_2 = (j * (k * -27.0)) + (t * ((18.0 * (x * (y * z))) + (a * -4.0)));
double tmp;
if (t <= -2.1e+126) {
tmp = t_2;
} else if (t <= -1.45e-100) {
tmp = t * (((b * c) / t) - (4.0 * (a + (i * (x / t)))));
} else if (t <= -4.1e-249) {
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
} else if (t <= 2.5e-79) {
tmp = ((b * c) - (4.0 * (x * i))) - 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 = k * (j * 27.0) t_2 = (j * (k * -27.0)) + (t * ((18.0 * (x * (y * z))) + (a * -4.0))) tmp = 0 if t <= -2.1e+126: tmp = t_2 elif t <= -1.45e-100: tmp = t * (((b * c) / t) - (4.0 * (a + (i * (x / t))))) elif t <= -4.1e-249: tmp = ((b * c) - (4.0 * (t * a))) - t_1 elif t <= 2.5e-79: tmp = ((b * c) - (4.0 * (x * i))) - 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(k * Float64(j * 27.0)) t_2 = Float64(Float64(j * Float64(k * -27.0)) + Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) + Float64(a * -4.0)))) tmp = 0.0 if (t <= -2.1e+126) tmp = t_2; elseif (t <= -1.45e-100) tmp = Float64(t * Float64(Float64(Float64(b * c) / t) - Float64(4.0 * Float64(a + Float64(i * Float64(x / t)))))); elseif (t <= -4.1e-249) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - t_1); elseif (t <= 2.5e-79) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) - 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 = k * (j * 27.0);
t_2 = (j * (k * -27.0)) + (t * ((18.0 * (x * (y * z))) + (a * -4.0)));
tmp = 0.0;
if (t <= -2.1e+126)
tmp = t_2;
elseif (t <= -1.45e-100)
tmp = t * (((b * c) / t) - (4.0 * (a + (i * (x / t)))));
elseif (t <= -4.1e-249)
tmp = ((b * c) - (4.0 * (t * a))) - t_1;
elseif (t <= 2.5e-79)
tmp = ((b * c) - (4.0 * (x * i))) - 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[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(k * -27.0), $MachinePrecision]), $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, -2.1e+126], t$95$2, If[LessEqual[t, -1.45e-100], N[(t * N[(N[(N[(b * c), $MachinePrecision] / t), $MachinePrecision] - N[(4.0 * N[(a + N[(i * N[(x / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.1e-249], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t, 2.5e-79], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $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 := k \cdot \left(j \cdot 27\right)\\
t_2 := j \cdot \left(k \cdot -27\right) + t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + a \cdot -4\right)\\
\mathbf{if}\;t \leq -2.1 \cdot 10^{+126}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.45 \cdot 10^{-100}:\\
\;\;\;\;t \cdot \left(\frac{b \cdot c}{t} - 4 \cdot \left(a + i \cdot \frac{x}{t}\right)\right)\\
\mathbf{elif}\;t \leq -4.1 \cdot 10^{-249}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - t\_1\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-79}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(x \cdot i\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -2.0999999999999999e126 or 2.5e-79 < t Initial program 87.3%
Simplified92.4%
Taylor expanded in t around inf 86.7%
if -2.0999999999999999e126 < t < -1.44999999999999988e-100Initial program 85.7%
Taylor expanded in y around 0 83.3%
Taylor expanded in j around 0 68.8%
Taylor expanded in t around inf 64.2%
distribute-lft-out64.2%
associate-/l*69.0%
Simplified69.0%
if -1.44999999999999988e-100 < t < -4.10000000000000004e-249Initial program 82.4%
Taylor expanded in x around 0 79.1%
if -4.10000000000000004e-249 < t < 2.5e-79Initial program 88.0%
Taylor expanded in t around 0 81.6%
Final simplification81.7%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* j (* k 27.0)) (* x (* i 4.0)))))
(if (<= x -6.8e+135)
(- (+ (* b c) (* x (* z (* y (* t 18.0))))) t_1)
(if (<= x 1.7e+145)
(- (+ (* b c) (* t (- (* 18.0 (* z (* x y))) (* a 4.0)))) t_1)
(* x (- (* 18.0 (* t (* y z))) (* i 4.0)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * (k * 27.0)) + (x * (i * 4.0));
double tmp;
if (x <= -6.8e+135) {
tmp = ((b * c) + (x * (z * (y * (t * 18.0))))) - t_1;
} else if (x <= 1.7e+145) {
tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (a * 4.0)))) - t_1;
} else {
tmp = x * ((18.0 * (t * (y * z))) - (i * 4.0));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (j * (k * 27.0d0)) + (x * (i * 4.0d0))
if (x <= (-6.8d+135)) then
tmp = ((b * c) + (x * (z * (y * (t * 18.0d0))))) - t_1
else if (x <= 1.7d+145) then
tmp = ((b * c) + (t * ((18.0d0 * (z * (x * y))) - (a * 4.0d0)))) - t_1
else
tmp = x * ((18.0d0 * (t * (y * z))) - (i * 4.0d0))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * (k * 27.0)) + (x * (i * 4.0));
double tmp;
if (x <= -6.8e+135) {
tmp = ((b * c) + (x * (z * (y * (t * 18.0))))) - t_1;
} else if (x <= 1.7e+145) {
tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (a * 4.0)))) - t_1;
} else {
tmp = x * ((18.0 * (t * (y * z))) - (i * 4.0));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * (k * 27.0)) + (x * (i * 4.0)) tmp = 0 if x <= -6.8e+135: tmp = ((b * c) + (x * (z * (y * (t * 18.0))))) - t_1 elif x <= 1.7e+145: tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (a * 4.0)))) - t_1 else: tmp = x * ((18.0 * (t * (y * z))) - (i * 4.0)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * Float64(k * 27.0)) + Float64(x * Float64(i * 4.0))) tmp = 0.0 if (x <= -6.8e+135) tmp = Float64(Float64(Float64(b * c) + Float64(x * Float64(z * Float64(y * Float64(t * 18.0))))) - t_1); elseif (x <= 1.7e+145) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(z * Float64(x * y))) - Float64(a * 4.0)))) - t_1); else tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(i * 4.0))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (j * (k * 27.0)) + (x * (i * 4.0));
tmp = 0.0;
if (x <= -6.8e+135)
tmp = ((b * c) + (x * (z * (y * (t * 18.0))))) - t_1;
elseif (x <= 1.7e+145)
tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (a * 4.0)))) - t_1;
else
tmp = x * ((18.0 * (t * (y * z))) - (i * 4.0));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * N[(k * 27.0), $MachinePrecision]), $MachinePrecision] + N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.8e+135], N[(N[(N[(b * c), $MachinePrecision] + N[(x * N[(z * N[(y * N[(t * 18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[x, 1.7e+145], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot 27\right) + x \cdot \left(i \cdot 4\right)\\
\mathbf{if}\;x \leq -6.8 \cdot 10^{+135}:\\
\;\;\;\;\left(b \cdot c + x \cdot \left(z \cdot \left(y \cdot \left(t \cdot 18\right)\right)\right)\right) - t\_1\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{+145}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(18 \cdot \left(z \cdot \left(x \cdot y\right)\right) - a \cdot 4\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - i \cdot 4\right)\\
\end{array}
\end{array}
if x < -6.80000000000000019e135Initial program 70.0%
Simplified83.3%
associate-*r*70.1%
distribute-rgt-out--70.1%
sub-neg70.1%
associate-*l*73.0%
*-commutative73.0%
*-commutative73.0%
Applied egg-rr73.0%
distribute-lft-neg-in73.0%
*-commutative73.0%
cancel-sign-sub-inv73.0%
*-commutative73.0%
associate-*r*70.1%
distribute-rgt-out--70.1%
associate-*r*70.1%
*-commutative70.1%
*-commutative70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in x around 0 83.3%
associate-*r*70.1%
Simplified70.1%
Taylor expanded in x around inf 83.2%
*-commutative83.2%
*-commutative83.2%
associate-*l*93.0%
*-commutative93.0%
associate-*r*93.0%
*-commutative93.0%
associate-*r*93.0%
associate-*r*93.0%
Simplified93.0%
if -6.80000000000000019e135 < x < 1.7e145Initial program 92.9%
Simplified91.4%
associate-*r*94.0%
distribute-rgt-out--92.9%
sub-neg92.9%
associate-*l*90.3%
*-commutative90.3%
*-commutative90.3%
Applied egg-rr90.3%
distribute-lft-neg-in90.3%
*-commutative90.3%
cancel-sign-sub-inv90.3%
*-commutative90.3%
associate-*r*92.9%
distribute-rgt-out--94.0%
associate-*r*93.9%
*-commutative93.9%
*-commutative93.9%
*-commutative93.9%
Simplified93.9%
Taylor expanded in x around 0 91.4%
associate-*r*93.9%
Simplified93.9%
if 1.7e145 < x Initial program 62.3%
Simplified71.9%
Taylor expanded in x around inf 84.4%
Final simplification92.7%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* j (* k -27.0)) (* b c))))
(if (<= j -1.95e+261)
(* t (- (* 18.0 (* x (* y z))) (* a 4.0)))
(if (<= j -7.8e+202)
t_1
(if (<= j -1.1e+193)
(* -18.0 (* t (* z (- (* x y)))))
(if (or (<= j -2.9e+157) (not (<= j 5.8e-127)))
t_1
(- (* b c) (* 4.0 (+ (* x i) (* t a))))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * (k * -27.0)) + (b * c);
double tmp;
if (j <= -1.95e+261) {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
} else if (j <= -7.8e+202) {
tmp = t_1;
} else if (j <= -1.1e+193) {
tmp = -18.0 * (t * (z * -(x * y)));
} else if ((j <= -2.9e+157) || !(j <= 5.8e-127)) {
tmp = t_1;
} else {
tmp = (b * c) - (4.0 * ((x * i) + (t * a)));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (j * (k * (-27.0d0))) + (b * c)
if (j <= (-1.95d+261)) then
tmp = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
else if (j <= (-7.8d+202)) then
tmp = t_1
else if (j <= (-1.1d+193)) then
tmp = (-18.0d0) * (t * (z * -(x * y)))
else if ((j <= (-2.9d+157)) .or. (.not. (j <= 5.8d-127))) then
tmp = t_1
else
tmp = (b * c) - (4.0d0 * ((x * i) + (t * a)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * (k * -27.0)) + (b * c);
double tmp;
if (j <= -1.95e+261) {
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
} else if (j <= -7.8e+202) {
tmp = t_1;
} else if (j <= -1.1e+193) {
tmp = -18.0 * (t * (z * -(x * y)));
} else if ((j <= -2.9e+157) || !(j <= 5.8e-127)) {
tmp = t_1;
} else {
tmp = (b * c) - (4.0 * ((x * i) + (t * a)));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * (k * -27.0)) + (b * c) tmp = 0 if j <= -1.95e+261: tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0)) elif j <= -7.8e+202: tmp = t_1 elif j <= -1.1e+193: tmp = -18.0 * (t * (z * -(x * y))) elif (j <= -2.9e+157) or not (j <= 5.8e-127): tmp = t_1 else: tmp = (b * c) - (4.0 * ((x * i) + (t * a))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * Float64(k * -27.0)) + Float64(b * c)) tmp = 0.0 if (j <= -1.95e+261) tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0))); elseif (j <= -7.8e+202) tmp = t_1; elseif (j <= -1.1e+193) tmp = Float64(-18.0 * Float64(t * Float64(z * Float64(-Float64(x * y))))); elseif ((j <= -2.9e+157) || !(j <= 5.8e-127)) tmp = t_1; else tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(Float64(x * i) + Float64(t * a)))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (j * (k * -27.0)) + (b * c);
tmp = 0.0;
if (j <= -1.95e+261)
tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
elseif (j <= -7.8e+202)
tmp = t_1;
elseif (j <= -1.1e+193)
tmp = -18.0 * (t * (z * -(x * y)));
elseif ((j <= -2.9e+157) || ~((j <= 5.8e-127)))
tmp = t_1;
else
tmp = (b * c) - (4.0 * ((x * i) + (t * a)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.95e+261], N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -7.8e+202], t$95$1, If[LessEqual[j, -1.1e+193], N[(-18.0 * N[(t * N[(z * (-N[(x * y), $MachinePrecision])), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[j, -2.9e+157], N[Not[LessEqual[j, 5.8e-127]], $MachinePrecision]], t$95$1, N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * 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 := j \cdot \left(k \cdot -27\right) + b \cdot c\\
\mathbf{if}\;j \leq -1.95 \cdot 10^{+261}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;j \leq -7.8 \cdot 10^{+202}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -1.1 \cdot 10^{+193}:\\
\;\;\;\;-18 \cdot \left(t \cdot \left(z \cdot \left(-x \cdot y\right)\right)\right)\\
\mathbf{elif}\;j \leq -2.9 \cdot 10^{+157} \lor \neg \left(j \leq 5.8 \cdot 10^{-127}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i + t \cdot a\right)\\
\end{array}
\end{array}
if j < -1.94999999999999997e261Initial program 71.3%
Simplified71.6%
associate-*r*71.5%
distribute-rgt-out--71.5%
associate-*l*79.8%
*-commutative79.8%
*-commutative79.8%
Applied egg-rr79.8%
Taylor expanded in t around inf 62.7%
if -1.94999999999999997e261 < j < -7.79999999999999967e202 or -1.09999999999999993e193 < j < -2.89999999999999988e157 or 5.8000000000000001e-127 < j Initial program 88.4%
Simplified91.1%
Taylor expanded in b around inf 55.1%
if -7.79999999999999967e202 < j < -1.09999999999999993e193Initial program 100.0%
Simplified53.7%
associate-*r*100.0%
distribute-rgt-out--100.0%
sub-neg100.0%
associate-*l*100.0%
*-commutative100.0%
*-commutative100.0%
Applied egg-rr100.0%
distribute-lft-neg-in100.0%
*-commutative100.0%
cancel-sign-sub-inv100.0%
*-commutative100.0%
associate-*r*100.0%
distribute-rgt-out--100.0%
associate-*r*100.0%
*-commutative100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around -inf 53.7%
mul-1-neg53.7%
cancel-sign-sub-inv53.7%
associate-*r*53.7%
metadata-eval53.7%
Simplified53.7%
Taylor expanded in t around inf 53.7%
*-commutative53.7%
associate-*r*100.0%
Simplified100.0%
if -2.89999999999999988e157 < j < 5.8000000000000001e-127Initial program 86.1%
Taylor expanded in y around 0 72.2%
Taylor expanded in j around 0 59.9%
+-commutative59.9%
associate-*r*59.9%
*-commutative59.9%
fma-define59.9%
associate-*r*59.9%
*-commutative59.9%
Applied egg-rr59.9%
fma-undefine59.9%
*-commutative59.9%
associate-*r*59.9%
*-commutative59.9%
*-commutative59.9%
*-commutative59.9%
associate-*r*59.9%
distribute-lft-out59.9%
*-commutative59.9%
*-commutative59.9%
Simplified59.9%
Final simplification58.3%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* y (* (* t x) (- (* z -18.0))))) (t_2 (* j (* k -27.0))))
(if (<= x -4e+250)
(- (* b c) (* x (* i 4.0)))
(if (<= x -1.2e+143)
t_1
(if (<= x -5.5e+109)
(- (* b c) (* t (* a 4.0)))
(if (<= x -1.35e-126)
(+ t_2 (* b c))
(if (<= x 8.5e+23) (+ t_2 (* t (* a -4.0))) t_1)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = y * ((t * x) * -(z * -18.0));
double t_2 = j * (k * -27.0);
double tmp;
if (x <= -4e+250) {
tmp = (b * c) - (x * (i * 4.0));
} else if (x <= -1.2e+143) {
tmp = t_1;
} else if (x <= -5.5e+109) {
tmp = (b * c) - (t * (a * 4.0));
} else if (x <= -1.35e-126) {
tmp = t_2 + (b * c);
} else if (x <= 8.5e+23) {
tmp = t_2 + (t * (a * -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) :: t_2
real(8) :: tmp
t_1 = y * ((t * x) * -(z * (-18.0d0)))
t_2 = j * (k * (-27.0d0))
if (x <= (-4d+250)) then
tmp = (b * c) - (x * (i * 4.0d0))
else if (x <= (-1.2d+143)) then
tmp = t_1
else if (x <= (-5.5d+109)) then
tmp = (b * c) - (t * (a * 4.0d0))
else if (x <= (-1.35d-126)) then
tmp = t_2 + (b * c)
else if (x <= 8.5d+23) then
tmp = t_2 + (t * (a * (-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 = y * ((t * x) * -(z * -18.0));
double t_2 = j * (k * -27.0);
double tmp;
if (x <= -4e+250) {
tmp = (b * c) - (x * (i * 4.0));
} else if (x <= -1.2e+143) {
tmp = t_1;
} else if (x <= -5.5e+109) {
tmp = (b * c) - (t * (a * 4.0));
} else if (x <= -1.35e-126) {
tmp = t_2 + (b * c);
} else if (x <= 8.5e+23) {
tmp = t_2 + (t * (a * -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 = y * ((t * x) * -(z * -18.0)) t_2 = j * (k * -27.0) tmp = 0 if x <= -4e+250: tmp = (b * c) - (x * (i * 4.0)) elif x <= -1.2e+143: tmp = t_1 elif x <= -5.5e+109: tmp = (b * c) - (t * (a * 4.0)) elif x <= -1.35e-126: tmp = t_2 + (b * c) elif x <= 8.5e+23: tmp = t_2 + (t * (a * -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(y * Float64(Float64(t * x) * Float64(-Float64(z * -18.0)))) t_2 = Float64(j * Float64(k * -27.0)) tmp = 0.0 if (x <= -4e+250) tmp = Float64(Float64(b * c) - Float64(x * Float64(i * 4.0))); elseif (x <= -1.2e+143) tmp = t_1; elseif (x <= -5.5e+109) tmp = Float64(Float64(b * c) - Float64(t * Float64(a * 4.0))); elseif (x <= -1.35e-126) tmp = Float64(t_2 + Float64(b * c)); elseif (x <= 8.5e+23) tmp = Float64(t_2 + Float64(t * Float64(a * -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 = y * ((t * x) * -(z * -18.0));
t_2 = j * (k * -27.0);
tmp = 0.0;
if (x <= -4e+250)
tmp = (b * c) - (x * (i * 4.0));
elseif (x <= -1.2e+143)
tmp = t_1;
elseif (x <= -5.5e+109)
tmp = (b * c) - (t * (a * 4.0));
elseif (x <= -1.35e-126)
tmp = t_2 + (b * c);
elseif (x <= 8.5e+23)
tmp = t_2 + (t * (a * -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[(y * N[(N[(t * x), $MachinePrecision] * (-N[(z * -18.0), $MachinePrecision])), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4e+250], N[(N[(b * c), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.2e+143], t$95$1, If[LessEqual[x, -5.5e+109], N[(N[(b * c), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.35e-126], N[(t$95$2 + N[(b * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.5e+23], N[(t$95$2 + N[(t * N[(a * -4.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 := y \cdot \left(\left(t \cdot x\right) \cdot \left(-z \cdot -18\right)\right)\\
t_2 := j \cdot \left(k \cdot -27\right)\\
\mathbf{if}\;x \leq -4 \cdot 10^{+250}:\\
\;\;\;\;b \cdot c - x \cdot \left(i \cdot 4\right)\\
\mathbf{elif}\;x \leq -1.2 \cdot 10^{+143}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -5.5 \cdot 10^{+109}:\\
\;\;\;\;b \cdot c - t \cdot \left(a \cdot 4\right)\\
\mathbf{elif}\;x \leq -1.35 \cdot 10^{-126}:\\
\;\;\;\;t\_2 + b \cdot c\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{+23}:\\
\;\;\;\;t\_2 + t \cdot \left(a \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.9999999999999997e250Initial program 74.7%
Taylor expanded in y around 0 81.6%
Taylor expanded in j around 0 75.1%
Taylor expanded in a around 0 68.1%
associate-*r*68.1%
Simplified68.1%
if -3.9999999999999997e250 < x < -1.1999999999999999e143 or 8.5000000000000001e23 < x Initial program 72.8%
Simplified81.5%
associate-*r*77.2%
distribute-rgt-out--72.8%
sub-neg72.8%
associate-*l*74.1%
*-commutative74.1%
*-commutative74.1%
Applied egg-rr74.1%
distribute-lft-neg-in74.1%
*-commutative74.1%
cancel-sign-sub-inv74.1%
*-commutative74.1%
associate-*r*72.8%
distribute-rgt-out--77.2%
associate-*r*77.2%
*-commutative77.2%
*-commutative77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in x around -inf 74.7%
mul-1-neg74.7%
cancel-sign-sub-inv74.7%
associate-*r*74.7%
metadata-eval74.7%
Simplified74.7%
Taylor expanded in t around inf 50.1%
associate-*r*53.7%
*-commutative53.7%
associate-*r*62.0%
associate-*r*60.6%
associate-*l*60.6%
*-commutative60.6%
associate-*r*62.0%
associate-*l*61.9%
Simplified61.9%
if -1.1999999999999999e143 < x < -5.4999999999999998e109Initial program 88.9%
Taylor expanded in y around 0 88.9%
Taylor expanded in j around 0 88.9%
Taylor expanded in a around inf 67.0%
associate-*r*67.0%
*-commutative67.0%
Simplified67.0%
if -5.4999999999999998e109 < x < -1.34999999999999998e-126Initial program 96.3%
Simplified96.3%
Taylor expanded in b around inf 53.9%
if -1.34999999999999998e-126 < x < 8.5000000000000001e23Initial program 91.8%
Simplified89.2%
Taylor expanded in a around inf 60.5%
associate-*r*60.5%
*-commutative60.5%
Simplified60.5%
Final simplification60.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* b c) (* t (* a 4.0))))
(t_2 (* y (* (* t x) (- (* z -18.0))))))
(if (<= x -4.2e+250)
(- (* b c) (* x (* i 4.0)))
(if (<= x -9.2e+142)
t_2
(if (<= x -7.4e+109)
t_1
(if (<= x 1.65e-131)
(+ (* j (* k -27.0)) (* b c))
(if (<= x 7e+25) 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 = (b * c) - (t * (a * 4.0));
double t_2 = y * ((t * x) * -(z * -18.0));
double tmp;
if (x <= -4.2e+250) {
tmp = (b * c) - (x * (i * 4.0));
} else if (x <= -9.2e+142) {
tmp = t_2;
} else if (x <= -7.4e+109) {
tmp = t_1;
} else if (x <= 1.65e-131) {
tmp = (j * (k * -27.0)) + (b * c);
} else if (x <= 7e+25) {
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 = (b * c) - (t * (a * 4.0d0))
t_2 = y * ((t * x) * -(z * (-18.0d0)))
if (x <= (-4.2d+250)) then
tmp = (b * c) - (x * (i * 4.0d0))
else if (x <= (-9.2d+142)) then
tmp = t_2
else if (x <= (-7.4d+109)) then
tmp = t_1
else if (x <= 1.65d-131) then
tmp = (j * (k * (-27.0d0))) + (b * c)
else if (x <= 7d+25) 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 = (b * c) - (t * (a * 4.0));
double t_2 = y * ((t * x) * -(z * -18.0));
double tmp;
if (x <= -4.2e+250) {
tmp = (b * c) - (x * (i * 4.0));
} else if (x <= -9.2e+142) {
tmp = t_2;
} else if (x <= -7.4e+109) {
tmp = t_1;
} else if (x <= 1.65e-131) {
tmp = (j * (k * -27.0)) + (b * c);
} else if (x <= 7e+25) {
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 = (b * c) - (t * (a * 4.0)) t_2 = y * ((t * x) * -(z * -18.0)) tmp = 0 if x <= -4.2e+250: tmp = (b * c) - (x * (i * 4.0)) elif x <= -9.2e+142: tmp = t_2 elif x <= -7.4e+109: tmp = t_1 elif x <= 1.65e-131: tmp = (j * (k * -27.0)) + (b * c) elif x <= 7e+25: 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(Float64(b * c) - Float64(t * Float64(a * 4.0))) t_2 = Float64(y * Float64(Float64(t * x) * Float64(-Float64(z * -18.0)))) tmp = 0.0 if (x <= -4.2e+250) tmp = Float64(Float64(b * c) - Float64(x * Float64(i * 4.0))); elseif (x <= -9.2e+142) tmp = t_2; elseif (x <= -7.4e+109) tmp = t_1; elseif (x <= 1.65e-131) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(b * c)); elseif (x <= 7e+25) 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 = (b * c) - (t * (a * 4.0));
t_2 = y * ((t * x) * -(z * -18.0));
tmp = 0.0;
if (x <= -4.2e+250)
tmp = (b * c) - (x * (i * 4.0));
elseif (x <= -9.2e+142)
tmp = t_2;
elseif (x <= -7.4e+109)
tmp = t_1;
elseif (x <= 1.65e-131)
tmp = (j * (k * -27.0)) + (b * c);
elseif (x <= 7e+25)
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[(N[(b * c), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(t * x), $MachinePrecision] * (-N[(z * -18.0), $MachinePrecision])), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.2e+250], N[(N[(b * c), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -9.2e+142], t$95$2, If[LessEqual[x, -7.4e+109], t$95$1, If[LessEqual[x, 1.65e-131], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7e+25], 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 := b \cdot c - t \cdot \left(a \cdot 4\right)\\
t_2 := y \cdot \left(\left(t \cdot x\right) \cdot \left(-z \cdot -18\right)\right)\\
\mathbf{if}\;x \leq -4.2 \cdot 10^{+250}:\\
\;\;\;\;b \cdot c - x \cdot \left(i \cdot 4\right)\\
\mathbf{elif}\;x \leq -9.2 \cdot 10^{+142}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -7.4 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-131}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + b \cdot c\\
\mathbf{elif}\;x \leq 7 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -4.2000000000000003e250Initial program 74.7%
Taylor expanded in y around 0 81.6%
Taylor expanded in j around 0 75.1%
Taylor expanded in a around 0 68.1%
associate-*r*68.1%
Simplified68.1%
if -4.2000000000000003e250 < x < -9.20000000000000009e142 or 6.99999999999999999e25 < x Initial program 72.4%
Simplified81.2%
associate-*r*76.9%
distribute-rgt-out--72.4%
sub-neg72.4%
associate-*l*73.7%
*-commutative73.7%
*-commutative73.7%
Applied egg-rr73.7%
distribute-lft-neg-in73.7%
*-commutative73.7%
cancel-sign-sub-inv73.7%
*-commutative73.7%
associate-*r*72.4%
distribute-rgt-out--76.9%
associate-*r*76.9%
*-commutative76.9%
*-commutative76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in x around -inf 75.8%
mul-1-neg75.8%
cancel-sign-sub-inv75.8%
associate-*r*75.7%
metadata-eval75.7%
Simplified75.7%
Taylor expanded in t around inf 50.9%
associate-*r*54.5%
*-commutative54.5%
associate-*r*62.9%
associate-*r*61.5%
associate-*l*61.5%
*-commutative61.5%
associate-*r*62.9%
associate-*l*62.8%
Simplified62.8%
if -9.20000000000000009e142 < x < -7.40000000000000041e109 or 1.6500000000000001e-131 < x < 6.99999999999999999e25Initial program 83.8%
Taylor expanded in y around 0 76.9%
Taylor expanded in j around 0 67.7%
Taylor expanded in a around inf 51.9%
associate-*r*51.9%
*-commutative51.9%
Simplified51.9%
if -7.40000000000000041e109 < x < 1.6500000000000001e-131Initial program 96.1%
Simplified93.2%
Taylor expanded in b around inf 57.0%
Final simplification58.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 (- (- (* b c) (* 4.0 (* t a))) (* k (* j 27.0)))))
(if (<= x -2.7e+126)
(* x (- (* 18.0 (* t (* y z))) (* i 4.0)))
(if (<= x -8.5e+100)
t_1
(if (<= x -5e+27)
(* x (- (* 4.0 (- i)) (* (* y z) (* t -18.0))))
(if (<= x 7.5e+29)
t_1
(* x (+ (* -4.0 i) (* 18.0 (* z (* t y)))))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = ((b * c) - (4.0 * (t * a))) - (k * (j * 27.0));
double tmp;
if (x <= -2.7e+126) {
tmp = x * ((18.0 * (t * (y * z))) - (i * 4.0));
} else if (x <= -8.5e+100) {
tmp = t_1;
} else if (x <= -5e+27) {
tmp = x * ((4.0 * -i) - ((y * z) * (t * -18.0)));
} else if (x <= 7.5e+29) {
tmp = t_1;
} else {
tmp = x * ((-4.0 * i) + (18.0 * (z * (t * y))));
}
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 = ((b * c) - (4.0d0 * (t * a))) - (k * (j * 27.0d0))
if (x <= (-2.7d+126)) then
tmp = x * ((18.0d0 * (t * (y * z))) - (i * 4.0d0))
else if (x <= (-8.5d+100)) then
tmp = t_1
else if (x <= (-5d+27)) then
tmp = x * ((4.0d0 * -i) - ((y * z) * (t * (-18.0d0))))
else if (x <= 7.5d+29) then
tmp = t_1
else
tmp = x * (((-4.0d0) * i) + (18.0d0 * (z * (t * y))))
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 = ((b * c) - (4.0 * (t * a))) - (k * (j * 27.0));
double tmp;
if (x <= -2.7e+126) {
tmp = x * ((18.0 * (t * (y * z))) - (i * 4.0));
} else if (x <= -8.5e+100) {
tmp = t_1;
} else if (x <= -5e+27) {
tmp = x * ((4.0 * -i) - ((y * z) * (t * -18.0)));
} else if (x <= 7.5e+29) {
tmp = t_1;
} else {
tmp = x * ((-4.0 * i) + (18.0 * (z * (t * y))));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = ((b * c) - (4.0 * (t * a))) - (k * (j * 27.0)) tmp = 0 if x <= -2.7e+126: tmp = x * ((18.0 * (t * (y * z))) - (i * 4.0)) elif x <= -8.5e+100: tmp = t_1 elif x <= -5e+27: tmp = x * ((4.0 * -i) - ((y * z) * (t * -18.0))) elif x <= 7.5e+29: tmp = t_1 else: tmp = x * ((-4.0 * i) + (18.0 * (z * (t * y)))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - Float64(k * Float64(j * 27.0))) tmp = 0.0 if (x <= -2.7e+126) tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(i * 4.0))); elseif (x <= -8.5e+100) tmp = t_1; elseif (x <= -5e+27) tmp = Float64(x * Float64(Float64(4.0 * Float64(-i)) - Float64(Float64(y * z) * Float64(t * -18.0)))); elseif (x <= 7.5e+29) tmp = t_1; else tmp = Float64(x * Float64(Float64(-4.0 * i) + Float64(18.0 * Float64(z * Float64(t * y))))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = ((b * c) - (4.0 * (t * a))) - (k * (j * 27.0));
tmp = 0.0;
if (x <= -2.7e+126)
tmp = x * ((18.0 * (t * (y * z))) - (i * 4.0));
elseif (x <= -8.5e+100)
tmp = t_1;
elseif (x <= -5e+27)
tmp = x * ((4.0 * -i) - ((y * z) * (t * -18.0)));
elseif (x <= 7.5e+29)
tmp = t_1;
else
tmp = x * ((-4.0 * i) + (18.0 * (z * (t * y))));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.7e+126], N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -8.5e+100], t$95$1, If[LessEqual[x, -5e+27], N[(x * N[(N[(4.0 * (-i)), $MachinePrecision] - N[(N[(y * z), $MachinePrecision] * N[(t * -18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.5e+29], t$95$1, N[(x * N[(N[(-4.0 * i), $MachinePrecision] + N[(18.0 * N[(z * N[(t * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := \left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;x \leq -2.7 \cdot 10^{+126}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - i \cdot 4\right)\\
\mathbf{elif}\;x \leq -8.5 \cdot 10^{+100}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -5 \cdot 10^{+27}:\\
\;\;\;\;x \cdot \left(4 \cdot \left(-i\right) - \left(y \cdot z\right) \cdot \left(t \cdot -18\right)\right)\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{+29}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(-4 \cdot i + 18 \cdot \left(z \cdot \left(t \cdot y\right)\right)\right)\\
\end{array}
\end{array}
if x < -2.70000000000000002e126Initial program 71.0%
Simplified83.8%
Taylor expanded in x around inf 70.8%
if -2.70000000000000002e126 < x < -8.50000000000000043e100 or -4.99999999999999979e27 < x < 7.49999999999999945e29Initial program 93.0%
Taylor expanded in x around 0 77.6%
if -8.50000000000000043e100 < x < -4.99999999999999979e27Initial program 100.0%
Simplified100.0%
associate-*r*100.0%
distribute-rgt-out--100.0%
sub-neg100.0%
associate-*l*93.2%
*-commutative93.2%
*-commutative93.2%
Applied egg-rr93.2%
distribute-lft-neg-in93.2%
*-commutative93.2%
cancel-sign-sub-inv93.2%
*-commutative93.2%
associate-*r*100.0%
distribute-rgt-out--100.0%
associate-*r*100.0%
*-commutative100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around -inf 78.5%
mul-1-neg78.5%
cancel-sign-sub-inv78.5%
associate-*r*78.6%
metadata-eval78.6%
Simplified78.6%
if 7.49999999999999945e29 < x Initial program 73.5%
Simplified80.6%
associate-*r*78.9%
distribute-rgt-out--73.5%
associate-*l*75.1%
*-commutative75.1%
*-commutative75.1%
Applied egg-rr75.1%
Taylor expanded in x around inf 77.7%
cancel-sign-sub-inv77.7%
associate-*r*79.3%
metadata-eval79.3%
*-commutative79.3%
Simplified79.3%
Final simplification77.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* j (* k -27.0)) (* b c)))
(t_2 (- (* b c) (* x (* i 4.0))))
(t_3 (- (* b c) (* t (* a 4.0)))))
(if (<= a -2.25e+95)
t_3
(if (<= a -6.8e+44)
t_2
(if (<= a -2.25e-135)
t_1
(if (<= a -4.25e-215) t_2 (if (<= a 3.9e+16) t_1 t_3)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * (k * -27.0)) + (b * c);
double t_2 = (b * c) - (x * (i * 4.0));
double t_3 = (b * c) - (t * (a * 4.0));
double tmp;
if (a <= -2.25e+95) {
tmp = t_3;
} else if (a <= -6.8e+44) {
tmp = t_2;
} else if (a <= -2.25e-135) {
tmp = t_1;
} else if (a <= -4.25e-215) {
tmp = t_2;
} else if (a <= 3.9e+16) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (j * (k * (-27.0d0))) + (b * c)
t_2 = (b * c) - (x * (i * 4.0d0))
t_3 = (b * c) - (t * (a * 4.0d0))
if (a <= (-2.25d+95)) then
tmp = t_3
else if (a <= (-6.8d+44)) then
tmp = t_2
else if (a <= (-2.25d-135)) then
tmp = t_1
else if (a <= (-4.25d-215)) then
tmp = t_2
else if (a <= 3.9d+16) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * (k * -27.0)) + (b * c);
double t_2 = (b * c) - (x * (i * 4.0));
double t_3 = (b * c) - (t * (a * 4.0));
double tmp;
if (a <= -2.25e+95) {
tmp = t_3;
} else if (a <= -6.8e+44) {
tmp = t_2;
} else if (a <= -2.25e-135) {
tmp = t_1;
} else if (a <= -4.25e-215) {
tmp = t_2;
} else if (a <= 3.9e+16) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * (k * -27.0)) + (b * c) t_2 = (b * c) - (x * (i * 4.0)) t_3 = (b * c) - (t * (a * 4.0)) tmp = 0 if a <= -2.25e+95: tmp = t_3 elif a <= -6.8e+44: tmp = t_2 elif a <= -2.25e-135: tmp = t_1 elif a <= -4.25e-215: tmp = t_2 elif a <= 3.9e+16: tmp = t_1 else: tmp = t_3 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * Float64(k * -27.0)) + Float64(b * c)) t_2 = Float64(Float64(b * c) - Float64(x * Float64(i * 4.0))) t_3 = Float64(Float64(b * c) - Float64(t * Float64(a * 4.0))) tmp = 0.0 if (a <= -2.25e+95) tmp = t_3; elseif (a <= -6.8e+44) tmp = t_2; elseif (a <= -2.25e-135) tmp = t_1; elseif (a <= -4.25e-215) tmp = t_2; elseif (a <= 3.9e+16) tmp = t_1; else tmp = t_3; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (j * (k * -27.0)) + (b * c);
t_2 = (b * c) - (x * (i * 4.0));
t_3 = (b * c) - (t * (a * 4.0));
tmp = 0.0;
if (a <= -2.25e+95)
tmp = t_3;
elseif (a <= -6.8e+44)
tmp = t_2;
elseif (a <= -2.25e-135)
tmp = t_1;
elseif (a <= -4.25e-215)
tmp = t_2;
elseif (a <= 3.9e+16)
tmp = t_1;
else
tmp = t_3;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * c), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b * c), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.25e+95], t$95$3, If[LessEqual[a, -6.8e+44], t$95$2, If[LessEqual[a, -2.25e-135], t$95$1, If[LessEqual[a, -4.25e-215], t$95$2, If[LessEqual[a, 3.9e+16], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right) + b \cdot c\\
t_2 := b \cdot c - x \cdot \left(i \cdot 4\right)\\
t_3 := b \cdot c - t \cdot \left(a \cdot 4\right)\\
\mathbf{if}\;a \leq -2.25 \cdot 10^{+95}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq -6.8 \cdot 10^{+44}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -2.25 \cdot 10^{-135}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4.25 \cdot 10^{-215}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if a < -2.25000000000000008e95 or 3.9e16 < a Initial program 85.1%
Taylor expanded in y around 0 80.2%
Taylor expanded in j around 0 69.8%
Taylor expanded in a around inf 60.2%
associate-*r*60.2%
*-commutative60.2%
Simplified60.2%
if -2.25000000000000008e95 < a < -6.8e44 or -2.24999999999999994e-135 < a < -4.2499999999999999e-215Initial program 85.8%
Taylor expanded in y around 0 83.3%
Taylor expanded in j around 0 75.3%
Taylor expanded in a around 0 71.1%
associate-*r*71.1%
Simplified71.1%
if -6.8e44 < a < -2.24999999999999994e-135 or -4.2499999999999999e-215 < a < 3.9e16Initial program 88.0%
Simplified88.1%
Taylor expanded in b around inf 52.3%
Final simplification57.9%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* k -27.0))) (t_2 (- (* b c) (* 4.0 (+ (* x i) (* t a))))))
(if (<= j -3.2e+154)
(+ t_1 (* 18.0 (* t (* z (* x y)))))
(if (<= j -1.8e+77)
t_2
(if (<= j -0.00036)
(+ t_1 (* 18.0 (* (* y z) (* t x))))
(if (<= j 5.8e-127) t_2 (+ 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 = j * (k * -27.0);
double t_2 = (b * c) - (4.0 * ((x * i) + (t * a)));
double tmp;
if (j <= -3.2e+154) {
tmp = t_1 + (18.0 * (t * (z * (x * y))));
} else if (j <= -1.8e+77) {
tmp = t_2;
} else if (j <= -0.00036) {
tmp = t_1 + (18.0 * ((y * z) * (t * x)));
} else if (j <= 5.8e-127) {
tmp = t_2;
} else {
tmp = t_1 + (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) :: t_2
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
t_2 = (b * c) - (4.0d0 * ((x * i) + (t * a)))
if (j <= (-3.2d+154)) then
tmp = t_1 + (18.0d0 * (t * (z * (x * y))))
else if (j <= (-1.8d+77)) then
tmp = t_2
else if (j <= (-0.00036d0)) then
tmp = t_1 + (18.0d0 * ((y * z) * (t * x)))
else if (j <= 5.8d-127) then
tmp = t_2
else
tmp = t_1 + (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 = j * (k * -27.0);
double t_2 = (b * c) - (4.0 * ((x * i) + (t * a)));
double tmp;
if (j <= -3.2e+154) {
tmp = t_1 + (18.0 * (t * (z * (x * y))));
} else if (j <= -1.8e+77) {
tmp = t_2;
} else if (j <= -0.00036) {
tmp = t_1 + (18.0 * ((y * z) * (t * x)));
} else if (j <= 5.8e-127) {
tmp = t_2;
} else {
tmp = t_1 + (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 = j * (k * -27.0) t_2 = (b * c) - (4.0 * ((x * i) + (t * a))) tmp = 0 if j <= -3.2e+154: tmp = t_1 + (18.0 * (t * (z * (x * y)))) elif j <= -1.8e+77: tmp = t_2 elif j <= -0.00036: tmp = t_1 + (18.0 * ((y * z) * (t * x))) elif j <= 5.8e-127: tmp = t_2 else: tmp = t_1 + (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(j * Float64(k * -27.0)) t_2 = Float64(Float64(b * c) - Float64(4.0 * Float64(Float64(x * i) + Float64(t * a)))) tmp = 0.0 if (j <= -3.2e+154) tmp = Float64(t_1 + Float64(18.0 * Float64(t * Float64(z * Float64(x * y))))); elseif (j <= -1.8e+77) tmp = t_2; elseif (j <= -0.00036) tmp = Float64(t_1 + Float64(18.0 * Float64(Float64(y * z) * Float64(t * x)))); elseif (j <= 5.8e-127) tmp = t_2; else tmp = Float64(t_1 + 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 = j * (k * -27.0);
t_2 = (b * c) - (4.0 * ((x * i) + (t * a)));
tmp = 0.0;
if (j <= -3.2e+154)
tmp = t_1 + (18.0 * (t * (z * (x * y))));
elseif (j <= -1.8e+77)
tmp = t_2;
elseif (j <= -0.00036)
tmp = t_1 + (18.0 * ((y * z) * (t * x)));
elseif (j <= 5.8e-127)
tmp = t_2;
else
tmp = t_1 + (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[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.2e+154], N[(t$95$1 + N[(18.0 * N[(t * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.8e+77], t$95$2, If[LessEqual[j, -0.00036], N[(t$95$1 + N[(18.0 * N[(N[(y * z), $MachinePrecision] * N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.8e-127], t$95$2, N[(t$95$1 + N[(b * c), $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 := j \cdot \left(k \cdot -27\right)\\
t_2 := b \cdot c - 4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{if}\;j \leq -3.2 \cdot 10^{+154}:\\
\;\;\;\;t\_1 + 18 \cdot \left(t \cdot \left(z \cdot \left(x \cdot y\right)\right)\right)\\
\mathbf{elif}\;j \leq -1.8 \cdot 10^{+77}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -0.00036:\\
\;\;\;\;t\_1 + 18 \cdot \left(\left(y \cdot z\right) \cdot \left(t \cdot x\right)\right)\\
\mathbf{elif}\;j \leq 5.8 \cdot 10^{-127}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1 + b \cdot c\\
\end{array}
\end{array}
if j < -3.2e154Initial program 90.6%
Simplified87.8%
Taylor expanded in y around inf 62.4%
pow162.4%
Applied egg-rr62.4%
unpow162.4%
associate-*r*65.4%
Simplified65.4%
if -3.2e154 < j < -1.7999999999999999e77 or -3.60000000000000023e-4 < j < 5.8000000000000001e-127Initial program 85.4%
Taylor expanded in y around 0 72.4%
Taylor expanded in j around 0 63.6%
+-commutative63.6%
associate-*r*63.6%
*-commutative63.6%
fma-define63.6%
associate-*r*63.6%
*-commutative63.6%
Applied egg-rr63.6%
fma-undefine63.6%
*-commutative63.6%
associate-*r*63.6%
*-commutative63.6%
*-commutative63.6%
*-commutative63.6%
associate-*r*63.6%
distribute-lft-out63.6%
*-commutative63.6%
*-commutative63.6%
Simplified63.6%
if -1.7999999999999999e77 < j < -3.60000000000000023e-4Initial program 92.5%
Simplified92.7%
Taylor expanded in y around inf 75.9%
associate-*r*83.1%
Simplified83.1%
if 5.8000000000000001e-127 < j Initial program 86.0%
Simplified89.3%
Taylor expanded in b around inf 51.4%
Final simplification60.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 (* z (* x y)))
(t_2 (* j (* k -27.0)))
(t_3 (- (* b c) (* 4.0 (+ (* x i) (* t a))))))
(if (<= j -5e+155)
(+ t_2 (* 18.0 (* t t_1)))
(if (<= j -5.5e+61)
t_3
(if (<= j -1800000.0)
(* t (- (* a (- 4.0)) (* t_1 -18.0)))
(if (<= j 5.8e-127) t_3 (+ t_2 (* b c))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = z * (x * y);
double t_2 = j * (k * -27.0);
double t_3 = (b * c) - (4.0 * ((x * i) + (t * a)));
double tmp;
if (j <= -5e+155) {
tmp = t_2 + (18.0 * (t * t_1));
} else if (j <= -5.5e+61) {
tmp = t_3;
} else if (j <= -1800000.0) {
tmp = t * ((a * -4.0) - (t_1 * -18.0));
} else if (j <= 5.8e-127) {
tmp = t_3;
} else {
tmp = t_2 + (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) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = z * (x * y)
t_2 = j * (k * (-27.0d0))
t_3 = (b * c) - (4.0d0 * ((x * i) + (t * a)))
if (j <= (-5d+155)) then
tmp = t_2 + (18.0d0 * (t * t_1))
else if (j <= (-5.5d+61)) then
tmp = t_3
else if (j <= (-1800000.0d0)) then
tmp = t * ((a * -4.0d0) - (t_1 * (-18.0d0)))
else if (j <= 5.8d-127) then
tmp = t_3
else
tmp = t_2 + (b * c)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = z * (x * y);
double t_2 = j * (k * -27.0);
double t_3 = (b * c) - (4.0 * ((x * i) + (t * a)));
double tmp;
if (j <= -5e+155) {
tmp = t_2 + (18.0 * (t * t_1));
} else if (j <= -5.5e+61) {
tmp = t_3;
} else if (j <= -1800000.0) {
tmp = t * ((a * -4.0) - (t_1 * -18.0));
} else if (j <= 5.8e-127) {
tmp = t_3;
} else {
tmp = t_2 + (b * c);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = z * (x * y) t_2 = j * (k * -27.0) t_3 = (b * c) - (4.0 * ((x * i) + (t * a))) tmp = 0 if j <= -5e+155: tmp = t_2 + (18.0 * (t * t_1)) elif j <= -5.5e+61: tmp = t_3 elif j <= -1800000.0: tmp = t * ((a * -4.0) - (t_1 * -18.0)) elif j <= 5.8e-127: tmp = t_3 else: tmp = t_2 + (b * c) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(z * Float64(x * y)) t_2 = Float64(j * Float64(k * -27.0)) t_3 = Float64(Float64(b * c) - Float64(4.0 * Float64(Float64(x * i) + Float64(t * a)))) tmp = 0.0 if (j <= -5e+155) tmp = Float64(t_2 + Float64(18.0 * Float64(t * t_1))); elseif (j <= -5.5e+61) tmp = t_3; elseif (j <= -1800000.0) tmp = Float64(t * Float64(Float64(a * Float64(-4.0)) - Float64(t_1 * -18.0))); elseif (j <= 5.8e-127) tmp = t_3; else tmp = Float64(t_2 + Float64(b * c)); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = z * (x * y);
t_2 = j * (k * -27.0);
t_3 = (b * c) - (4.0 * ((x * i) + (t * a)));
tmp = 0.0;
if (j <= -5e+155)
tmp = t_2 + (18.0 * (t * t_1));
elseif (j <= -5.5e+61)
tmp = t_3;
elseif (j <= -1800000.0)
tmp = t * ((a * -4.0) - (t_1 * -18.0));
elseif (j <= 5.8e-127)
tmp = t_3;
else
tmp = t_2 + (b * c);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -5e+155], N[(t$95$2 + N[(18.0 * N[(t * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5.5e+61], t$95$3, If[LessEqual[j, -1800000.0], N[(t * N[(N[(a * (-4.0)), $MachinePrecision] - N[(t$95$1 * -18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.8e-127], t$95$3, N[(t$95$2 + N[(b * c), $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 := z \cdot \left(x \cdot y\right)\\
t_2 := j \cdot \left(k \cdot -27\right)\\
t_3 := b \cdot c - 4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{if}\;j \leq -5 \cdot 10^{+155}:\\
\;\;\;\;t\_2 + 18 \cdot \left(t \cdot t\_1\right)\\
\mathbf{elif}\;j \leq -5.5 \cdot 10^{+61}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq -1800000:\\
\;\;\;\;t \cdot \left(a \cdot \left(-4\right) - t\_1 \cdot -18\right)\\
\mathbf{elif}\;j \leq 5.8 \cdot 10^{-127}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2 + b \cdot c\\
\end{array}
\end{array}
if j < -4.9999999999999999e155Initial program 90.6%
Simplified87.8%
Taylor expanded in y around inf 62.4%
pow162.4%
Applied egg-rr62.4%
unpow162.4%
associate-*r*65.4%
Simplified65.4%
if -4.9999999999999999e155 < j < -5.50000000000000036e61 or -1.8e6 < j < 5.8000000000000001e-127Initial program 86.0%
Taylor expanded in y around 0 72.8%
Taylor expanded in j around 0 62.0%
+-commutative62.0%
associate-*r*62.0%
*-commutative62.0%
fma-define62.0%
associate-*r*62.0%
*-commutative62.0%
Applied egg-rr62.0%
fma-undefine62.0%
*-commutative62.0%
associate-*r*62.0%
*-commutative62.0%
*-commutative62.0%
*-commutative62.0%
associate-*r*62.0%
distribute-lft-out62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
if -5.50000000000000036e61 < j < -1.8e6Initial program 88.0%
Simplified88.2%
associate-*r*88.2%
distribute-rgt-out--88.2%
associate-*l*88.0%
*-commutative88.0%
*-commutative88.0%
Applied egg-rr88.0%
Taylor expanded in t around -inf 51.1%
associate-*r*51.1%
neg-mul-151.1%
cancel-sign-sub-inv51.1%
metadata-eval51.1%
*-commutative51.1%
associate-*r*51.3%
Simplified51.3%
if 5.8000000000000001e-127 < j Initial program 86.0%
Simplified89.3%
Taylor expanded in b around inf 51.4%
Final simplification58.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 (* j (* k -27.0))) (t_2 (- (* b c) (* 4.0 (+ (* x i) (* t a))))))
(if (<= j -3e+155)
(+ t_1 (* 18.0 (* t (* x (* y z)))))
(if (<= j -2.75e+54)
t_2
(if (<= j -6000.0)
(* t (- (* a (- 4.0)) (* (* z (* x y)) -18.0)))
(if (<= j 5.8e-127) t_2 (+ 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 = j * (k * -27.0);
double t_2 = (b * c) - (4.0 * ((x * i) + (t * a)));
double tmp;
if (j <= -3e+155) {
tmp = t_1 + (18.0 * (t * (x * (y * z))));
} else if (j <= -2.75e+54) {
tmp = t_2;
} else if (j <= -6000.0) {
tmp = t * ((a * -4.0) - ((z * (x * y)) * -18.0));
} else if (j <= 5.8e-127) {
tmp = t_2;
} else {
tmp = t_1 + (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) :: t_2
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
t_2 = (b * c) - (4.0d0 * ((x * i) + (t * a)))
if (j <= (-3d+155)) then
tmp = t_1 + (18.0d0 * (t * (x * (y * z))))
else if (j <= (-2.75d+54)) then
tmp = t_2
else if (j <= (-6000.0d0)) then
tmp = t * ((a * -4.0d0) - ((z * (x * y)) * (-18.0d0)))
else if (j <= 5.8d-127) then
tmp = t_2
else
tmp = t_1 + (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 = j * (k * -27.0);
double t_2 = (b * c) - (4.0 * ((x * i) + (t * a)));
double tmp;
if (j <= -3e+155) {
tmp = t_1 + (18.0 * (t * (x * (y * z))));
} else if (j <= -2.75e+54) {
tmp = t_2;
} else if (j <= -6000.0) {
tmp = t * ((a * -4.0) - ((z * (x * y)) * -18.0));
} else if (j <= 5.8e-127) {
tmp = t_2;
} else {
tmp = t_1 + (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 = j * (k * -27.0) t_2 = (b * c) - (4.0 * ((x * i) + (t * a))) tmp = 0 if j <= -3e+155: tmp = t_1 + (18.0 * (t * (x * (y * z)))) elif j <= -2.75e+54: tmp = t_2 elif j <= -6000.0: tmp = t * ((a * -4.0) - ((z * (x * y)) * -18.0)) elif j <= 5.8e-127: tmp = t_2 else: tmp = t_1 + (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(j * Float64(k * -27.0)) t_2 = Float64(Float64(b * c) - Float64(4.0 * Float64(Float64(x * i) + Float64(t * a)))) tmp = 0.0 if (j <= -3e+155) tmp = Float64(t_1 + Float64(18.0 * Float64(t * Float64(x * Float64(y * z))))); elseif (j <= -2.75e+54) tmp = t_2; elseif (j <= -6000.0) tmp = Float64(t * Float64(Float64(a * Float64(-4.0)) - Float64(Float64(z * Float64(x * y)) * -18.0))); elseif (j <= 5.8e-127) tmp = t_2; else tmp = Float64(t_1 + 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 = j * (k * -27.0);
t_2 = (b * c) - (4.0 * ((x * i) + (t * a)));
tmp = 0.0;
if (j <= -3e+155)
tmp = t_1 + (18.0 * (t * (x * (y * z))));
elseif (j <= -2.75e+54)
tmp = t_2;
elseif (j <= -6000.0)
tmp = t * ((a * -4.0) - ((z * (x * y)) * -18.0));
elseif (j <= 5.8e-127)
tmp = t_2;
else
tmp = t_1 + (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[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3e+155], N[(t$95$1 + N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.75e+54], t$95$2, If[LessEqual[j, -6000.0], N[(t * N[(N[(a * (-4.0)), $MachinePrecision] - N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] * -18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.8e-127], t$95$2, N[(t$95$1 + N[(b * c), $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 := j \cdot \left(k \cdot -27\right)\\
t_2 := b \cdot c - 4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{if}\;j \leq -3 \cdot 10^{+155}:\\
\;\;\;\;t\_1 + 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;j \leq -2.75 \cdot 10^{+54}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -6000:\\
\;\;\;\;t \cdot \left(a \cdot \left(-4\right) - \left(z \cdot \left(x \cdot y\right)\right) \cdot -18\right)\\
\mathbf{elif}\;j \leq 5.8 \cdot 10^{-127}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1 + b \cdot c\\
\end{array}
\end{array}
if j < -3.0000000000000001e155Initial program 90.6%
Simplified87.8%
Taylor expanded in y around inf 62.4%
if -3.0000000000000001e155 < j < -2.75000000000000013e54 or -6e3 < j < 5.8000000000000001e-127Initial program 86.0%
Taylor expanded in y around 0 72.8%
Taylor expanded in j around 0 62.0%
+-commutative62.0%
associate-*r*62.0%
*-commutative62.0%
fma-define62.0%
associate-*r*62.0%
*-commutative62.0%
Applied egg-rr62.0%
fma-undefine62.0%
*-commutative62.0%
associate-*r*62.0%
*-commutative62.0%
*-commutative62.0%
*-commutative62.0%
associate-*r*62.0%
distribute-lft-out62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
if -2.75000000000000013e54 < j < -6e3Initial program 88.0%
Simplified88.2%
associate-*r*88.2%
distribute-rgt-out--88.2%
associate-*l*88.0%
*-commutative88.0%
*-commutative88.0%
Applied egg-rr88.0%
Taylor expanded in t around -inf 51.1%
associate-*r*51.1%
neg-mul-151.1%
cancel-sign-sub-inv51.1%
metadata-eval51.1%
*-commutative51.1%
associate-*r*51.3%
Simplified51.3%
if 5.8000000000000001e-127 < j Initial program 86.0%
Simplified89.3%
Taylor expanded in b around inf 51.4%
Final simplification57.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 (<= (* b c) -0.085)
(- (* b c) (* x (* i 4.0)))
(if (or (<= (* b c) -4.2e-126) (not (<= (* b c) 8e+96)))
(- (* b c) (* t (* a 4.0)))
(+ (* j (* k -27.0)) (* i (* x -4.0))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -0.085) {
tmp = (b * c) - (x * (i * 4.0));
} else if (((b * c) <= -4.2e-126) || !((b * c) <= 8e+96)) {
tmp = (b * c) - (t * (a * 4.0));
} else {
tmp = (j * (k * -27.0)) + (i * (x * -4.0));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((b * c) <= (-0.085d0)) then
tmp = (b * c) - (x * (i * 4.0d0))
else if (((b * c) <= (-4.2d-126)) .or. (.not. ((b * c) <= 8d+96))) then
tmp = (b * c) - (t * (a * 4.0d0))
else
tmp = (j * (k * (-27.0d0))) + (i * (x * (-4.0d0)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -0.085) {
tmp = (b * c) - (x * (i * 4.0));
} else if (((b * c) <= -4.2e-126) || !((b * c) <= 8e+96)) {
tmp = (b * c) - (t * (a * 4.0));
} else {
tmp = (j * (k * -27.0)) + (i * (x * -4.0));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (b * c) <= -0.085: tmp = (b * c) - (x * (i * 4.0)) elif ((b * c) <= -4.2e-126) or not ((b * c) <= 8e+96): tmp = (b * c) - (t * (a * 4.0)) else: tmp = (j * (k * -27.0)) + (i * (x * -4.0)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(b * c) <= -0.085) tmp = Float64(Float64(b * c) - Float64(x * Float64(i * 4.0))); elseif ((Float64(b * c) <= -4.2e-126) || !(Float64(b * c) <= 8e+96)) tmp = Float64(Float64(b * c) - Float64(t * Float64(a * 4.0))); else tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(i * Float64(x * -4.0))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((b * c) <= -0.085)
tmp = (b * c) - (x * (i * 4.0));
elseif (((b * c) <= -4.2e-126) || ~(((b * c) <= 8e+96)))
tmp = (b * c) - (t * (a * 4.0));
else
tmp = (j * (k * -27.0)) + (i * (x * -4.0));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(b * c), $MachinePrecision], -0.085], N[(N[(b * c), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[N[(b * c), $MachinePrecision], -4.2e-126], N[Not[LessEqual[N[(b * c), $MachinePrecision], 8e+96]], $MachinePrecision]], N[(N[(b * c), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(i * N[(x * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -0.085:\\
\;\;\;\;b \cdot c - x \cdot \left(i \cdot 4\right)\\
\mathbf{elif}\;b \cdot c \leq -4.2 \cdot 10^{-126} \lor \neg \left(b \cdot c \leq 8 \cdot 10^{+96}\right):\\
\;\;\;\;b \cdot c - t \cdot \left(a \cdot 4\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + i \cdot \left(x \cdot -4\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -0.0850000000000000061Initial program 82.7%
Taylor expanded in y around 0 74.3%
Taylor expanded in j around 0 66.8%
Taylor expanded in a around 0 59.6%
associate-*r*59.6%
Simplified59.6%
if -0.0850000000000000061 < (*.f64 b c) < -4.1999999999999997e-126 or 8.0000000000000004e96 < (*.f64 b c) Initial program 84.3%
Taylor expanded in y around 0 68.3%
Taylor expanded in j around 0 60.6%
Taylor expanded in a around inf 53.3%
associate-*r*53.3%
*-commutative53.3%
Simplified53.3%
if -4.1999999999999997e-126 < (*.f64 b c) < 8.0000000000000004e96Initial program 89.9%
Simplified93.8%
Taylor expanded in i around inf 54.5%
associate-*r*54.5%
*-commutative54.5%
associate-*r*54.5%
*-commutative54.5%
*-commutative54.5%
Simplified54.5%
Final simplification55.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 (if (or (<= t -3.7e+126) (not (<= t 4.3e-79))) (+ (* j (* k -27.0)) (* t (+ (* 18.0 (* x (* y z))) (* a -4.0)))) (- (- (* b c) (+ (* 4.0 (* t a)) (* 4.0 (* x i)))) (* k (* j 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 <= -3.7e+126) || !(t <= 4.3e-79)) {
tmp = (j * (k * -27.0)) + (t * ((18.0 * (x * (y * z))) + (a * -4.0)));
} else {
tmp = ((b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)))) - (k * (j * 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 <= (-3.7d+126)) .or. (.not. (t <= 4.3d-79))) then
tmp = (j * (k * (-27.0d0))) + (t * ((18.0d0 * (x * (y * z))) + (a * (-4.0d0))))
else
tmp = ((b * c) - ((4.0d0 * (t * a)) + (4.0d0 * (x * i)))) - (k * (j * 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 <= -3.7e+126) || !(t <= 4.3e-79)) {
tmp = (j * (k * -27.0)) + (t * ((18.0 * (x * (y * z))) + (a * -4.0)));
} else {
tmp = ((b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)))) - (k * (j * 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 <= -3.7e+126) or not (t <= 4.3e-79): tmp = (j * (k * -27.0)) + (t * ((18.0 * (x * (y * z))) + (a * -4.0))) else: tmp = ((b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)))) - (k * (j * 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 <= -3.7e+126) || !(t <= 4.3e-79)) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) + Float64(a * -4.0)))); else tmp = Float64(Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(t * a)) + Float64(4.0 * Float64(x * i)))) - Float64(k * Float64(j * 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 <= -3.7e+126) || ~((t <= 4.3e-79)))
tmp = (j * (k * -27.0)) + (t * ((18.0 * (x * (y * z))) + (a * -4.0)));
else
tmp = ((b * c) - ((4.0 * (t * a)) + (4.0 * (x * i)))) - (k * (j * 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, -3.7e+126], N[Not[LessEqual[t, 4.3e-79]], $MachinePrecision]], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 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 -3.7 \cdot 10^{+126} \lor \neg \left(t \leq 4.3 \cdot 10^{-79}\right):\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + a \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - \left(4 \cdot \left(t \cdot a\right) + 4 \cdot \left(x \cdot i\right)\right)\right) - k \cdot \left(j \cdot 27\right)\\
\end{array}
\end{array}
if t < -3.6999999999999998e126 or 4.29999999999999982e-79 < t Initial program 87.3%
Simplified92.4%
Taylor expanded in t around inf 86.7%
if -3.6999999999999998e126 < t < 4.29999999999999982e-79Initial program 86.0%
Taylor expanded in y around 0 85.1%
Final simplification85.8%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* b c) (* t (* a 4.0)))))
(if (<= a -2.2e+95)
t_1
(if (<= a -5.2e+46)
(* -4.0 (* x i))
(if (<= a 3.3e+17) (+ (* j (* k -27.0)) (* b c)) t_1)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (t * (a * 4.0));
double tmp;
if (a <= -2.2e+95) {
tmp = t_1;
} else if (a <= -5.2e+46) {
tmp = -4.0 * (x * i);
} else if (a <= 3.3e+17) {
tmp = (j * (k * -27.0)) + (b * c);
} 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 = (b * c) - (t * (a * 4.0d0))
if (a <= (-2.2d+95)) then
tmp = t_1
else if (a <= (-5.2d+46)) then
tmp = (-4.0d0) * (x * i)
else if (a <= 3.3d+17) then
tmp = (j * (k * (-27.0d0))) + (b * c)
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 = (b * c) - (t * (a * 4.0));
double tmp;
if (a <= -2.2e+95) {
tmp = t_1;
} else if (a <= -5.2e+46) {
tmp = -4.0 * (x * i);
} else if (a <= 3.3e+17) {
tmp = (j * (k * -27.0)) + (b * c);
} 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 = (b * c) - (t * (a * 4.0)) tmp = 0 if a <= -2.2e+95: tmp = t_1 elif a <= -5.2e+46: tmp = -4.0 * (x * i) elif a <= 3.3e+17: tmp = (j * (k * -27.0)) + (b * c) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) - Float64(t * Float64(a * 4.0))) tmp = 0.0 if (a <= -2.2e+95) tmp = t_1; elseif (a <= -5.2e+46) tmp = Float64(-4.0 * Float64(x * i)); elseif (a <= 3.3e+17) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(b * c)); 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 = (b * c) - (t * (a * 4.0));
tmp = 0.0;
if (a <= -2.2e+95)
tmp = t_1;
elseif (a <= -5.2e+46)
tmp = -4.0 * (x * i);
elseif (a <= 3.3e+17)
tmp = (j * (k * -27.0)) + (b * c);
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.2e+95], t$95$1, If[LessEqual[a, -5.2e+46], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.3e+17], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $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 := b \cdot c - t \cdot \left(a \cdot 4\right)\\
\mathbf{if}\;a \leq -2.2 \cdot 10^{+95}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -5.2 \cdot 10^{+46}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{+17}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + b \cdot c\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.1999999999999999e95 or 3.3e17 < a Initial program 85.1%
Taylor expanded in y around 0 80.2%
Taylor expanded in j around 0 69.8%
Taylor expanded in a around inf 60.2%
associate-*r*60.2%
*-commutative60.2%
Simplified60.2%
if -2.1999999999999999e95 < a < -5.20000000000000027e46Initial program 82.1%
Simplified82.1%
associate-*r*82.1%
distribute-rgt-out--82.1%
sub-neg82.1%
associate-*l*90.8%
*-commutative90.8%
*-commutative90.8%
Applied egg-rr90.8%
distribute-lft-neg-in90.8%
*-commutative90.8%
cancel-sign-sub-inv90.8%
*-commutative90.8%
associate-*r*82.1%
distribute-rgt-out--82.1%
associate-*r*82.1%
*-commutative82.1%
*-commutative82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in i around inf 63.0%
*-commutative63.0%
Simplified63.0%
if -5.20000000000000027e46 < a < 3.3e17Initial program 87.9%
Simplified88.1%
Taylor expanded in b around inf 49.9%
Final simplification54.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 (<= a -5.8e+118) (not (<= a 1.7e+122))) (* t (* a -4.0)) (+ (* j (* k -27.0)) (* b c))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
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 ((a <= -5.8e+118) || !(a <= 1.7e+122)) {
tmp = t * (a * -4.0);
} else {
tmp = (j * (k * -27.0)) + (b * c);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((a <= (-5.8d+118)) .or. (.not. (a <= 1.7d+122))) then
tmp = t * (a * (-4.0d0))
else
tmp = (j * (k * (-27.0d0))) + (b * c)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((a <= -5.8e+118) || !(a <= 1.7e+122)) {
tmp = t * (a * -4.0);
} else {
tmp = (j * (k * -27.0)) + (b * c);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (a <= -5.8e+118) or not (a <= 1.7e+122): tmp = t * (a * -4.0) else: tmp = (j * (k * -27.0)) + (b * c) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((a <= -5.8e+118) || !(a <= 1.7e+122)) tmp = Float64(t * Float64(a * -4.0)); else tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(b * c)); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((a <= -5.8e+118) || ~((a <= 1.7e+122)))
tmp = t * (a * -4.0);
else
tmp = (j * (k * -27.0)) + (b * c);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[a, -5.8e+118], N[Not[LessEqual[a, 1.7e+122]], $MachinePrecision]], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $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}\;a \leq -5.8 \cdot 10^{+118} \lor \neg \left(a \leq 1.7 \cdot 10^{+122}\right):\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + b \cdot c\\
\end{array}
\end{array}
if a < -5.80000000000000032e118 or 1.7e122 < a Initial program 83.6%
Simplified87.3%
associate-*r*88.8%
distribute-rgt-out--83.6%
associate-*l*83.3%
*-commutative83.3%
*-commutative83.3%
Applied egg-rr83.3%
Taylor expanded in a around inf 54.4%
*-commutative54.4%
*-commutative54.4%
associate-*r*54.4%
Simplified54.4%
if -5.80000000000000032e118 < a < 1.7e122Initial program 87.9%
Simplified88.5%
Taylor expanded in b around inf 47.0%
Final simplification49.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= (* b c) -0.0235) (not (<= (* b c) 1.8e+103))) (* 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 (((b * c) <= -0.0235) || !((b * c) <= 1.8e+103)) {
tmp = b * c;
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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) <= (-0.0235d0)) .or. (.not. ((b * c) <= 1.8d+103))) then
tmp = b * c
else
tmp = j * (k * (-27.0d0))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
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) <= -0.0235) || !((b * c) <= 1.8e+103)) {
tmp = b * c;
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [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) <= -0.0235) or not ((b * c) <= 1.8e+103): tmp = b * c else: tmp = j * (k * -27.0) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) 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) <= -0.0235) || !(Float64(b * c) <= 1.8e+103)) tmp = Float64(b * c); else tmp = 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 (((b * c) <= -0.0235) || ~(((b * c) <= 1.8e+103)))
tmp = b * c;
else
tmp = j * (k * -27.0);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. 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], -0.0235], N[Not[LessEqual[N[(b * c), $MachinePrecision], 1.8e+103]], $MachinePrecision]], N[(b * c), $MachinePrecision], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[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 -0.0235 \lor \neg \left(b \cdot c \leq 1.8 \cdot 10^{+103}\right):\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -0.0235 or 1.80000000000000008e103 < (*.f64 b c) Initial program 81.9%
Simplified81.0%
associate-*r*84.6%
distribute-rgt-out--81.9%
sub-neg81.9%
associate-*l*81.6%
*-commutative81.6%
*-commutative81.6%
Applied egg-rr81.6%
distribute-lft-neg-in81.6%
*-commutative81.6%
cancel-sign-sub-inv81.6%
*-commutative81.6%
associate-*r*81.9%
distribute-rgt-out--84.6%
associate-*r*84.6%
*-commutative84.6%
*-commutative84.6%
*-commutative84.6%
Simplified84.6%
Taylor expanded in b around inf 45.8%
if -0.0235 < (*.f64 b c) < 1.80000000000000008e103Initial program 90.1%
Simplified93.4%
associate-*r*91.5%
distribute-rgt-out--90.1%
sub-neg90.1%
associate-*l*87.3%
*-commutative87.3%
*-commutative87.3%
Applied egg-rr87.3%
distribute-lft-neg-in87.3%
*-commutative87.3%
cancel-sign-sub-inv87.3%
*-commutative87.3%
associate-*r*90.1%
distribute-rgt-out--91.5%
associate-*r*91.5%
*-commutative91.5%
*-commutative91.5%
*-commutative91.5%
Simplified91.5%
Taylor expanded in j around inf 32.0%
metadata-eval32.0%
distribute-lft-neg-in32.0%
associate-*r*32.0%
*-commutative32.0%
associate-*r*32.0%
distribute-rgt-neg-in32.0%
distribute-lft-neg-in32.0%
metadata-eval32.0%
*-commutative32.0%
Simplified32.0%
Final simplification37.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 (or (<= (* b c) -0.0235) (not (<= (* b c) 5.9e+102))) (* 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) <= -0.0235) || !((b * c) <= 5.9e+102)) {
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) <= (-0.0235d0)) .or. (.not. ((b * c) <= 5.9d+102))) 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) <= -0.0235) || !((b * c) <= 5.9e+102)) {
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) <= -0.0235) or not ((b * c) <= 5.9e+102): 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) <= -0.0235) || !(Float64(b * c) <= 5.9e+102)) 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) <= -0.0235) || ~(((b * c) <= 5.9e+102)))
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], -0.0235], N[Not[LessEqual[N[(b * c), $MachinePrecision], 5.9e+102]], $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 -0.0235 \lor \neg \left(b \cdot c \leq 5.9 \cdot 10^{+102}\right):\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -0.0235 or 5.90000000000000005e102 < (*.f64 b c) Initial program 81.9%
Simplified81.0%
associate-*r*84.6%
distribute-rgt-out--81.9%
sub-neg81.9%
associate-*l*81.6%
*-commutative81.6%
*-commutative81.6%
Applied egg-rr81.6%
distribute-lft-neg-in81.6%
*-commutative81.6%
cancel-sign-sub-inv81.6%
*-commutative81.6%
associate-*r*81.9%
distribute-rgt-out--84.6%
associate-*r*84.6%
*-commutative84.6%
*-commutative84.6%
*-commutative84.6%
Simplified84.6%
Taylor expanded in b around inf 45.8%
if -0.0235 < (*.f64 b c) < 5.90000000000000005e102Initial program 90.1%
Simplified93.4%
Taylor expanded in j around inf 32.0%
Final simplification37.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 (* 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.6%
Simplified88.2%
associate-*r*88.6%
distribute-rgt-out--86.6%
sub-neg86.6%
associate-*l*84.9%
*-commutative84.9%
*-commutative84.9%
Applied egg-rr84.9%
distribute-lft-neg-in84.9%
*-commutative84.9%
cancel-sign-sub-inv84.9%
*-commutative84.9%
associate-*r*86.6%
distribute-rgt-out--88.6%
associate-*r*88.6%
*-commutative88.6%
*-commutative88.6%
*-commutative88.6%
Simplified88.6%
Taylor expanded in b around inf 21.1%
(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 2024092
(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)))