
(FPCore (x y z t a b c i j k) :precision binary64 (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
def code(x, y, z, t, a, b, c, i, j, k): return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k) :precision binary64 (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
def code(x, y, z, t, a, b, c, i, j, k): return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\end{array}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* x 4.0) i)) (t_2 (* (* j 27.0) k)) (t_3 (* t (* a 4.0))))
(if (<=
(- (- (+ (- (* (* (* (* x 18.0) y) z) t) t_3) (* b c)) t_1) t_2)
INFINITY)
(- (- (+ (* b c) (- (* t (* y (* (* x 18.0) z))) t_3)) t_1) t_2)
(* x (- (- (* -27.0 (/ (* j k) x)) (* z (* y (* t -18.0)))) (* i 4.0))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (x * 4.0) * i;
double t_2 = (j * 27.0) * k;
double t_3 = t * (a * 4.0);
double tmp;
if (((((((((x * 18.0) * y) * z) * t) - t_3) + (b * c)) - t_1) - t_2) <= ((double) INFINITY)) {
tmp = (((b * c) + ((t * (y * ((x * 18.0) * z))) - t_3)) - t_1) - t_2;
} else {
tmp = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0));
}
return tmp;
}
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (x * 4.0) * i;
double t_2 = (j * 27.0) * k;
double t_3 = t * (a * 4.0);
double tmp;
if (((((((((x * 18.0) * y) * z) * t) - t_3) + (b * c)) - t_1) - t_2) <= Double.POSITIVE_INFINITY) {
tmp = (((b * c) + ((t * (y * ((x * 18.0) * z))) - t_3)) - t_1) - t_2;
} else {
tmp = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (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]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (x * 4.0) * i t_2 = (j * 27.0) * k t_3 = t * (a * 4.0) tmp = 0 if ((((((((x * 18.0) * y) * z) * t) - t_3) + (b * c)) - t_1) - t_2) <= math.inf: tmp = (((b * c) + ((t * (y * ((x * 18.0) * z))) - t_3)) - t_1) - t_2 else: tmp = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (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]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(x * 4.0) * i) t_2 = Float64(Float64(j * 27.0) * k) t_3 = Float64(t * Float64(a * 4.0)) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - t_3) + Float64(b * c)) - t_1) - t_2) <= Inf) tmp = Float64(Float64(Float64(Float64(b * c) + Float64(Float64(t * Float64(y * Float64(Float64(x * 18.0) * z))) - t_3)) - t_1) - t_2); else tmp = Float64(x * Float64(Float64(Float64(-27.0 * Float64(Float64(j * k) / x)) - Float64(z * Float64(y * Float64(t * -18.0)))) - 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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (x * 4.0) * i;
t_2 = (j * 27.0) * k;
t_3 = t * (a * 4.0);
tmp = 0.0;
if (((((((((x * 18.0) * y) * z) * t) - t_3) + (b * c)) - t_1) - t_2) <= Inf)
tmp = (((b * c) + ((t * (y * ((x * 18.0) * z))) - t_3)) - t_1) - t_2;
else
tmp = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (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.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - t$95$3), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], Infinity], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(N[(t * N[(y * N[(N[(x * 18.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$3), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], N[(x * N[(N[(N[(-27.0 * N[(N[(j * k), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] - N[(z * N[(y * N[(t * -18.0), $MachinePrecision]), $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])\\
\\
\begin{array}{l}
t_1 := \left(x \cdot 4\right) \cdot i\\
t_2 := \left(j \cdot 27\right) \cdot k\\
t_3 := t \cdot \left(a \cdot 4\right)\\
\mathbf{if}\;\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t\_3\right) + b \cdot c\right) - t\_1\right) - t\_2 \leq \infty:\\
\;\;\;\;\left(\left(b \cdot c + \left(t \cdot \left(y \cdot \left(\left(x \cdot 18\right) \cdot z\right)\right) - t\_3\right)\right) - t\_1\right) - t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\left(-27 \cdot \frac{j \cdot k}{x} - z \cdot \left(y \cdot \left(t \cdot -18\right)\right)\right) - i \cdot 4\right)\\
\end{array}
\end{array}
if (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) < +inf.0Initial program 97.4%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6495.3%
Applied egg-rr95.3%
if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) Initial program 0.0%
Taylor expanded in x around -inf
Simplified48.0%
Taylor expanded in j around inf
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6476.0%
Simplified76.0%
Final simplification93.4%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* x (+ (* t (* 18.0 (* y z))) (* i -4.0)))))
(if (<= (* j 27.0) -1e+157)
(- (* b c) (* (* j 27.0) k))
(if (<= (* j 27.0) -1e-53)
t_1
(if (<= (* j 27.0) 5e-196)
(+ (* b c) (* -4.0 (* t a)))
(if (<= (* j 27.0) 1e-78)
t_1
(* t (+ (* a -4.0) (/ (* j (* k -27.0)) t)))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * ((t * (18.0 * (y * z))) + (i * -4.0));
double tmp;
if ((j * 27.0) <= -1e+157) {
tmp = (b * c) - ((j * 27.0) * k);
} else if ((j * 27.0) <= -1e-53) {
tmp = t_1;
} else if ((j * 27.0) <= 5e-196) {
tmp = (b * c) + (-4.0 * (t * a));
} else if ((j * 27.0) <= 1e-78) {
tmp = t_1;
} else {
tmp = t * ((a * -4.0) + ((j * (k * -27.0)) / t));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((t * (18.0d0 * (y * z))) + (i * (-4.0d0)))
if ((j * 27.0d0) <= (-1d+157)) then
tmp = (b * c) - ((j * 27.0d0) * k)
else if ((j * 27.0d0) <= (-1d-53)) then
tmp = t_1
else if ((j * 27.0d0) <= 5d-196) then
tmp = (b * c) + ((-4.0d0) * (t * a))
else if ((j * 27.0d0) <= 1d-78) then
tmp = t_1
else
tmp = t * ((a * (-4.0d0)) + ((j * (k * (-27.0d0))) / t))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * ((t * (18.0 * (y * z))) + (i * -4.0));
double tmp;
if ((j * 27.0) <= -1e+157) {
tmp = (b * c) - ((j * 27.0) * k);
} else if ((j * 27.0) <= -1e-53) {
tmp = t_1;
} else if ((j * 27.0) <= 5e-196) {
tmp = (b * c) + (-4.0 * (t * a));
} else if ((j * 27.0) <= 1e-78) {
tmp = t_1;
} else {
tmp = t * ((a * -4.0) + ((j * (k * -27.0)) / t));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = x * ((t * (18.0 * (y * z))) + (i * -4.0)) tmp = 0 if (j * 27.0) <= -1e+157: tmp = (b * c) - ((j * 27.0) * k) elif (j * 27.0) <= -1e-53: tmp = t_1 elif (j * 27.0) <= 5e-196: tmp = (b * c) + (-4.0 * (t * a)) elif (j * 27.0) <= 1e-78: tmp = t_1 else: tmp = t * ((a * -4.0) + ((j * (k * -27.0)) / t)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(x * Float64(Float64(t * Float64(18.0 * Float64(y * z))) + Float64(i * -4.0))) tmp = 0.0 if (Float64(j * 27.0) <= -1e+157) tmp = Float64(Float64(b * c) - Float64(Float64(j * 27.0) * k)); elseif (Float64(j * 27.0) <= -1e-53) tmp = t_1; elseif (Float64(j * 27.0) <= 5e-196) tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))); elseif (Float64(j * 27.0) <= 1e-78) tmp = t_1; else tmp = Float64(t * Float64(Float64(a * -4.0) + Float64(Float64(j * Float64(k * -27.0)) / t))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = x * ((t * (18.0 * (y * z))) + (i * -4.0));
tmp = 0.0;
if ((j * 27.0) <= -1e+157)
tmp = (b * c) - ((j * 27.0) * k);
elseif ((j * 27.0) <= -1e-53)
tmp = t_1;
elseif ((j * 27.0) <= 5e-196)
tmp = (b * c) + (-4.0 * (t * a));
elseif ((j * 27.0) <= 1e-78)
tmp = t_1;
else
tmp = t * ((a * -4.0) + ((j * (k * -27.0)) / t));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(N[(t * N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(j * 27.0), $MachinePrecision], -1e+157], N[(N[(b * c), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(j * 27.0), $MachinePrecision], -1e-53], t$95$1, If[LessEqual[N[(j * 27.0), $MachinePrecision], 5e-196], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(j * 27.0), $MachinePrecision], 1e-78], t$95$1, N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot \left(18 \cdot \left(y \cdot z\right)\right) + i \cdot -4\right)\\
\mathbf{if}\;j \cdot 27 \leq -1 \cdot 10^{+157}:\\
\;\;\;\;b \cdot c - \left(j \cdot 27\right) \cdot k\\
\mathbf{elif}\;j \cdot 27 \leq -1 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \cdot 27 \leq 5 \cdot 10^{-196}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;j \cdot 27 \leq 10^{-78}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot -4 + \frac{j \cdot \left(k \cdot -27\right)}{t}\right)\\
\end{array}
\end{array}
if (*.f64 j #s(literal 27 binary64)) < -9.99999999999999983e156Initial program 74.9%
Taylor expanded in b around inf
*-lowering-*.f6470.8%
Simplified70.8%
if -9.99999999999999983e156 < (*.f64 j #s(literal 27 binary64)) < -1.00000000000000003e-53 or 5.0000000000000005e-196 < (*.f64 j #s(literal 27 binary64)) < 9.99999999999999999e-79Initial program 92.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6450.3%
Simplified50.3%
if -1.00000000000000003e-53 < (*.f64 j #s(literal 27 binary64)) < 5.0000000000000005e-196Initial program 89.7%
Taylor expanded in x around 0
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-lft-neg-inN/A
metadata-evalN/A
*-lowering-*.f64N/A
*-lowering-*.f6460.7%
Simplified60.7%
Taylor expanded in j around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6457.0%
Simplified57.0%
if 9.99999999999999999e-79 < (*.f64 j #s(literal 27 binary64)) Initial program 87.1%
Taylor expanded in x around 0
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-lft-neg-inN/A
metadata-evalN/A
*-lowering-*.f64N/A
*-lowering-*.f6471.4%
Simplified71.4%
Taylor expanded in t around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate-+l+N/A
metadata-evalN/A
cancel-sign-sub-invN/A
associate-*r/N/A
div-subN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified63.1%
Taylor expanded in b around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6454.2%
Simplified54.2%
Final simplification56.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1
(*
x
(- (- (* -27.0 (/ (* j k) x)) (* z (* y (* t -18.0)))) (* i 4.0)))))
(if (<= x -4e+82)
t_1
(if (<= x 1.32e+213)
(-
(+
(* t (+ (* z (* x (* 18.0 y))) (* a -4.0)))
(+ (* b c) (* -4.0 (* x i))))
(* (* j k) 27.0))
t_1))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0));
double tmp;
if (x <= -4e+82) {
tmp = t_1;
} else if (x <= 1.32e+213) {
tmp = ((t * ((z * (x * (18.0 * y))) + (a * -4.0))) + ((b * c) + (-4.0 * (x * i)))) - ((j * k) * 27.0);
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((((-27.0d0) * ((j * k) / x)) - (z * (y * (t * (-18.0d0))))) - (i * 4.0d0))
if (x <= (-4d+82)) then
tmp = t_1
else if (x <= 1.32d+213) then
tmp = ((t * ((z * (x * (18.0d0 * y))) + (a * (-4.0d0)))) + ((b * c) + ((-4.0d0) * (x * i)))) - ((j * k) * 27.0d0)
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0));
double tmp;
if (x <= -4e+82) {
tmp = t_1;
} else if (x <= 1.32e+213) {
tmp = ((t * ((z * (x * (18.0 * y))) + (a * -4.0))) + ((b * c) + (-4.0 * (x * i)))) - ((j * k) * 27.0);
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0)) tmp = 0 if x <= -4e+82: tmp = t_1 elif x <= 1.32e+213: tmp = ((t * ((z * (x * (18.0 * y))) + (a * -4.0))) + ((b * c) + (-4.0 * (x * i)))) - ((j * k) * 27.0) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(x * Float64(Float64(Float64(-27.0 * Float64(Float64(j * k) / x)) - Float64(z * Float64(y * Float64(t * -18.0)))) - Float64(i * 4.0))) tmp = 0.0 if (x <= -4e+82) tmp = t_1; elseif (x <= 1.32e+213) tmp = Float64(Float64(Float64(t * Float64(Float64(z * Float64(x * Float64(18.0 * y))) + Float64(a * -4.0))) + Float64(Float64(b * c) + Float64(-4.0 * Float64(x * i)))) - Float64(Float64(j * k) * 27.0)); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0));
tmp = 0.0;
if (x <= -4e+82)
tmp = t_1;
elseif (x <= 1.32e+213)
tmp = ((t * ((z * (x * (18.0 * y))) + (a * -4.0))) + ((b * c) + (-4.0 * (x * i)))) - ((j * k) * 27.0);
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(N[(N[(-27.0 * N[(N[(j * k), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] - N[(z * N[(y * N[(t * -18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4e+82], t$95$1, If[LessEqual[x, 1.32e+213], N[(N[(N[(t * N[(N[(z * N[(x * N[(18.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * k), $MachinePrecision] * 27.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := x \cdot \left(\left(-27 \cdot \frac{j \cdot k}{x} - z \cdot \left(y \cdot \left(t \cdot -18\right)\right)\right) - i \cdot 4\right)\\
\mathbf{if}\;x \leq -4 \cdot 10^{+82}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.32 \cdot 10^{+213}:\\
\;\;\;\;\left(t \cdot \left(z \cdot \left(x \cdot \left(18 \cdot y\right)\right) + a \cdot -4\right) + \left(b \cdot c + -4 \cdot \left(x \cdot i\right)\right)\right) - \left(j \cdot k\right) \cdot 27\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.9999999999999999e82 or 1.32e213 < x Initial program 69.1%
Taylor expanded in x around -inf
Simplified90.8%
Taylor expanded in j around inf
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6490.2%
Simplified90.2%
if -3.9999999999999999e82 < x < 1.32e213Initial program 93.0%
--lowering--.f64N/A
Applied egg-rr94.0%
Final simplification93.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j 27.0) k)))
(if (<= t_1 -2e+141)
(* c (+ b (/ (* k (* j -27.0)) c)))
(if (<= t_1 -1e+97)
(* (* 18.0 (* x z)) (* y t))
(if (<= t_1 1e+93)
(+ (* b c) (* -4.0 (* t a)))
(- (* b c) (* (* j k) 27.0)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (t_1 <= -2e+141) {
tmp = c * (b + ((k * (j * -27.0)) / c));
} else if (t_1 <= -1e+97) {
tmp = (18.0 * (x * z)) * (y * t);
} else if (t_1 <= 1e+93) {
tmp = (b * c) + (-4.0 * (t * a));
} else {
tmp = (b * c) - ((j * k) * 27.0);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (j * 27.0d0) * k
if (t_1 <= (-2d+141)) then
tmp = c * (b + ((k * (j * (-27.0d0))) / c))
else if (t_1 <= (-1d+97)) then
tmp = (18.0d0 * (x * z)) * (y * t)
else if (t_1 <= 1d+93) then
tmp = (b * c) + ((-4.0d0) * (t * a))
else
tmp = (b * c) - ((j * k) * 27.0d0)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (t_1 <= -2e+141) {
tmp = c * (b + ((k * (j * -27.0)) / c));
} else if (t_1 <= -1e+97) {
tmp = (18.0 * (x * z)) * (y * t);
} else if (t_1 <= 1e+93) {
tmp = (b * c) + (-4.0 * (t * a));
} else {
tmp = (b * c) - ((j * k) * 27.0);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * 27.0) * k tmp = 0 if t_1 <= -2e+141: tmp = c * (b + ((k * (j * -27.0)) / c)) elif t_1 <= -1e+97: tmp = (18.0 * (x * z)) * (y * t) elif t_1 <= 1e+93: tmp = (b * c) + (-4.0 * (t * a)) else: tmp = (b * c) - ((j * k) * 27.0) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if (t_1 <= -2e+141) tmp = Float64(c * Float64(b + Float64(Float64(k * Float64(j * -27.0)) / c))); elseif (t_1 <= -1e+97) tmp = Float64(Float64(18.0 * Float64(x * z)) * Float64(y * t)); elseif (t_1 <= 1e+93) tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))); else tmp = Float64(Float64(b * c) - Float64(Float64(j * k) * 27.0)); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (j * 27.0) * k;
tmp = 0.0;
if (t_1 <= -2e+141)
tmp = c * (b + ((k * (j * -27.0)) / c));
elseif (t_1 <= -1e+97)
tmp = (18.0 * (x * z)) * (y * t);
elseif (t_1 <= 1e+93)
tmp = (b * c) + (-4.0 * (t * a));
else
tmp = (b * c) - ((j * k) * 27.0);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+141], N[(c * N[(b + N[(N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -1e+97], N[(N[(18.0 * N[(x * z), $MachinePrecision]), $MachinePrecision] * N[(y * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+93], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] - N[(N[(j * k), $MachinePrecision] * 27.0), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+141}:\\
\;\;\;\;c \cdot \left(b + \frac{k \cdot \left(j \cdot -27\right)}{c}\right)\\
\mathbf{elif}\;t\_1 \leq -1 \cdot 10^{+97}:\\
\;\;\;\;\left(18 \cdot \left(x \cdot z\right)\right) \cdot \left(y \cdot t\right)\\
\mathbf{elif}\;t\_1 \leq 10^{+93}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - \left(j \cdot k\right) \cdot 27\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -2.00000000000000003e141Initial program 75.2%
Taylor expanded in b around inf
*-lowering-*.f6479.1%
Simplified79.1%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6476.5%
Simplified76.5%
if -2.00000000000000003e141 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1.0000000000000001e97Initial program 99.8%
Taylor expanded in x around -inf
Simplified78.2%
Taylor expanded in y around inf
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6459.7%
Simplified59.7%
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6458.0%
Applied egg-rr58.0%
if -1.0000000000000001e97 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.00000000000000004e93Initial program 90.7%
Taylor expanded in x around 0
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-lft-neg-inN/A
metadata-evalN/A
*-lowering-*.f64N/A
*-lowering-*.f6455.0%
Simplified55.0%
Taylor expanded in j around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6451.6%
Simplified51.6%
if 1.00000000000000004e93 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 83.3%
Taylor expanded in b around inf
*-lowering-*.f6478.2%
Simplified78.2%
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6478.2%
Applied egg-rr78.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j 27.0) k)))
(if (<= t_1 -2e+141)
(- (* b c) t_1)
(if (<= t_1 -1e+97)
(* (* 18.0 (* x z)) (* y t))
(if (<= t_1 1e+93)
(+ (* b c) (* -4.0 (* t a)))
(- (* b c) (* (* j k) 27.0)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (t_1 <= -2e+141) {
tmp = (b * c) - t_1;
} else if (t_1 <= -1e+97) {
tmp = (18.0 * (x * z)) * (y * t);
} else if (t_1 <= 1e+93) {
tmp = (b * c) + (-4.0 * (t * a));
} else {
tmp = (b * c) - ((j * k) * 27.0);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (j * 27.0d0) * k
if (t_1 <= (-2d+141)) then
tmp = (b * c) - t_1
else if (t_1 <= (-1d+97)) then
tmp = (18.0d0 * (x * z)) * (y * t)
else if (t_1 <= 1d+93) then
tmp = (b * c) + ((-4.0d0) * (t * a))
else
tmp = (b * c) - ((j * k) * 27.0d0)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double tmp;
if (t_1 <= -2e+141) {
tmp = (b * c) - t_1;
} else if (t_1 <= -1e+97) {
tmp = (18.0 * (x * z)) * (y * t);
} else if (t_1 <= 1e+93) {
tmp = (b * c) + (-4.0 * (t * a));
} else {
tmp = (b * c) - ((j * k) * 27.0);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * 27.0) * k tmp = 0 if t_1 <= -2e+141: tmp = (b * c) - t_1 elif t_1 <= -1e+97: tmp = (18.0 * (x * z)) * (y * t) elif t_1 <= 1e+93: tmp = (b * c) + (-4.0 * (t * a)) else: tmp = (b * c) - ((j * k) * 27.0) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if (t_1 <= -2e+141) tmp = Float64(Float64(b * c) - t_1); elseif (t_1 <= -1e+97) tmp = Float64(Float64(18.0 * Float64(x * z)) * Float64(y * t)); elseif (t_1 <= 1e+93) tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))); else tmp = Float64(Float64(b * c) - Float64(Float64(j * k) * 27.0)); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (j * 27.0) * k;
tmp = 0.0;
if (t_1 <= -2e+141)
tmp = (b * c) - t_1;
elseif (t_1 <= -1e+97)
tmp = (18.0 * (x * z)) * (y * t);
elseif (t_1 <= 1e+93)
tmp = (b * c) + (-4.0 * (t * a));
else
tmp = (b * c) - ((j * k) * 27.0);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+141], N[(N[(b * c), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t$95$1, -1e+97], N[(N[(18.0 * N[(x * z), $MachinePrecision]), $MachinePrecision] * N[(y * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+93], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] - N[(N[(j * k), $MachinePrecision] * 27.0), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+141}:\\
\;\;\;\;b \cdot c - t\_1\\
\mathbf{elif}\;t\_1 \leq -1 \cdot 10^{+97}:\\
\;\;\;\;\left(18 \cdot \left(x \cdot z\right)\right) \cdot \left(y \cdot t\right)\\
\mathbf{elif}\;t\_1 \leq 10^{+93}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - \left(j \cdot k\right) \cdot 27\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -2.00000000000000003e141Initial program 75.2%
Taylor expanded in b around inf
*-lowering-*.f6479.1%
Simplified79.1%
if -2.00000000000000003e141 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1.0000000000000001e97Initial program 99.8%
Taylor expanded in x around -inf
Simplified78.2%
Taylor expanded in y around inf
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6459.7%
Simplified59.7%
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6458.0%
Applied egg-rr58.0%
if -1.0000000000000001e97 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.00000000000000004e93Initial program 90.7%
Taylor expanded in x around 0
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-lft-neg-inN/A
metadata-evalN/A
*-lowering-*.f64N/A
*-lowering-*.f6455.0%
Simplified55.0%
Taylor expanded in j around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6451.6%
Simplified51.6%
if 1.00000000000000004e93 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 83.3%
Taylor expanded in b around inf
*-lowering-*.f6478.2%
Simplified78.2%
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6478.2%
Applied egg-rr78.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j 27.0) k)) (t_2 (- (* b c) t_1)))
(if (<= t_1 -2e+141)
t_2
(if (<= t_1 -1e+97)
(* (* 18.0 (* x z)) (* y t))
(if (<= t_1 1e+93) (+ (* b c) (* -4.0 (* t a))) t_2)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double t_2 = (b * c) - t_1;
double tmp;
if (t_1 <= -2e+141) {
tmp = t_2;
} else if (t_1 <= -1e+97) {
tmp = (18.0 * (x * z)) * (y * t);
} else if (t_1 <= 1e+93) {
tmp = (b * c) + (-4.0 * (t * a));
} else {
tmp = t_2;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 * 27.0d0) * k
t_2 = (b * c) - t_1
if (t_1 <= (-2d+141)) then
tmp = t_2
else if (t_1 <= (-1d+97)) then
tmp = (18.0d0 * (x * z)) * (y * t)
else if (t_1 <= 1d+93) then
tmp = (b * c) + ((-4.0d0) * (t * a))
else
tmp = t_2
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * 27.0) * k;
double t_2 = (b * c) - t_1;
double tmp;
if (t_1 <= -2e+141) {
tmp = t_2;
} else if (t_1 <= -1e+97) {
tmp = (18.0 * (x * z)) * (y * t);
} else if (t_1 <= 1e+93) {
tmp = (b * c) + (-4.0 * (t * a));
} else {
tmp = t_2;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * 27.0) * k t_2 = (b * c) - t_1 tmp = 0 if t_1 <= -2e+141: tmp = t_2 elif t_1 <= -1e+97: tmp = (18.0 * (x * z)) * (y * t) elif t_1 <= 1e+93: tmp = (b * c) + (-4.0 * (t * a)) else: tmp = t_2 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * 27.0) * k) t_2 = Float64(Float64(b * c) - t_1) tmp = 0.0 if (t_1 <= -2e+141) tmp = t_2; elseif (t_1 <= -1e+97) tmp = Float64(Float64(18.0 * Float64(x * z)) * Float64(y * t)); elseif (t_1 <= 1e+93) tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))); else tmp = t_2; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (j * 27.0) * k;
t_2 = (b * c) - t_1;
tmp = 0.0;
if (t_1 <= -2e+141)
tmp = t_2;
elseif (t_1 <= -1e+97)
tmp = (18.0 * (x * z)) * (y * t);
elseif (t_1 <= 1e+93)
tmp = (b * c) + (-4.0 * (t * a));
else
tmp = t_2;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * c), $MachinePrecision] - t$95$1), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+141], t$95$2, If[LessEqual[t$95$1, -1e+97], N[(N[(18.0 * N[(x * z), $MachinePrecision]), $MachinePrecision] * N[(y * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+93], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $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])\\
\\
\begin{array}{l}
t_1 := \left(j \cdot 27\right) \cdot k\\
t_2 := b \cdot c - t\_1\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+141}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq -1 \cdot 10^{+97}:\\
\;\;\;\;\left(18 \cdot \left(x \cdot z\right)\right) \cdot \left(y \cdot t\right)\\
\mathbf{elif}\;t\_1 \leq 10^{+93}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -2.00000000000000003e141 or 1.00000000000000004e93 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 80.3%
Taylor expanded in b around inf
*-lowering-*.f6478.5%
Simplified78.5%
if -2.00000000000000003e141 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1.0000000000000001e97Initial program 99.8%
Taylor expanded in x around -inf
Simplified78.2%
Taylor expanded in y around inf
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6459.7%
Simplified59.7%
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6458.0%
Applied egg-rr58.0%
if -1.0000000000000001e97 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.00000000000000004e93Initial program 90.7%
Taylor expanded in x around 0
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-lft-neg-inN/A
metadata-evalN/A
*-lowering-*.f64N/A
*-lowering-*.f6455.0%
Simplified55.0%
Taylor expanded in j around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6451.6%
Simplified51.6%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= (* j 27.0) -2e+140)
(- (* b c) (* (* j 27.0) k))
(if (<= (* j 27.0) -1e-52)
(* t (+ (* a -4.0) (* 18.0 (* x (* y z)))))
(if (<= (* j 27.0) 1e-78)
(+ (* b c) (* -4.0 (* t a)))
(* t (+ (* a -4.0) (/ (* j (* k -27.0)) t)))))))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 ((j * 27.0) <= -2e+140) {
tmp = (b * c) - ((j * 27.0) * k);
} else if ((j * 27.0) <= -1e-52) {
tmp = t * ((a * -4.0) + (18.0 * (x * (y * z))));
} else if ((j * 27.0) <= 1e-78) {
tmp = (b * c) + (-4.0 * (t * a));
} else {
tmp = t * ((a * -4.0) + ((j * (k * -27.0)) / t));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 ((j * 27.0d0) <= (-2d+140)) then
tmp = (b * c) - ((j * 27.0d0) * k)
else if ((j * 27.0d0) <= (-1d-52)) then
tmp = t * ((a * (-4.0d0)) + (18.0d0 * (x * (y * z))))
else if ((j * 27.0d0) <= 1d-78) then
tmp = (b * c) + ((-4.0d0) * (t * a))
else
tmp = t * ((a * (-4.0d0)) + ((j * (k * (-27.0d0))) / t))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
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 ((j * 27.0) <= -2e+140) {
tmp = (b * c) - ((j * 27.0) * k);
} else if ((j * 27.0) <= -1e-52) {
tmp = t * ((a * -4.0) + (18.0 * (x * (y * z))));
} else if ((j * 27.0) <= 1e-78) {
tmp = (b * c) + (-4.0 * (t * a));
} else {
tmp = t * ((a * -4.0) + ((j * (k * -27.0)) / t));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (j * 27.0) <= -2e+140: tmp = (b * c) - ((j * 27.0) * k) elif (j * 27.0) <= -1e-52: tmp = t * ((a * -4.0) + (18.0 * (x * (y * z)))) elif (j * 27.0) <= 1e-78: tmp = (b * c) + (-4.0 * (t * a)) else: tmp = t * ((a * -4.0) + ((j * (k * -27.0)) / t)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(j * 27.0) <= -2e+140) tmp = Float64(Float64(b * c) - Float64(Float64(j * 27.0) * k)); elseif (Float64(j * 27.0) <= -1e-52) tmp = Float64(t * Float64(Float64(a * -4.0) + Float64(18.0 * Float64(x * Float64(y * z))))); elseif (Float64(j * 27.0) <= 1e-78) tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))); else tmp = Float64(t * Float64(Float64(a * -4.0) + Float64(Float64(j * Float64(k * -27.0)) / t))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((j * 27.0) <= -2e+140)
tmp = (b * c) - ((j * 27.0) * k);
elseif ((j * 27.0) <= -1e-52)
tmp = t * ((a * -4.0) + (18.0 * (x * (y * z))));
elseif ((j * 27.0) <= 1e-78)
tmp = (b * c) + (-4.0 * (t * a));
else
tmp = t * ((a * -4.0) + ((j * (k * -27.0)) / t));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(j * 27.0), $MachinePrecision], -2e+140], N[(N[(b * c), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(j * 27.0), $MachinePrecision], -1e-52], N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(j * 27.0), $MachinePrecision], 1e-78], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;j \cdot 27 \leq -2 \cdot 10^{+140}:\\
\;\;\;\;b \cdot c - \left(j \cdot 27\right) \cdot k\\
\mathbf{elif}\;j \cdot 27 \leq -1 \cdot 10^{-52}:\\
\;\;\;\;t \cdot \left(a \cdot -4 + 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;j \cdot 27 \leq 10^{-78}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot -4 + \frac{j \cdot \left(k \cdot -27\right)}{t}\right)\\
\end{array}
\end{array}
if (*.f64 j #s(literal 27 binary64)) < -2.00000000000000012e140Initial program 75.7%
Taylor expanded in b around inf
*-lowering-*.f6468.8%
Simplified68.8%
if -2.00000000000000012e140 < (*.f64 j #s(literal 27 binary64)) < -1e-52Initial program 94.6%
Taylor expanded in t around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6444.6%
Simplified44.6%
if -1e-52 < (*.f64 j #s(literal 27 binary64)) < 9.99999999999999999e-79Initial program 89.8%
Taylor expanded in x around 0
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-lft-neg-inN/A
metadata-evalN/A
*-lowering-*.f64N/A
*-lowering-*.f6454.5%
Simplified54.5%
Taylor expanded in j around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6451.0%
Simplified51.0%
if 9.99999999999999999e-79 < (*.f64 j #s(literal 27 binary64)) Initial program 87.1%
Taylor expanded in x around 0
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-lft-neg-inN/A
metadata-evalN/A
*-lowering-*.f64N/A
*-lowering-*.f6471.4%
Simplified71.4%
Taylor expanded in t around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate-+l+N/A
metadata-evalN/A
cancel-sign-sub-invN/A
associate-*r/N/A
div-subN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified63.1%
Taylor expanded in b around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6454.2%
Simplified54.2%
Final simplification53.3%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1
(*
x
(- (- (* -27.0 (/ (* j k) x)) (* z (* y (* t -18.0)))) (* i 4.0)))))
(if (<= x -2.6e+31)
t_1
(if (<= x 1.3e+109)
(-
(+ (* b c) (* t (+ (* 18.0 (* y (* x z))) (* a -4.0))))
(* (* j 27.0) k))
t_1))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0));
double tmp;
if (x <= -2.6e+31) {
tmp = t_1;
} else if (x <= 1.3e+109) {
tmp = ((b * c) + (t * ((18.0 * (y * (x * z))) + (a * -4.0)))) - ((j * 27.0) * k);
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((((-27.0d0) * ((j * k) / x)) - (z * (y * (t * (-18.0d0))))) - (i * 4.0d0))
if (x <= (-2.6d+31)) then
tmp = t_1
else if (x <= 1.3d+109) then
tmp = ((b * c) + (t * ((18.0d0 * (y * (x * z))) + (a * (-4.0d0))))) - ((j * 27.0d0) * k)
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0));
double tmp;
if (x <= -2.6e+31) {
tmp = t_1;
} else if (x <= 1.3e+109) {
tmp = ((b * c) + (t * ((18.0 * (y * (x * z))) + (a * -4.0)))) - ((j * 27.0) * k);
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0)) tmp = 0 if x <= -2.6e+31: tmp = t_1 elif x <= 1.3e+109: tmp = ((b * c) + (t * ((18.0 * (y * (x * z))) + (a * -4.0)))) - ((j * 27.0) * k) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(x * Float64(Float64(Float64(-27.0 * Float64(Float64(j * k) / x)) - Float64(z * Float64(y * Float64(t * -18.0)))) - Float64(i * 4.0))) tmp = 0.0 if (x <= -2.6e+31) tmp = t_1; elseif (x <= 1.3e+109) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(y * Float64(x * z))) + Float64(a * -4.0)))) - Float64(Float64(j * 27.0) * k)); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0));
tmp = 0.0;
if (x <= -2.6e+31)
tmp = t_1;
elseif (x <= 1.3e+109)
tmp = ((b * c) + (t * ((18.0 * (y * (x * z))) + (a * -4.0)))) - ((j * 27.0) * k);
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(N[(N[(-27.0 * N[(N[(j * k), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] - N[(z * N[(y * N[(t * -18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.6e+31], t$95$1, If[LessEqual[x, 1.3e+109], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := x \cdot \left(\left(-27 \cdot \frac{j \cdot k}{x} - z \cdot \left(y \cdot \left(t \cdot -18\right)\right)\right) - i \cdot 4\right)\\
\mathbf{if}\;x \leq -2.6 \cdot 10^{+31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{+109}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) + a \cdot -4\right)\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.6e31 or 1.2999999999999999e109 < x Initial program 74.0%
Taylor expanded in x around -inf
Simplified90.2%
Taylor expanded in j around inf
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6483.3%
Simplified83.3%
if -2.6e31 < x < 1.2999999999999999e109Initial program 95.2%
Taylor expanded in i around 0
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified80.5%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6484.4%
Applied egg-rr84.4%
Final simplification84.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1
(*
x
(- (- (* -27.0 (/ (* j k) x)) (* z (* y (* t -18.0)))) (* i 4.0)))))
(if (<= i -1e+152)
t_1
(if (<= i 1.16e+179)
(-
(+ (* b c) (* t (+ (* a -4.0) (* 18.0 (* x (* y z))))))
(* (* j 27.0) k))
t_1))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0));
double tmp;
if (i <= -1e+152) {
tmp = t_1;
} else if (i <= 1.16e+179) {
tmp = ((b * c) + (t * ((a * -4.0) + (18.0 * (x * (y * z)))))) - ((j * 27.0) * k);
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((((-27.0d0) * ((j * k) / x)) - (z * (y * (t * (-18.0d0))))) - (i * 4.0d0))
if (i <= (-1d+152)) then
tmp = t_1
else if (i <= 1.16d+179) then
tmp = ((b * c) + (t * ((a * (-4.0d0)) + (18.0d0 * (x * (y * z)))))) - ((j * 27.0d0) * k)
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0));
double tmp;
if (i <= -1e+152) {
tmp = t_1;
} else if (i <= 1.16e+179) {
tmp = ((b * c) + (t * ((a * -4.0) + (18.0 * (x * (y * z)))))) - ((j * 27.0) * k);
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0)) tmp = 0 if i <= -1e+152: tmp = t_1 elif i <= 1.16e+179: tmp = ((b * c) + (t * ((a * -4.0) + (18.0 * (x * (y * z)))))) - ((j * 27.0) * k) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(x * Float64(Float64(Float64(-27.0 * Float64(Float64(j * k) / x)) - Float64(z * Float64(y * Float64(t * -18.0)))) - Float64(i * 4.0))) tmp = 0.0 if (i <= -1e+152) tmp = t_1; elseif (i <= 1.16e+179) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(a * -4.0) + Float64(18.0 * Float64(x * Float64(y * z)))))) - Float64(Float64(j * 27.0) * k)); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0));
tmp = 0.0;
if (i <= -1e+152)
tmp = t_1;
elseif (i <= 1.16e+179)
tmp = ((b * c) + (t * ((a * -4.0) + (18.0 * (x * (y * z)))))) - ((j * 27.0) * k);
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(N[(N[(-27.0 * N[(N[(j * k), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] - N[(z * N[(y * N[(t * -18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1e+152], t$95$1, If[LessEqual[i, 1.16e+179], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := x \cdot \left(\left(-27 \cdot \frac{j \cdot k}{x} - z \cdot \left(y \cdot \left(t \cdot -18\right)\right)\right) - i \cdot 4\right)\\
\mathbf{if}\;i \leq -1 \cdot 10^{+152}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.16 \cdot 10^{+179}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(a \cdot -4 + 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1e152 or 1.16e179 < i Initial program 79.4%
Taylor expanded in x around -inf
Simplified78.6%
Taylor expanded in j around inf
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6478.9%
Simplified78.9%
if -1e152 < i < 1.16e179Initial program 90.7%
Taylor expanded in i around 0
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified83.3%
Final simplification82.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* x 4.0) i))
(t_2 (* (* j 27.0) k))
(t_3 (+ (* b c) (* t (+ (* a -4.0) (* 18.0 (* x (* y z))))))))
(if (<= t -1.95e+150)
t_3
(if (<= t -1.45e-100)
(- (- (* -4.0 (* t a)) t_1) t_2)
(if (<= t 1760000000000.0) (- (- (* b c) t_1) t_2) t_3)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (x * 4.0) * i;
double t_2 = (j * 27.0) * k;
double t_3 = (b * c) + (t * ((a * -4.0) + (18.0 * (x * (y * z)))));
double tmp;
if (t <= -1.95e+150) {
tmp = t_3;
} else if (t <= -1.45e-100) {
tmp = ((-4.0 * (t * a)) - t_1) - t_2;
} else if (t <= 1760000000000.0) {
tmp = ((b * c) - t_1) - 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.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (x * 4.0d0) * i
t_2 = (j * 27.0d0) * k
t_3 = (b * c) + (t * ((a * (-4.0d0)) + (18.0d0 * (x * (y * z)))))
if (t <= (-1.95d+150)) then
tmp = t_3
else if (t <= (-1.45d-100)) then
tmp = (((-4.0d0) * (t * a)) - t_1) - t_2
else if (t <= 1760000000000.0d0) then
tmp = ((b * c) - t_1) - 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;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (x * 4.0) * i;
double t_2 = (j * 27.0) * k;
double t_3 = (b * c) + (t * ((a * -4.0) + (18.0 * (x * (y * z)))));
double tmp;
if (t <= -1.95e+150) {
tmp = t_3;
} else if (t <= -1.45e-100) {
tmp = ((-4.0 * (t * a)) - t_1) - t_2;
} else if (t <= 1760000000000.0) {
tmp = ((b * c) - t_1) - 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]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (x * 4.0) * i t_2 = (j * 27.0) * k t_3 = (b * c) + (t * ((a * -4.0) + (18.0 * (x * (y * z))))) tmp = 0 if t <= -1.95e+150: tmp = t_3 elif t <= -1.45e-100: tmp = ((-4.0 * (t * a)) - t_1) - t_2 elif t <= 1760000000000.0: tmp = ((b * c) - t_1) - 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]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(x * 4.0) * i) t_2 = Float64(Float64(j * 27.0) * k) t_3 = Float64(Float64(b * c) + Float64(t * Float64(Float64(a * -4.0) + Float64(18.0 * Float64(x * Float64(y * z)))))) tmp = 0.0 if (t <= -1.95e+150) tmp = t_3; elseif (t <= -1.45e-100) tmp = Float64(Float64(Float64(-4.0 * Float64(t * a)) - t_1) - t_2); elseif (t <= 1760000000000.0) tmp = Float64(Float64(Float64(b * c) - t_1) - 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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (x * 4.0) * i;
t_2 = (j * 27.0) * k;
t_3 = (b * c) + (t * ((a * -4.0) + (18.0 * (x * (y * z)))));
tmp = 0.0;
if (t <= -1.95e+150)
tmp = t_3;
elseif (t <= -1.45e-100)
tmp = ((-4.0 * (t * a)) - t_1) - t_2;
elseif (t <= 1760000000000.0)
tmp = ((b * c) - t_1) - 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.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.95e+150], t$95$3, If[LessEqual[t, -1.45e-100], N[(N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], If[LessEqual[t, 1760000000000.0], N[(N[(N[(b * c), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], t$95$3]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := \left(x \cdot 4\right) \cdot i\\
t_2 := \left(j \cdot 27\right) \cdot k\\
t_3 := b \cdot c + t \cdot \left(a \cdot -4 + 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{if}\;t \leq -1.95 \cdot 10^{+150}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -1.45 \cdot 10^{-100}:\\
\;\;\;\;\left(-4 \cdot \left(t \cdot a\right) - t\_1\right) - t\_2\\
\mathbf{elif}\;t \leq 1760000000000:\\
\;\;\;\;\left(b \cdot c - t\_1\right) - t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if t < -1.94999999999999995e150 or 1.76e12 < t Initial program 86.0%
Taylor expanded in i around 0
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified88.7%
Taylor expanded in j around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6481.5%
Simplified81.5%
if -1.94999999999999995e150 < t < -1.44999999999999988e-100Initial program 88.8%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6469.9%
Simplified69.9%
if -1.44999999999999988e-100 < t < 1.76e12Initial program 89.0%
Taylor expanded in t around 0
*-lowering-*.f6479.2%
Simplified79.2%
Final simplification78.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1
(*
x
(- (- (* -27.0 (/ (* j k) x)) (* z (* y (* t -18.0)))) (* i 4.0)))))
(if (<= x -650.0)
t_1
(if (<= x 5.9e-12)
(+ (* b c) (+ (* j (* k -27.0)) (* -4.0 (* t a))))
t_1))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0));
double tmp;
if (x <= -650.0) {
tmp = t_1;
} else if (x <= 5.9e-12) {
tmp = (b * c) + ((j * (k * -27.0)) + (-4.0 * (t * a)));
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((((-27.0d0) * ((j * k) / x)) - (z * (y * (t * (-18.0d0))))) - (i * 4.0d0))
if (x <= (-650.0d0)) then
tmp = t_1
else if (x <= 5.9d-12) then
tmp = (b * c) + ((j * (k * (-27.0d0))) + ((-4.0d0) * (t * a)))
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0));
double tmp;
if (x <= -650.0) {
tmp = t_1;
} else if (x <= 5.9e-12) {
tmp = (b * c) + ((j * (k * -27.0)) + (-4.0 * (t * a)));
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0)) tmp = 0 if x <= -650.0: tmp = t_1 elif x <= 5.9e-12: tmp = (b * c) + ((j * (k * -27.0)) + (-4.0 * (t * a))) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(x * Float64(Float64(Float64(-27.0 * Float64(Float64(j * k) / x)) - Float64(z * Float64(y * Float64(t * -18.0)))) - Float64(i * 4.0))) tmp = 0.0 if (x <= -650.0) tmp = t_1; elseif (x <= 5.9e-12) tmp = Float64(Float64(b * c) + Float64(Float64(j * Float64(k * -27.0)) + Float64(-4.0 * Float64(t * a)))); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = x * (((-27.0 * ((j * k) / x)) - (z * (y * (t * -18.0)))) - (i * 4.0));
tmp = 0.0;
if (x <= -650.0)
tmp = t_1;
elseif (x <= 5.9e-12)
tmp = (b * c) + ((j * (k * -27.0)) + (-4.0 * (t * a)));
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(N[(N[(-27.0 * N[(N[(j * k), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] - N[(z * N[(y * N[(t * -18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -650.0], t$95$1, If[LessEqual[x, 5.9e-12], N[(N[(b * c), $MachinePrecision] + N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * N[(t * a), $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])\\
\\
\begin{array}{l}
t_1 := x \cdot \left(\left(-27 \cdot \frac{j \cdot k}{x} - z \cdot \left(y \cdot \left(t \cdot -18\right)\right)\right) - i \cdot 4\right)\\
\mathbf{if}\;x \leq -650:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 5.9 \cdot 10^{-12}:\\
\;\;\;\;b \cdot c + \left(j \cdot \left(k \cdot -27\right) + -4 \cdot \left(t \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -650 or 5.9e-12 < x Initial program 78.7%
Taylor expanded in x around -inf
Simplified91.7%
Taylor expanded in j around inf
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6479.2%
Simplified79.2%
if -650 < x < 5.9e-12Initial program 95.6%
Taylor expanded in x around 0
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-lft-neg-inN/A
metadata-evalN/A
*-lowering-*.f64N/A
*-lowering-*.f6474.8%
Simplified74.8%
Final simplification76.8%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* b c) (* t (+ (* a -4.0) (* 18.0 (* x (* y z))))))))
(if (<= t -90000000000000.0)
t_1
(if (<= t 8e+16) (- (- (* b c) (* (* x 4.0) i)) (* (* j 27.0) k)) t_1))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (t * ((a * -4.0) + (18.0 * (x * (y * z)))));
double tmp;
if (t <= -90000000000000.0) {
tmp = t_1;
} else if (t <= 8e+16) {
tmp = ((b * c) - ((x * 4.0) * i)) - ((j * 27.0) * k);
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (b * c) + (t * ((a * (-4.0d0)) + (18.0d0 * (x * (y * z)))))
if (t <= (-90000000000000.0d0)) then
tmp = t_1
else if (t <= 8d+16) then
tmp = ((b * c) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) + (t * ((a * -4.0) + (18.0 * (x * (y * z)))));
double tmp;
if (t <= -90000000000000.0) {
tmp = t_1;
} else if (t <= 8e+16) {
tmp = ((b * c) - ((x * 4.0) * i)) - ((j * 27.0) * k);
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) + (t * ((a * -4.0) + (18.0 * (x * (y * z))))) tmp = 0 if t <= -90000000000000.0: tmp = t_1 elif t <= 8e+16: tmp = ((b * c) - ((x * 4.0) * i)) - ((j * 27.0) * k) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) + Float64(t * Float64(Float64(a * -4.0) + Float64(18.0 * Float64(x * Float64(y * z)))))) tmp = 0.0 if (t <= -90000000000000.0) tmp = t_1; elseif (t <= 8e+16) tmp = Float64(Float64(Float64(b * c) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (b * c) + (t * ((a * -4.0) + (18.0 * (x * (y * z)))));
tmp = 0.0;
if (t <= -90000000000000.0)
tmp = t_1;
elseif (t <= 8e+16)
tmp = ((b * c) - ((x * 4.0) * i)) - ((j * 27.0) * k);
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -90000000000000.0], t$95$1, If[LessEqual[t, 8e+16], N[(N[(N[(b * c), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := b \cdot c + t \cdot \left(a \cdot -4 + 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{if}\;t \leq -90000000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+16}:\\
\;\;\;\;\left(b \cdot c - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -9e13 or 8e16 < t Initial program 87.1%
Taylor expanded in i around 0
+-commutativeN/A
associate--l+N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified85.2%
Taylor expanded in j around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6476.7%
Simplified76.7%
if -9e13 < t < 8e16Initial program 88.6%
Taylor expanded in t around 0
*-lowering-*.f6475.5%
Simplified75.5%
Final simplification76.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= j -1.4e+139)
(* k (* j -27.0))
(if (<= j -6.6e-56)
(* -4.0 (* x i))
(if (<= j 6.2e-95)
(* b c)
(if (<= j 1.3e-31) (* -4.0 (* t a)) (* j (* k -27.0)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -1.4e+139) {
tmp = k * (j * -27.0);
} else if (j <= -6.6e-56) {
tmp = -4.0 * (x * i);
} else if (j <= 6.2e-95) {
tmp = b * c;
} else if (j <= 1.3e-31) {
tmp = -4.0 * (t * a);
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (j <= (-1.4d+139)) then
tmp = k * (j * (-27.0d0))
else if (j <= (-6.6d-56)) then
tmp = (-4.0d0) * (x * i)
else if (j <= 6.2d-95) then
tmp = b * c
else if (j <= 1.3d-31) then
tmp = (-4.0d0) * (t * a)
else
tmp = j * (k * (-27.0d0))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -1.4e+139) {
tmp = k * (j * -27.0);
} else if (j <= -6.6e-56) {
tmp = -4.0 * (x * i);
} else if (j <= 6.2e-95) {
tmp = b * c;
} else if (j <= 1.3e-31) {
tmp = -4.0 * (t * a);
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if j <= -1.4e+139: tmp = k * (j * -27.0) elif j <= -6.6e-56: tmp = -4.0 * (x * i) elif j <= 6.2e-95: tmp = b * c elif j <= 1.3e-31: tmp = -4.0 * (t * a) else: tmp = j * (k * -27.0) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (j <= -1.4e+139) tmp = Float64(k * Float64(j * -27.0)); elseif (j <= -6.6e-56) tmp = Float64(-4.0 * Float64(x * i)); elseif (j <= 6.2e-95) tmp = Float64(b * c); elseif (j <= 1.3e-31) tmp = Float64(-4.0 * Float64(t * a)); 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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (j <= -1.4e+139)
tmp = k * (j * -27.0);
elseif (j <= -6.6e-56)
tmp = -4.0 * (x * i);
elseif (j <= 6.2e-95)
tmp = b * c;
elseif (j <= 1.3e-31)
tmp = -4.0 * (t * a);
else
tmp = j * (k * -27.0);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[j, -1.4e+139], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -6.6e-56], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.2e-95], N[(b * c), $MachinePrecision], If[LessEqual[j, 1.3e-31], N[(-4.0 * N[(t * a), $MachinePrecision]), $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])\\
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.4 \cdot 10^{+139}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;j \leq -6.6 \cdot 10^{-56}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;j \leq 6.2 \cdot 10^{-95}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;j \leq 1.3 \cdot 10^{-31}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if j < -1.3999999999999999e139Initial program 74.9%
--lowering--.f64N/A
Applied egg-rr74.8%
Taylor expanded in j around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6461.1%
Simplified61.1%
if -1.3999999999999999e139 < j < -6.59999999999999967e-56Initial program 94.9%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6426.7%
Simplified26.7%
if -6.59999999999999967e-56 < j < 6.19999999999999983e-95Initial program 90.2%
Taylor expanded in b around inf
*-lowering-*.f6431.0%
Simplified31.0%
if 6.19999999999999983e-95 < j < 1.29999999999999998e-31Initial program 80.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6441.9%
Simplified41.9%
if 1.29999999999999998e-31 < j Initial program 88.0%
Taylor expanded in j around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6439.9%
Simplified39.9%
Final simplification37.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= j -8.5e+139)
(* -27.0 (* j k))
(if (<= j -9.8e-56)
(* -4.0 (* x i))
(if (<= j 2e-97)
(* b c)
(if (<= j 2.3e-31) (* -4.0 (* t a)) (* j (* k -27.0)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -8.5e+139) {
tmp = -27.0 * (j * k);
} else if (j <= -9.8e-56) {
tmp = -4.0 * (x * i);
} else if (j <= 2e-97) {
tmp = b * c;
} else if (j <= 2.3e-31) {
tmp = -4.0 * (t * a);
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (j <= (-8.5d+139)) then
tmp = (-27.0d0) * (j * k)
else if (j <= (-9.8d-56)) then
tmp = (-4.0d0) * (x * i)
else if (j <= 2d-97) then
tmp = b * c
else if (j <= 2.3d-31) then
tmp = (-4.0d0) * (t * a)
else
tmp = j * (k * (-27.0d0))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -8.5e+139) {
tmp = -27.0 * (j * k);
} else if (j <= -9.8e-56) {
tmp = -4.0 * (x * i);
} else if (j <= 2e-97) {
tmp = b * c;
} else if (j <= 2.3e-31) {
tmp = -4.0 * (t * a);
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if j <= -8.5e+139: tmp = -27.0 * (j * k) elif j <= -9.8e-56: tmp = -4.0 * (x * i) elif j <= 2e-97: tmp = b * c elif j <= 2.3e-31: tmp = -4.0 * (t * a) else: tmp = j * (k * -27.0) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (j <= -8.5e+139) tmp = Float64(-27.0 * Float64(j * k)); elseif (j <= -9.8e-56) tmp = Float64(-4.0 * Float64(x * i)); elseif (j <= 2e-97) tmp = Float64(b * c); elseif (j <= 2.3e-31) tmp = Float64(-4.0 * Float64(t * a)); 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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (j <= -8.5e+139)
tmp = -27.0 * (j * k);
elseif (j <= -9.8e-56)
tmp = -4.0 * (x * i);
elseif (j <= 2e-97)
tmp = b * c;
elseif (j <= 2.3e-31)
tmp = -4.0 * (t * a);
else
tmp = j * (k * -27.0);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[j, -8.5e+139], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -9.8e-56], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2e-97], N[(b * c), $MachinePrecision], If[LessEqual[j, 2.3e-31], N[(-4.0 * N[(t * a), $MachinePrecision]), $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])\\
\\
\begin{array}{l}
\mathbf{if}\;j \leq -8.5 \cdot 10^{+139}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;j \leq -9.8 \cdot 10^{-56}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;j \leq 2 \cdot 10^{-97}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{-31}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if j < -8.5e139Initial program 74.9%
Taylor expanded in x around -inf
Simplified70.7%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-lowering-*.f6461.1%
Simplified61.1%
if -8.5e139 < j < -9.8e-56Initial program 94.9%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6426.7%
Simplified26.7%
if -9.8e-56 < j < 2.00000000000000007e-97Initial program 90.2%
Taylor expanded in b around inf
*-lowering-*.f6431.0%
Simplified31.0%
if 2.00000000000000007e-97 < j < 2.2999999999999998e-31Initial program 80.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6441.9%
Simplified41.9%
if 2.2999999999999998e-31 < j Initial program 88.0%
Taylor expanded in j around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6439.9%
Simplified39.9%
Final simplification37.0%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -27.0 (* j k))))
(if (<= j -4.6e+139)
t_1
(if (<= j -5.3e-55)
(* -4.0 (* x i))
(if (<= j 1.12e-96)
(* b c)
(if (<= j 2.2e-31) (* -4.0 (* t a)) t_1))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -27.0 * (j * k);
double tmp;
if (j <= -4.6e+139) {
tmp = t_1;
} else if (j <= -5.3e-55) {
tmp = -4.0 * (x * i);
} else if (j <= 1.12e-96) {
tmp = b * c;
} else if (j <= 2.2e-31) {
tmp = -4.0 * (t * a);
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (-27.0d0) * (j * k)
if (j <= (-4.6d+139)) then
tmp = t_1
else if (j <= (-5.3d-55)) then
tmp = (-4.0d0) * (x * i)
else if (j <= 1.12d-96) then
tmp = b * c
else if (j <= 2.2d-31) then
tmp = (-4.0d0) * (t * a)
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -27.0 * (j * k);
double tmp;
if (j <= -4.6e+139) {
tmp = t_1;
} else if (j <= -5.3e-55) {
tmp = -4.0 * (x * i);
} else if (j <= 1.12e-96) {
tmp = b * c;
} else if (j <= 2.2e-31) {
tmp = -4.0 * (t * a);
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = -27.0 * (j * k) tmp = 0 if j <= -4.6e+139: tmp = t_1 elif j <= -5.3e-55: tmp = -4.0 * (x * i) elif j <= 1.12e-96: tmp = b * c elif j <= 2.2e-31: tmp = -4.0 * (t * a) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-27.0 * Float64(j * k)) tmp = 0.0 if (j <= -4.6e+139) tmp = t_1; elseif (j <= -5.3e-55) tmp = Float64(-4.0 * Float64(x * i)); elseif (j <= 1.12e-96) tmp = Float64(b * c); elseif (j <= 2.2e-31) tmp = Float64(-4.0 * Float64(t * a)); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = -27.0 * (j * k);
tmp = 0.0;
if (j <= -4.6e+139)
tmp = t_1;
elseif (j <= -5.3e-55)
tmp = -4.0 * (x * i);
elseif (j <= 1.12e-96)
tmp = b * c;
elseif (j <= 2.2e-31)
tmp = -4.0 * (t * a);
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.6e+139], t$95$1, If[LessEqual[j, -5.3e-55], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.12e-96], N[(b * c), $MachinePrecision], If[LessEqual[j, 2.2e-31], N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := -27 \cdot \left(j \cdot k\right)\\
\mathbf{if}\;j \leq -4.6 \cdot 10^{+139}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -5.3 \cdot 10^{-55}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;j \leq 1.12 \cdot 10^{-96}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;j \leq 2.2 \cdot 10^{-31}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -4.6e139 or 2.2000000000000001e-31 < j Initial program 83.8%
Taylor expanded in x around -inf
Simplified78.8%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-lowering-*.f6446.7%
Simplified46.7%
if -4.6e139 < j < -5.3000000000000003e-55Initial program 94.9%
Taylor expanded in i around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6426.7%
Simplified26.7%
if -5.3000000000000003e-55 < j < 1.1200000000000001e-96Initial program 90.2%
Taylor expanded in b around inf
*-lowering-*.f6431.0%
Simplified31.0%
if 1.1200000000000001e-96 < j < 2.2000000000000001e-31Initial program 80.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6441.9%
Simplified41.9%
Final simplification37.0%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= x -2.05e-64)
(- (- (* b c) (* (* x 4.0) i)) (* (* j 27.0) k))
(if (<= x 3.2e+27)
(+ (* b c) (+ (* j (* k -27.0)) (* -4.0 (* t a))))
(* x (+ (* t (* 18.0 (* y z))) (* i -4.0))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (x <= -2.05e-64) {
tmp = ((b * c) - ((x * 4.0) * i)) - ((j * 27.0) * k);
} else if (x <= 3.2e+27) {
tmp = (b * c) + ((j * (k * -27.0)) + (-4.0 * (t * a)));
} else {
tmp = x * ((t * (18.0 * (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.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (x <= (-2.05d-64)) then
tmp = ((b * c) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
else if (x <= 3.2d+27) then
tmp = (b * c) + ((j * (k * (-27.0d0))) + ((-4.0d0) * (t * a)))
else
tmp = x * ((t * (18.0d0 * (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;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (x <= -2.05e-64) {
tmp = ((b * c) - ((x * 4.0) * i)) - ((j * 27.0) * k);
} else if (x <= 3.2e+27) {
tmp = (b * c) + ((j * (k * -27.0)) + (-4.0 * (t * a)));
} else {
tmp = x * ((t * (18.0 * (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]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if x <= -2.05e-64: tmp = ((b * c) - ((x * 4.0) * i)) - ((j * 27.0) * k) elif x <= 3.2e+27: tmp = (b * c) + ((j * (k * -27.0)) + (-4.0 * (t * a))) else: tmp = x * ((t * (18.0 * (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]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (x <= -2.05e-64) tmp = Float64(Float64(Float64(b * c) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)); elseif (x <= 3.2e+27) tmp = Float64(Float64(b * c) + Float64(Float64(j * Float64(k * -27.0)) + Float64(-4.0 * Float64(t * a)))); else tmp = Float64(x * Float64(Float64(t * Float64(18.0 * 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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (x <= -2.05e-64)
tmp = ((b * c) - ((x * 4.0) * i)) - ((j * 27.0) * k);
elseif (x <= 3.2e+27)
tmp = (b * c) + ((j * (k * -27.0)) + (-4.0 * (t * a)));
else
tmp = x * ((t * (18.0 * (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. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[x, -2.05e-64], N[(N[(N[(b * c), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e+27], N[(N[(b * c), $MachinePrecision] + N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(t * N[(18.0 * 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])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.05 \cdot 10^{-64}:\\
\;\;\;\;\left(b \cdot c - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+27}:\\
\;\;\;\;b \cdot c + \left(j \cdot \left(k \cdot -27\right) + -4 \cdot \left(t \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(t \cdot \left(18 \cdot \left(y \cdot z\right)\right) + i \cdot -4\right)\\
\end{array}
\end{array}
if x < -2.05e-64Initial program 81.4%
Taylor expanded in t around 0
*-lowering-*.f6471.1%
Simplified71.1%
if -2.05e-64 < x < 3.20000000000000015e27Initial program 95.9%
Taylor expanded in x around 0
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-lft-neg-inN/A
metadata-evalN/A
*-lowering-*.f64N/A
*-lowering-*.f6476.5%
Simplified76.5%
if 3.20000000000000015e27 < x Initial program 78.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6467.6%
Simplified67.6%
Final simplification72.9%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* x (+ (* t (* 18.0 (* y z))) (* i -4.0)))))
(if (<= i -1.05e+146)
t_1
(if (<= i 1.2e+101)
(+ (* b c) (+ (* j (* k -27.0)) (* -4.0 (* t a))))
t_1))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * ((t * (18.0 * (y * z))) + (i * -4.0));
double tmp;
if (i <= -1.05e+146) {
tmp = t_1;
} else if (i <= 1.2e+101) {
tmp = (b * c) + ((j * (k * -27.0)) + (-4.0 * (t * a)));
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((t * (18.0d0 * (y * z))) + (i * (-4.0d0)))
if (i <= (-1.05d+146)) then
tmp = t_1
else if (i <= 1.2d+101) then
tmp = (b * c) + ((j * (k * (-27.0d0))) + ((-4.0d0) * (t * a)))
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * ((t * (18.0 * (y * z))) + (i * -4.0));
double tmp;
if (i <= -1.05e+146) {
tmp = t_1;
} else if (i <= 1.2e+101) {
tmp = (b * c) + ((j * (k * -27.0)) + (-4.0 * (t * a)));
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = x * ((t * (18.0 * (y * z))) + (i * -4.0)) tmp = 0 if i <= -1.05e+146: tmp = t_1 elif i <= 1.2e+101: tmp = (b * c) + ((j * (k * -27.0)) + (-4.0 * (t * a))) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(x * Float64(Float64(t * Float64(18.0 * Float64(y * z))) + Float64(i * -4.0))) tmp = 0.0 if (i <= -1.05e+146) tmp = t_1; elseif (i <= 1.2e+101) tmp = Float64(Float64(b * c) + Float64(Float64(j * Float64(k * -27.0)) + Float64(-4.0 * Float64(t * a)))); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = x * ((t * (18.0 * (y * z))) + (i * -4.0));
tmp = 0.0;
if (i <= -1.05e+146)
tmp = t_1;
elseif (i <= 1.2e+101)
tmp = (b * c) + ((j * (k * -27.0)) + (-4.0 * (t * a)));
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(N[(t * N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.05e+146], t$95$1, If[LessEqual[i, 1.2e+101], N[(N[(b * c), $MachinePrecision] + N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * N[(t * a), $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])\\
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot \left(18 \cdot \left(y \cdot z\right)\right) + i \cdot -4\right)\\
\mathbf{if}\;i \leq -1.05 \cdot 10^{+146}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.2 \cdot 10^{+101}:\\
\;\;\;\;b \cdot c + \left(j \cdot \left(k \cdot -27\right) + -4 \cdot \left(t \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.05e146 or 1.19999999999999994e101 < i Initial program 81.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6466.6%
Simplified66.6%
if -1.05e146 < i < 1.19999999999999994e101Initial program 90.7%
Taylor expanded in x around 0
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-lft-neg-inN/A
metadata-evalN/A
*-lowering-*.f64N/A
*-lowering-*.f6473.1%
Simplified73.1%
Final simplification71.0%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= j -4e+139)
(* k (* j -27.0))
(if (<= j -8.6e-56)
(* -4.0 (+ (* x i) (* t a)))
(if (<= j 2.3e-31)
(+ (* b c) (* -4.0 (* t a)))
(* t (/ (* j (* k -27.0)) t))))))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 (j <= -4e+139) {
tmp = k * (j * -27.0);
} else if (j <= -8.6e-56) {
tmp = -4.0 * ((x * i) + (t * a));
} else if (j <= 2.3e-31) {
tmp = (b * c) + (-4.0 * (t * a));
} else {
tmp = t * ((j * (k * -27.0)) / t);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 (j <= (-4d+139)) then
tmp = k * (j * (-27.0d0))
else if (j <= (-8.6d-56)) then
tmp = (-4.0d0) * ((x * i) + (t * a))
else if (j <= 2.3d-31) then
tmp = (b * c) + ((-4.0d0) * (t * a))
else
tmp = t * ((j * (k * (-27.0d0))) / t)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
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 (j <= -4e+139) {
tmp = k * (j * -27.0);
} else if (j <= -8.6e-56) {
tmp = -4.0 * ((x * i) + (t * a));
} else if (j <= 2.3e-31) {
tmp = (b * c) + (-4.0 * (t * a));
} else {
tmp = t * ((j * (k * -27.0)) / t);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if j <= -4e+139: tmp = k * (j * -27.0) elif j <= -8.6e-56: tmp = -4.0 * ((x * i) + (t * a)) elif j <= 2.3e-31: tmp = (b * c) + (-4.0 * (t * a)) else: tmp = t * ((j * (k * -27.0)) / t) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (j <= -4e+139) tmp = Float64(k * Float64(j * -27.0)); elseif (j <= -8.6e-56) tmp = Float64(-4.0 * Float64(Float64(x * i) + Float64(t * a))); elseif (j <= 2.3e-31) tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))); else tmp = Float64(t * Float64(Float64(j * Float64(k * -27.0)) / t)); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (j <= -4e+139)
tmp = k * (j * -27.0);
elseif (j <= -8.6e-56)
tmp = -4.0 * ((x * i) + (t * a));
elseif (j <= 2.3e-31)
tmp = (b * c) + (-4.0 * (t * a));
else
tmp = t * ((j * (k * -27.0)) / t);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[j, -4e+139], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -8.6e-56], N[(-4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.3e-31], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4 \cdot 10^{+139}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;j \leq -8.6 \cdot 10^{-56}:\\
\;\;\;\;-4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{-31}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{j \cdot \left(k \cdot -27\right)}{t}\\
\end{array}
\end{array}
if j < -4.00000000000000013e139Initial program 74.9%
--lowering--.f64N/A
Applied egg-rr74.8%
Taylor expanded in j around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6461.1%
Simplified61.1%
if -4.00000000000000013e139 < j < -8.6000000000000002e-56Initial program 94.9%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6458.5%
Simplified58.5%
Taylor expanded in j around 0
cancel-sign-sub-invN/A
metadata-evalN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6446.4%
Simplified46.4%
if -8.6000000000000002e-56 < j < 2.2999999999999998e-31Initial program 88.9%
Taylor expanded in x around 0
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-lft-neg-inN/A
metadata-evalN/A
*-lowering-*.f64N/A
*-lowering-*.f6457.5%
Simplified57.5%
Taylor expanded in j around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6452.7%
Simplified52.7%
if 2.2999999999999998e-31 < j Initial program 88.0%
Taylor expanded in x around 0
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-lft-neg-inN/A
metadata-evalN/A
*-lowering-*.f64N/A
*-lowering-*.f6469.7%
Simplified69.7%
Taylor expanded in t around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate-+l+N/A
metadata-evalN/A
cancel-sign-sub-invN/A
associate-*r/N/A
div-subN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified61.4%
Taylor expanded in k around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6439.5%
Simplified39.5%
Final simplification49.3%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* -27.0 (* j k))))
(if (<= j -1.52e+116)
t_1
(if (<= j 1.55e-99) (* b c) (if (<= j 2.3e-31) (* -4.0 (* t a)) t_1)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -27.0 * (j * k);
double tmp;
if (j <= -1.52e+116) {
tmp = t_1;
} else if (j <= 1.55e-99) {
tmp = b * c;
} else if (j <= 2.3e-31) {
tmp = -4.0 * (t * a);
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (-27.0d0) * (j * k)
if (j <= (-1.52d+116)) then
tmp = t_1
else if (j <= 1.55d-99) then
tmp = b * c
else if (j <= 2.3d-31) then
tmp = (-4.0d0) * (t * a)
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -27.0 * (j * k);
double tmp;
if (j <= -1.52e+116) {
tmp = t_1;
} else if (j <= 1.55e-99) {
tmp = b * c;
} else if (j <= 2.3e-31) {
tmp = -4.0 * (t * a);
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = -27.0 * (j * k) tmp = 0 if j <= -1.52e+116: tmp = t_1 elif j <= 1.55e-99: tmp = b * c elif j <= 2.3e-31: tmp = -4.0 * (t * a) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-27.0 * Float64(j * k)) tmp = 0.0 if (j <= -1.52e+116) tmp = t_1; elseif (j <= 1.55e-99) tmp = Float64(b * c); elseif (j <= 2.3e-31) tmp = Float64(-4.0 * Float64(t * a)); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = -27.0 * (j * k);
tmp = 0.0;
if (j <= -1.52e+116)
tmp = t_1;
elseif (j <= 1.55e-99)
tmp = b * c;
elseif (j <= 2.3e-31)
tmp = -4.0 * (t * a);
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.52e+116], t$95$1, If[LessEqual[j, 1.55e-99], N[(b * c), $MachinePrecision], If[LessEqual[j, 2.3e-31], N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := -27 \cdot \left(j \cdot k\right)\\
\mathbf{if}\;j \leq -1.52 \cdot 10^{+116}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.55 \cdot 10^{-99}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{-31}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.52e116 or 2.2999999999999998e-31 < j Initial program 83.8%
Taylor expanded in x around -inf
Simplified78.2%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-lowering-*.f6446.0%
Simplified46.0%
if -1.52e116 < j < 1.5499999999999999e-99Initial program 91.9%
Taylor expanded in b around inf
*-lowering-*.f6430.2%
Simplified30.2%
if 1.5499999999999999e-99 < j < 2.2999999999999998e-31Initial program 80.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6441.9%
Simplified41.9%
Final simplification37.4%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= j -1.95e+141)
(* k (* j -27.0))
(if (<= j 2.3e-31)
(* -4.0 (+ (* x i) (* t a)))
(* t (/ (* j (* k -27.0)) t)))))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 (j <= -1.95e+141) {
tmp = k * (j * -27.0);
} else if (j <= 2.3e-31) {
tmp = -4.0 * ((x * i) + (t * a));
} else {
tmp = t * ((j * (k * -27.0)) / t);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 (j <= (-1.95d+141)) then
tmp = k * (j * (-27.0d0))
else if (j <= 2.3d-31) then
tmp = (-4.0d0) * ((x * i) + (t * a))
else
tmp = t * ((j * (k * (-27.0d0))) / t)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
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 (j <= -1.95e+141) {
tmp = k * (j * -27.0);
} else if (j <= 2.3e-31) {
tmp = -4.0 * ((x * i) + (t * a));
} else {
tmp = t * ((j * (k * -27.0)) / t);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if j <= -1.95e+141: tmp = k * (j * -27.0) elif j <= 2.3e-31: tmp = -4.0 * ((x * i) + (t * a)) else: tmp = t * ((j * (k * -27.0)) / t) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (j <= -1.95e+141) tmp = Float64(k * Float64(j * -27.0)); elseif (j <= 2.3e-31) tmp = Float64(-4.0 * Float64(Float64(x * i) + Float64(t * a))); else tmp = Float64(t * Float64(Float64(j * Float64(k * -27.0)) / t)); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (j <= -1.95e+141)
tmp = k * (j * -27.0);
elseif (j <= 2.3e-31)
tmp = -4.0 * ((x * i) + (t * a));
else
tmp = t * ((j * (k * -27.0)) / t);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[j, -1.95e+141], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.3e-31], N[(-4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.95 \cdot 10^{+141}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{-31}:\\
\;\;\;\;-4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{j \cdot \left(k \cdot -27\right)}{t}\\
\end{array}
\end{array}
if j < -1.94999999999999996e141Initial program 74.9%
--lowering--.f64N/A
Applied egg-rr74.8%
Taylor expanded in j around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6461.1%
Simplified61.1%
if -1.94999999999999996e141 < j < 2.2999999999999998e-31Initial program 90.5%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6455.2%
Simplified55.2%
Taylor expanded in j around 0
cancel-sign-sub-invN/A
metadata-evalN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.9%
Simplified47.9%
if 2.2999999999999998e-31 < j Initial program 88.0%
Taylor expanded in x around 0
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-lft-neg-inN/A
metadata-evalN/A
*-lowering-*.f64N/A
*-lowering-*.f6469.7%
Simplified69.7%
Taylor expanded in t around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate-+l+N/A
metadata-evalN/A
cancel-sign-sub-invN/A
associate-*r/N/A
div-subN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified61.4%
Taylor expanded in k around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6439.5%
Simplified39.5%
Final simplification47.3%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (<= j -1.5e+139) (* k (* j -27.0)) (if (<= j 2.3e-31) (* -4.0 (+ (* x i) (* t a))) (* j (* k -27.0)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -1.5e+139) {
tmp = k * (j * -27.0);
} else if (j <= 2.3e-31) {
tmp = -4.0 * ((x * i) + (t * a));
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (j <= (-1.5d+139)) then
tmp = k * (j * (-27.0d0))
else if (j <= 2.3d-31) then
tmp = (-4.0d0) * ((x * i) + (t * a))
else
tmp = j * (k * (-27.0d0))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (j <= -1.5e+139) {
tmp = k * (j * -27.0);
} else if (j <= 2.3e-31) {
tmp = -4.0 * ((x * i) + (t * a));
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if j <= -1.5e+139: tmp = k * (j * -27.0) elif j <= 2.3e-31: tmp = -4.0 * ((x * i) + (t * a)) else: tmp = j * (k * -27.0) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (j <= -1.5e+139) tmp = Float64(k * Float64(j * -27.0)); elseif (j <= 2.3e-31) tmp = Float64(-4.0 * Float64(Float64(x * i) + Float64(t * a))); 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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (j <= -1.5e+139)
tmp = k * (j * -27.0);
elseif (j <= 2.3e-31)
tmp = -4.0 * ((x * i) + (t * a));
else
tmp = j * (k * -27.0);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[j, -1.5e+139], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.3e-31], N[(-4.0 * N[(N[(x * i), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $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])\\
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.5 \cdot 10^{+139}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{-31}:\\
\;\;\;\;-4 \cdot \left(x \cdot i + t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if j < -1.5e139Initial program 74.9%
--lowering--.f64N/A
Applied egg-rr74.8%
Taylor expanded in j around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6461.1%
Simplified61.1%
if -1.5e139 < j < 2.2999999999999998e-31Initial program 90.5%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6455.2%
Simplified55.2%
Taylor expanded in j around 0
cancel-sign-sub-invN/A
metadata-evalN/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.9%
Simplified47.9%
if 2.2999999999999998e-31 < j Initial program 88.0%
Taylor expanded in j around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6439.9%
Simplified39.9%
Final simplification47.4%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (let* ((t_1 (* -27.0 (* j k)))) (if (<= j -3.8e+113) t_1 (if (<= j 2.15e-78) (* b c) t_1))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -27.0 * (j * k);
double tmp;
if (j <= -3.8e+113) {
tmp = t_1;
} else if (j <= 2.15e-78) {
tmp = 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.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (-27.0d0) * (j * k)
if (j <= (-3.8d+113)) then
tmp = t_1
else if (j <= 2.15d-78) then
tmp = 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;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = -27.0 * (j * k);
double tmp;
if (j <= -3.8e+113) {
tmp = t_1;
} else if (j <= 2.15e-78) {
tmp = 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]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = -27.0 * (j * k) tmp = 0 if j <= -3.8e+113: tmp = t_1 elif j <= 2.15e-78: tmp = 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]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(-27.0 * Float64(j * k)) tmp = 0.0 if (j <= -3.8e+113) tmp = t_1; elseif (j <= 2.15e-78) tmp = 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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = -27.0 * (j * k);
tmp = 0.0;
if (j <= -3.8e+113)
tmp = t_1;
elseif (j <= 2.15e-78)
tmp = 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.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.8e+113], t$95$1, If[LessEqual[j, 2.15e-78], N[(b * c), $MachinePrecision], t$95$1]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := -27 \cdot \left(j \cdot k\right)\\
\mathbf{if}\;j \leq -3.8 \cdot 10^{+113}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.15 \cdot 10^{-78}:\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -3.8000000000000003e113 or 2.14999999999999997e-78 < j Initial program 84.3%
Taylor expanded in x around -inf
Simplified76.8%
Taylor expanded in j around inf
*-lowering-*.f64N/A
*-lowering-*.f6444.0%
Simplified44.0%
if -3.8000000000000003e113 < j < 2.14999999999999997e-78Initial program 90.8%
Taylor expanded in b around inf
*-lowering-*.f6429.7%
Simplified29.7%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (* b c))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = b * c
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): return b * c
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) return Float64(b * c) end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp = code(x, y, z, t, a, b, c, i, j, k)
tmp = b * c;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(b * c), $MachinePrecision]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
b \cdot c
\end{array}
Initial program 87.9%
Taylor expanded in b around inf
*-lowering-*.f6424.1%
Simplified24.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 2024191
(FPCore (x y z t a b c i j k)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, E"
:precision binary64
:alt
(! :herbie-platform default (if (< t -8105407698770699/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (- (* (* 18 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4)) (- (* (* k j) 27) (* c b))) (if (< t 8284013971902611/50000000000000) (+ (- (* (* 18 y) (* x (* z t))) (* (+ (* a t) (* i x)) 4)) (- (* c b) (* 27 (* k j)))) (- (- (* (* 18 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4)) (- (* (* k j) 27) (* c b))))))
(- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))