
(FPCore (x y z t a b c i j k) :precision binary64 (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
def code(x, y, z, t, a, b, c, i, j, k): return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k) :precision binary64 (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
def code(x, y, z, t, a, b, c, i, j, k): return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\end{array}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* x (* i 4.0)))
(t_2 (* t (* a 4.0)))
(t_3
(- (+ (* b c) (- (* t (* z (* y (* x 18.0)))) t_2)) (* i (* x 4.0)))))
(if (<= t_3 (- INFINITY))
(-
(* z (+ (* -4.0 (/ (* t a) z)) (+ (* 18.0 (* t (* x y))) (/ (* b c) z))))
t_1)
(if (<= t_3 4e+280)
(- t_3 (* k (* j 27.0)))
(if (<= t_3 INFINITY)
(- (+ (* y (* (* x 18.0) (* z t))) (- (* b c) t_2)) t_1)
(* x (- (* 18.0 (* t (* z y))) (* i 4.0))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * (i * 4.0);
double t_2 = t * (a * 4.0);
double t_3 = ((b * c) + ((t * (z * (y * (x * 18.0)))) - t_2)) - (i * (x * 4.0));
double tmp;
if (t_3 <= -((double) INFINITY)) {
tmp = (z * ((-4.0 * ((t * a) / z)) + ((18.0 * (t * (x * y))) + ((b * c) / z)))) - t_1;
} else if (t_3 <= 4e+280) {
tmp = t_3 - (k * (j * 27.0));
} else if (t_3 <= ((double) INFINITY)) {
tmp = ((y * ((x * 18.0) * (z * t))) + ((b * c) - t_2)) - t_1;
} else {
tmp = x * ((18.0 * (t * (z * y))) - (i * 4.0));
}
return tmp;
}
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * (i * 4.0);
double t_2 = t * (a * 4.0);
double t_3 = ((b * c) + ((t * (z * (y * (x * 18.0)))) - t_2)) - (i * (x * 4.0));
double tmp;
if (t_3 <= -Double.POSITIVE_INFINITY) {
tmp = (z * ((-4.0 * ((t * a) / z)) + ((18.0 * (t * (x * y))) + ((b * c) / z)))) - t_1;
} else if (t_3 <= 4e+280) {
tmp = t_3 - (k * (j * 27.0));
} else if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = ((y * ((x * 18.0) * (z * t))) + ((b * c) - t_2)) - t_1;
} else {
tmp = x * ((18.0 * (t * (z * y))) - (i * 4.0));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = x * (i * 4.0) t_2 = t * (a * 4.0) t_3 = ((b * c) + ((t * (z * (y * (x * 18.0)))) - t_2)) - (i * (x * 4.0)) tmp = 0 if t_3 <= -math.inf: tmp = (z * ((-4.0 * ((t * a) / z)) + ((18.0 * (t * (x * y))) + ((b * c) / z)))) - t_1 elif t_3 <= 4e+280: tmp = t_3 - (k * (j * 27.0)) elif t_3 <= math.inf: tmp = ((y * ((x * 18.0) * (z * t))) + ((b * c) - t_2)) - t_1 else: tmp = x * ((18.0 * (t * (z * y))) - (i * 4.0)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(x * Float64(i * 4.0)) t_2 = Float64(t * Float64(a * 4.0)) t_3 = Float64(Float64(Float64(b * c) + Float64(Float64(t * Float64(z * Float64(y * Float64(x * 18.0)))) - t_2)) - Float64(i * Float64(x * 4.0))) tmp = 0.0 if (t_3 <= Float64(-Inf)) tmp = Float64(Float64(z * Float64(Float64(-4.0 * Float64(Float64(t * a) / z)) + Float64(Float64(18.0 * Float64(t * Float64(x * y))) + Float64(Float64(b * c) / z)))) - t_1); elseif (t_3 <= 4e+280) tmp = Float64(t_3 - Float64(k * Float64(j * 27.0))); elseif (t_3 <= Inf) tmp = Float64(Float64(Float64(y * Float64(Float64(x * 18.0) * Float64(z * t))) + Float64(Float64(b * c) - t_2)) - t_1); else tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(z * y))) - Float64(i * 4.0))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = x * (i * 4.0);
t_2 = t * (a * 4.0);
t_3 = ((b * c) + ((t * (z * (y * (x * 18.0)))) - t_2)) - (i * (x * 4.0));
tmp = 0.0;
if (t_3 <= -Inf)
tmp = (z * ((-4.0 * ((t * a) / z)) + ((18.0 * (t * (x * y))) + ((b * c) / z)))) - t_1;
elseif (t_3 <= 4e+280)
tmp = t_3 - (k * (j * 27.0));
elseif (t_3 <= Inf)
tmp = ((y * ((x * 18.0) * (z * t))) + ((b * c) - t_2)) - t_1;
else
tmp = x * ((18.0 * (t * (z * y))) - (i * 4.0));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(b * c), $MachinePrecision] + N[(N[(t * N[(z * N[(y * N[(x * 18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, (-Infinity)], N[(N[(z * N[(N[(-4.0 * N[(N[(t * a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(N[(18.0 * N[(t * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * c), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t$95$3, 4e+280], N[(t$95$3 - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[(N[(N[(y * N[(N[(x * 18.0), $MachinePrecision] * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * c), $MachinePrecision] - t$95$2), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(x * N[(N[(18.0 * N[(t * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := x \cdot \left(i \cdot 4\right)\\
t_2 := t \cdot \left(a \cdot 4\right)\\
t_3 := \left(b \cdot c + \left(t \cdot \left(z \cdot \left(y \cdot \left(x \cdot 18\right)\right)\right) - t\_2\right)\right) - i \cdot \left(x \cdot 4\right)\\
\mathbf{if}\;t\_3 \leq -\infty:\\
\;\;\;\;z \cdot \left(-4 \cdot \frac{t \cdot a}{z} + \left(18 \cdot \left(t \cdot \left(x \cdot y\right)\right) + \frac{b \cdot c}{z}\right)\right) - t\_1\\
\mathbf{elif}\;t\_3 \leq 4 \cdot 10^{+280}:\\
\;\;\;\;t\_3 - k \cdot \left(j \cdot 27\right)\\
\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;\left(y \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot t\right)\right) + \left(b \cdot c - t\_2\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(z \cdot y\right)\right) - i \cdot 4\right)\\
\end{array}
\end{array}
if (-.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)) < -inf.0Initial program 76.9%
Simplified85.1%
Taylor expanded in x around inf 86.9%
associate-*r*86.9%
*-commutative86.9%
Simplified86.9%
Taylor expanded in z around inf 85.1%
if -inf.0 < (-.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)) < 4.0000000000000001e280Initial program 99.8%
if 4.0000000000000001e280 < (-.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)) < +inf.0Initial program 80.4%
Simplified83.8%
Taylor expanded in x around inf 85.7%
associate-*r*85.7%
*-commutative85.7%
Simplified85.7%
associate-*r*83.8%
distribute-rgt-out--83.8%
associate-*l*90.1%
*-commutative90.1%
*-commutative90.1%
Applied egg-rr90.1%
associate-+l-90.1%
associate-*l*95.0%
Applied egg-rr95.0%
if +inf.0 < (-.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)) Initial program 0.0%
Simplified36.8%
Taylor expanded in x around inf 78.9%
Final simplification93.8%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= z 4e+35)
(+
(fma t (fma x (* 18.0 (* z y)) (* a -4.0)) (fma b c (* x (* -4.0 i))))
(* j (* k -27.0)))
(*
z
(-
(/
(- (+ (* -4.0 (* t a)) (* b c)) (+ (* 4.0 (* x i)) (* 27.0 (* j k))))
z)
(* -18.0 (* t (* x y)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (z <= 4e+35) {
tmp = fma(t, fma(x, (18.0 * (z * y)), (a * -4.0)), fma(b, c, (x * (-4.0 * i)))) + (j * (k * -27.0));
} else {
tmp = z * (((((-4.0 * (t * a)) + (b * c)) - ((4.0 * (x * i)) + (27.0 * (j * k)))) / z) - (-18.0 * (t * (x * y))));
}
return tmp;
}
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (z <= 4e+35) tmp = Float64(fma(t, fma(x, Float64(18.0 * Float64(z * y)), Float64(a * -4.0)), fma(b, c, Float64(x * Float64(-4.0 * i)))) + Float64(j * Float64(k * -27.0))); else tmp = Float64(z * Float64(Float64(Float64(Float64(Float64(-4.0 * Float64(t * a)) + Float64(b * c)) - Float64(Float64(4.0 * Float64(x * i)) + Float64(27.0 * Float64(j * k)))) / z) - Float64(-18.0 * Float64(t * Float64(x * y))))); end return tmp end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[z, 4e+35], N[(N[(t * N[(x * N[(18.0 * N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(b * c + N[(x * N[(-4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(N[(N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - N[(-18.0 * N[(t * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq 4 \cdot 10^{+35}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(z \cdot y\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(-4 \cdot i\right)\right)\right) + j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(\frac{\left(-4 \cdot \left(t \cdot a\right) + b \cdot c\right) - \left(4 \cdot \left(x \cdot i\right) + 27 \cdot \left(j \cdot k\right)\right)}{z} - -18 \cdot \left(t \cdot \left(x \cdot y\right)\right)\right)\\
\end{array}
\end{array}
if z < 3.9999999999999999e35Initial program 83.2%
Simplified88.9%
if 3.9999999999999999e35 < z Initial program 81.0%
Simplified79.6%
Taylor expanded in z around -inf 91.9%
Final simplification89.6%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* x (* i 4.0)))
(t_2 (* j (* k -27.0)))
(t_3 (+ t_2 (* i (* x -4.0))))
(t_4 (- (+ (* b c) (* t (- (* (* z y) (* x 18.0)) (* a 4.0)))) t_1))
(t_5 (* k (* j 27.0))))
(if (<= t_5 -1e+152)
t_3
(if (<= t_5 2e-258)
(- (+ (* y (* (* x 18.0) (* z t))) (- (* b c) (* t (* a 4.0)))) t_1)
(if (<= t_5 5e+106)
t_4
(if (<= t_5 2e+194)
(+ t_2 (* t (+ (* a -4.0) (* 18.0 (* x (* z y))))))
(if (<= t_5 1e+209)
t_4
(if (<= t_5 5e+280)
t_3
(* c (+ b (* -27.0 (* j (/ k c)))))))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * (i * 4.0);
double t_2 = j * (k * -27.0);
double t_3 = t_2 + (i * (x * -4.0));
double t_4 = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - t_1;
double t_5 = k * (j * 27.0);
double tmp;
if (t_5 <= -1e+152) {
tmp = t_3;
} else if (t_5 <= 2e-258) {
tmp = ((y * ((x * 18.0) * (z * t))) + ((b * c) - (t * (a * 4.0)))) - t_1;
} else if (t_5 <= 5e+106) {
tmp = t_4;
} else if (t_5 <= 2e+194) {
tmp = t_2 + (t * ((a * -4.0) + (18.0 * (x * (z * y)))));
} else if (t_5 <= 1e+209) {
tmp = t_4;
} else if (t_5 <= 5e+280) {
tmp = t_3;
} else {
tmp = c * (b + (-27.0 * (j * (k / c))));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = x * (i * 4.0d0)
t_2 = j * (k * (-27.0d0))
t_3 = t_2 + (i * (x * (-4.0d0)))
t_4 = ((b * c) + (t * (((z * y) * (x * 18.0d0)) - (a * 4.0d0)))) - t_1
t_5 = k * (j * 27.0d0)
if (t_5 <= (-1d+152)) then
tmp = t_3
else if (t_5 <= 2d-258) then
tmp = ((y * ((x * 18.0d0) * (z * t))) + ((b * c) - (t * (a * 4.0d0)))) - t_1
else if (t_5 <= 5d+106) then
tmp = t_4
else if (t_5 <= 2d+194) then
tmp = t_2 + (t * ((a * (-4.0d0)) + (18.0d0 * (x * (z * y)))))
else if (t_5 <= 1d+209) then
tmp = t_4
else if (t_5 <= 5d+280) then
tmp = t_3
else
tmp = c * (b + ((-27.0d0) * (j * (k / c))))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * (i * 4.0);
double t_2 = j * (k * -27.0);
double t_3 = t_2 + (i * (x * -4.0));
double t_4 = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - t_1;
double t_5 = k * (j * 27.0);
double tmp;
if (t_5 <= -1e+152) {
tmp = t_3;
} else if (t_5 <= 2e-258) {
tmp = ((y * ((x * 18.0) * (z * t))) + ((b * c) - (t * (a * 4.0)))) - t_1;
} else if (t_5 <= 5e+106) {
tmp = t_4;
} else if (t_5 <= 2e+194) {
tmp = t_2 + (t * ((a * -4.0) + (18.0 * (x * (z * y)))));
} else if (t_5 <= 1e+209) {
tmp = t_4;
} else if (t_5 <= 5e+280) {
tmp = t_3;
} else {
tmp = c * (b + (-27.0 * (j * (k / c))));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = x * (i * 4.0) t_2 = j * (k * -27.0) t_3 = t_2 + (i * (x * -4.0)) t_4 = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - t_1 t_5 = k * (j * 27.0) tmp = 0 if t_5 <= -1e+152: tmp = t_3 elif t_5 <= 2e-258: tmp = ((y * ((x * 18.0) * (z * t))) + ((b * c) - (t * (a * 4.0)))) - t_1 elif t_5 <= 5e+106: tmp = t_4 elif t_5 <= 2e+194: tmp = t_2 + (t * ((a * -4.0) + (18.0 * (x * (z * y))))) elif t_5 <= 1e+209: tmp = t_4 elif t_5 <= 5e+280: tmp = t_3 else: tmp = c * (b + (-27.0 * (j * (k / c)))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(x * Float64(i * 4.0)) t_2 = Float64(j * Float64(k * -27.0)) t_3 = Float64(t_2 + Float64(i * Float64(x * -4.0))) t_4 = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(z * y) * Float64(x * 18.0)) - Float64(a * 4.0)))) - t_1) t_5 = Float64(k * Float64(j * 27.0)) tmp = 0.0 if (t_5 <= -1e+152) tmp = t_3; elseif (t_5 <= 2e-258) tmp = Float64(Float64(Float64(y * Float64(Float64(x * 18.0) * Float64(z * t))) + Float64(Float64(b * c) - Float64(t * Float64(a * 4.0)))) - t_1); elseif (t_5 <= 5e+106) tmp = t_4; elseif (t_5 <= 2e+194) tmp = Float64(t_2 + Float64(t * Float64(Float64(a * -4.0) + Float64(18.0 * Float64(x * Float64(z * y)))))); elseif (t_5 <= 1e+209) tmp = t_4; elseif (t_5 <= 5e+280) tmp = t_3; else tmp = Float64(c * Float64(b + Float64(-27.0 * Float64(j * Float64(k / c))))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = x * (i * 4.0);
t_2 = j * (k * -27.0);
t_3 = t_2 + (i * (x * -4.0));
t_4 = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - t_1;
t_5 = k * (j * 27.0);
tmp = 0.0;
if (t_5 <= -1e+152)
tmp = t_3;
elseif (t_5 <= 2e-258)
tmp = ((y * ((x * 18.0) * (z * t))) + ((b * c) - (t * (a * 4.0)))) - t_1;
elseif (t_5 <= 5e+106)
tmp = t_4;
elseif (t_5 <= 2e+194)
tmp = t_2 + (t * ((a * -4.0) + (18.0 * (x * (z * y)))));
elseif (t_5 <= 1e+209)
tmp = t_4;
elseif (t_5 <= 5e+280)
tmp = t_3;
else
tmp = c * (b + (-27.0 * (j * (k / c))));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + N[(i * N[(x * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(z * y), $MachinePrecision] * N[(x * 18.0), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, Block[{t$95$5 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$5, -1e+152], t$95$3, If[LessEqual[t$95$5, 2e-258], N[(N[(N[(y * N[(N[(x * 18.0), $MachinePrecision] * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * c), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t$95$5, 5e+106], t$95$4, If[LessEqual[t$95$5, 2e+194], N[(t$95$2 + N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(18.0 * N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$5, 1e+209], t$95$4, If[LessEqual[t$95$5, 5e+280], t$95$3, N[(c * N[(b + N[(-27.0 * N[(j * N[(k / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := x \cdot \left(i \cdot 4\right)\\
t_2 := j \cdot \left(k \cdot -27\right)\\
t_3 := t\_2 + i \cdot \left(x \cdot -4\right)\\
t_4 := \left(b \cdot c + t \cdot \left(\left(z \cdot y\right) \cdot \left(x \cdot 18\right) - a \cdot 4\right)\right) - t\_1\\
t_5 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;t\_5 \leq -1 \cdot 10^{+152}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_5 \leq 2 \cdot 10^{-258}:\\
\;\;\;\;\left(y \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot t\right)\right) + \left(b \cdot c - t \cdot \left(a \cdot 4\right)\right)\right) - t\_1\\
\mathbf{elif}\;t\_5 \leq 5 \cdot 10^{+106}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t\_5 \leq 2 \cdot 10^{+194}:\\
\;\;\;\;t\_2 + t \cdot \left(a \cdot -4 + 18 \cdot \left(x \cdot \left(z \cdot y\right)\right)\right)\\
\mathbf{elif}\;t\_5 \leq 10^{+209}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t\_5 \leq 5 \cdot 10^{+280}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(b + -27 \cdot \left(j \cdot \frac{k}{c}\right)\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1e152 or 1.0000000000000001e209 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 5.0000000000000002e280Initial program 78.8%
Simplified87.1%
Taylor expanded in i around inf 85.2%
metadata-eval85.2%
distribute-lft-neg-in85.2%
*-commutative85.2%
associate-*r*85.2%
distribute-rgt-neg-in85.2%
distribute-rgt-neg-in85.2%
metadata-eval85.2%
*-commutative85.2%
Simplified85.2%
if -1e152 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.99999999999999991e-258Initial program 84.3%
Simplified85.3%
Taylor expanded in x around inf 81.6%
associate-*r*81.6%
*-commutative81.6%
Simplified81.6%
associate-*r*81.5%
distribute-rgt-out--80.6%
associate-*l*83.9%
*-commutative83.9%
*-commutative83.9%
Applied egg-rr83.9%
associate-+l-83.9%
associate-*l*87.5%
Applied egg-rr87.5%
if 1.99999999999999991e-258 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 4.9999999999999998e106 or 1.99999999999999989e194 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.0000000000000001e209Initial program 84.1%
Simplified91.6%
Taylor expanded in x around inf 89.3%
associate-*r*89.3%
*-commutative89.3%
Simplified89.3%
if 4.9999999999999998e106 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.99999999999999989e194Initial program 92.7%
Simplified92.6%
Taylor expanded in t around inf 92.7%
if 5.0000000000000002e280 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 66.6%
pow166.6%
associate-*l*73.2%
*-commutative73.2%
Applied egg-rr73.2%
unpow173.2%
associate-*l*73.2%
*-commutative73.2%
Simplified73.2%
Taylor expanded in b around inf 86.6%
Taylor expanded in c around inf 86.4%
associate-/l*93.3%
Simplified93.3%
Final simplification88.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* k -27.0)))
(t_2 (+ t_1 (* i (* x -4.0))))
(t_3 (* k (* j 27.0)))
(t_4
(-
(+ (* b c) (* t (- (* (* z y) (* x 18.0)) (* a 4.0))))
(* x (* i 4.0)))))
(if (<= t_3 -1e+152)
t_2
(if (<= t_3 5e+106)
t_4
(if (<= t_3 2e+194)
(+ t_1 (* t (+ (* a -4.0) (* 18.0 (* x (* z y))))))
(if (<= t_3 1e+209)
t_4
(if (<= t_3 5e+280) t_2 (* c (+ b (* -27.0 (* j (/ k c))))))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = t_1 + (i * (x * -4.0));
double t_3 = k * (j * 27.0);
double t_4 = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - (x * (i * 4.0));
double tmp;
if (t_3 <= -1e+152) {
tmp = t_2;
} else if (t_3 <= 5e+106) {
tmp = t_4;
} else if (t_3 <= 2e+194) {
tmp = t_1 + (t * ((a * -4.0) + (18.0 * (x * (z * y)))));
} else if (t_3 <= 1e+209) {
tmp = t_4;
} else if (t_3 <= 5e+280) {
tmp = t_2;
} else {
tmp = c * (b + (-27.0 * (j * (k / c))));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
t_2 = t_1 + (i * (x * (-4.0d0)))
t_3 = k * (j * 27.0d0)
t_4 = ((b * c) + (t * (((z * y) * (x * 18.0d0)) - (a * 4.0d0)))) - (x * (i * 4.0d0))
if (t_3 <= (-1d+152)) then
tmp = t_2
else if (t_3 <= 5d+106) then
tmp = t_4
else if (t_3 <= 2d+194) then
tmp = t_1 + (t * ((a * (-4.0d0)) + (18.0d0 * (x * (z * y)))))
else if (t_3 <= 1d+209) then
tmp = t_4
else if (t_3 <= 5d+280) then
tmp = t_2
else
tmp = c * (b + ((-27.0d0) * (j * (k / c))))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = t_1 + (i * (x * -4.0));
double t_3 = k * (j * 27.0);
double t_4 = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - (x * (i * 4.0));
double tmp;
if (t_3 <= -1e+152) {
tmp = t_2;
} else if (t_3 <= 5e+106) {
tmp = t_4;
} else if (t_3 <= 2e+194) {
tmp = t_1 + (t * ((a * -4.0) + (18.0 * (x * (z * y)))));
} else if (t_3 <= 1e+209) {
tmp = t_4;
} else if (t_3 <= 5e+280) {
tmp = t_2;
} else {
tmp = c * (b + (-27.0 * (j * (k / c))));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = j * (k * -27.0) t_2 = t_1 + (i * (x * -4.0)) t_3 = k * (j * 27.0) t_4 = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - (x * (i * 4.0)) tmp = 0 if t_3 <= -1e+152: tmp = t_2 elif t_3 <= 5e+106: tmp = t_4 elif t_3 <= 2e+194: tmp = t_1 + (t * ((a * -4.0) + (18.0 * (x * (z * y))))) elif t_3 <= 1e+209: tmp = t_4 elif t_3 <= 5e+280: tmp = t_2 else: tmp = c * (b + (-27.0 * (j * (k / c)))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(j * Float64(k * -27.0)) t_2 = Float64(t_1 + Float64(i * Float64(x * -4.0))) t_3 = Float64(k * Float64(j * 27.0)) t_4 = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(z * y) * Float64(x * 18.0)) - Float64(a * 4.0)))) - Float64(x * Float64(i * 4.0))) tmp = 0.0 if (t_3 <= -1e+152) tmp = t_2; elseif (t_3 <= 5e+106) tmp = t_4; elseif (t_3 <= 2e+194) tmp = Float64(t_1 + Float64(t * Float64(Float64(a * -4.0) + Float64(18.0 * Float64(x * Float64(z * y)))))); elseif (t_3 <= 1e+209) tmp = t_4; elseif (t_3 <= 5e+280) tmp = t_2; else tmp = Float64(c * Float64(b + Float64(-27.0 * Float64(j * Float64(k / c))))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = j * (k * -27.0);
t_2 = t_1 + (i * (x * -4.0));
t_3 = k * (j * 27.0);
t_4 = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - (x * (i * 4.0));
tmp = 0.0;
if (t_3 <= -1e+152)
tmp = t_2;
elseif (t_3 <= 5e+106)
tmp = t_4;
elseif (t_3 <= 2e+194)
tmp = t_1 + (t * ((a * -4.0) + (18.0 * (x * (z * y)))));
elseif (t_3 <= 1e+209)
tmp = t_4;
elseif (t_3 <= 5e+280)
tmp = t_2;
else
tmp = c * (b + (-27.0 * (j * (k / c))));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(i * N[(x * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(z * y), $MachinePrecision] * N[(x * 18.0), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, -1e+152], t$95$2, If[LessEqual[t$95$3, 5e+106], t$95$4, If[LessEqual[t$95$3, 2e+194], N[(t$95$1 + N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(18.0 * N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 1e+209], t$95$4, If[LessEqual[t$95$3, 5e+280], t$95$2, N[(c * N[(b + N[(-27.0 * N[(j * N[(k / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := t\_1 + i \cdot \left(x \cdot -4\right)\\
t_3 := k \cdot \left(j \cdot 27\right)\\
t_4 := \left(b \cdot c + t \cdot \left(\left(z \cdot y\right) \cdot \left(x \cdot 18\right) - a \cdot 4\right)\right) - x \cdot \left(i \cdot 4\right)\\
\mathbf{if}\;t\_3 \leq -1 \cdot 10^{+152}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_3 \leq 5 \cdot 10^{+106}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+194}:\\
\;\;\;\;t\_1 + t \cdot \left(a \cdot -4 + 18 \cdot \left(x \cdot \left(z \cdot y\right)\right)\right)\\
\mathbf{elif}\;t\_3 \leq 10^{+209}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t\_3 \leq 5 \cdot 10^{+280}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(b + -27 \cdot \left(j \cdot \frac{k}{c}\right)\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1e152 or 1.0000000000000001e209 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 5.0000000000000002e280Initial program 78.8%
Simplified87.1%
Taylor expanded in i around inf 85.2%
metadata-eval85.2%
distribute-lft-neg-in85.2%
*-commutative85.2%
associate-*r*85.2%
distribute-rgt-neg-in85.2%
distribute-rgt-neg-in85.2%
metadata-eval85.2%
*-commutative85.2%
Simplified85.2%
if -1e152 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 4.9999999999999998e106 or 1.99999999999999989e194 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.0000000000000001e209Initial program 84.2%
Simplified87.7%
Taylor expanded in x around inf 84.5%
associate-*r*84.5%
*-commutative84.5%
Simplified84.5%
if 4.9999999999999998e106 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.99999999999999989e194Initial program 92.7%
Simplified92.6%
Taylor expanded in t around inf 92.7%
if 5.0000000000000002e280 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 66.6%
pow166.6%
associate-*l*73.2%
*-commutative73.2%
Applied egg-rr73.2%
unpow173.2%
associate-*l*73.2%
*-commutative73.2%
Simplified73.2%
Taylor expanded in b around inf 86.6%
Taylor expanded in c around inf 86.4%
associate-/l*93.3%
Simplified93.3%
Final simplification85.6%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* k -27.0))) (t_2 (+ t_1 (* i (* x -4.0)))))
(if (<= (* b c) -1e+76)
(* a (- (/ (* b c) a) (* t 4.0)))
(if (<= (* b c) -2e-160)
t_2
(if (<= (* b c) -4e-290)
(* t (- (* 18.0 (* x (* z y))) (* a 4.0)))
(if (<= (* b c) 0.0)
t_2
(if (<= (* b c) 4e-104)
(+ t_1 (* t (* a -4.0)))
(if (<= (* b c) 4e+177)
t_2
(* c (+ b (* -27.0 (* j (/ k c)))))))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = t_1 + (i * (x * -4.0));
double tmp;
if ((b * c) <= -1e+76) {
tmp = a * (((b * c) / a) - (t * 4.0));
} else if ((b * c) <= -2e-160) {
tmp = t_2;
} else if ((b * c) <= -4e-290) {
tmp = t * ((18.0 * (x * (z * y))) - (a * 4.0));
} else if ((b * c) <= 0.0) {
tmp = t_2;
} else if ((b * c) <= 4e-104) {
tmp = t_1 + (t * (a * -4.0));
} else if ((b * c) <= 4e+177) {
tmp = t_2;
} else {
tmp = c * (b + (-27.0 * (j * (k / c))));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
t_2 = t_1 + (i * (x * (-4.0d0)))
if ((b * c) <= (-1d+76)) then
tmp = a * (((b * c) / a) - (t * 4.0d0))
else if ((b * c) <= (-2d-160)) then
tmp = t_2
else if ((b * c) <= (-4d-290)) then
tmp = t * ((18.0d0 * (x * (z * y))) - (a * 4.0d0))
else if ((b * c) <= 0.0d0) then
tmp = t_2
else if ((b * c) <= 4d-104) then
tmp = t_1 + (t * (a * (-4.0d0)))
else if ((b * c) <= 4d+177) then
tmp = t_2
else
tmp = c * (b + ((-27.0d0) * (j * (k / c))))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = t_1 + (i * (x * -4.0));
double tmp;
if ((b * c) <= -1e+76) {
tmp = a * (((b * c) / a) - (t * 4.0));
} else if ((b * c) <= -2e-160) {
tmp = t_2;
} else if ((b * c) <= -4e-290) {
tmp = t * ((18.0 * (x * (z * y))) - (a * 4.0));
} else if ((b * c) <= 0.0) {
tmp = t_2;
} else if ((b * c) <= 4e-104) {
tmp = t_1 + (t * (a * -4.0));
} else if ((b * c) <= 4e+177) {
tmp = t_2;
} else {
tmp = c * (b + (-27.0 * (j * (k / c))));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = j * (k * -27.0) t_2 = t_1 + (i * (x * -4.0)) tmp = 0 if (b * c) <= -1e+76: tmp = a * (((b * c) / a) - (t * 4.0)) elif (b * c) <= -2e-160: tmp = t_2 elif (b * c) <= -4e-290: tmp = t * ((18.0 * (x * (z * y))) - (a * 4.0)) elif (b * c) <= 0.0: tmp = t_2 elif (b * c) <= 4e-104: tmp = t_1 + (t * (a * -4.0)) elif (b * c) <= 4e+177: tmp = t_2 else: tmp = c * (b + (-27.0 * (j * (k / c)))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(j * Float64(k * -27.0)) t_2 = Float64(t_1 + Float64(i * Float64(x * -4.0))) tmp = 0.0 if (Float64(b * c) <= -1e+76) tmp = Float64(a * Float64(Float64(Float64(b * c) / a) - Float64(t * 4.0))); elseif (Float64(b * c) <= -2e-160) tmp = t_2; elseif (Float64(b * c) <= -4e-290) tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(z * y))) - Float64(a * 4.0))); elseif (Float64(b * c) <= 0.0) tmp = t_2; elseif (Float64(b * c) <= 4e-104) tmp = Float64(t_1 + Float64(t * Float64(a * -4.0))); elseif (Float64(b * c) <= 4e+177) tmp = t_2; else tmp = Float64(c * Float64(b + Float64(-27.0 * Float64(j * Float64(k / c))))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = j * (k * -27.0);
t_2 = t_1 + (i * (x * -4.0));
tmp = 0.0;
if ((b * c) <= -1e+76)
tmp = a * (((b * c) / a) - (t * 4.0));
elseif ((b * c) <= -2e-160)
tmp = t_2;
elseif ((b * c) <= -4e-290)
tmp = t * ((18.0 * (x * (z * y))) - (a * 4.0));
elseif ((b * c) <= 0.0)
tmp = t_2;
elseif ((b * c) <= 4e-104)
tmp = t_1 + (t * (a * -4.0));
elseif ((b * c) <= 4e+177)
tmp = t_2;
else
tmp = c * (b + (-27.0 * (j * (k / c))));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(i * N[(x * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -1e+76], N[(a * N[(N[(N[(b * c), $MachinePrecision] / a), $MachinePrecision] - N[(t * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -2e-160], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], -4e-290], N[(t * N[(N[(18.0 * N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 0.0], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], 4e-104], N[(t$95$1 + N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 4e+177], t$95$2, N[(c * N[(b + N[(-27.0 * N[(j * N[(k / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := t\_1 + i \cdot \left(x \cdot -4\right)\\
\mathbf{if}\;b \cdot c \leq -1 \cdot 10^{+76}:\\
\;\;\;\;a \cdot \left(\frac{b \cdot c}{a} - t \cdot 4\right)\\
\mathbf{elif}\;b \cdot c \leq -2 \cdot 10^{-160}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \cdot c \leq -4 \cdot 10^{-290}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(z \cdot y\right)\right) - a \cdot 4\right)\\
\mathbf{elif}\;b \cdot c \leq 0:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \cdot c \leq 4 \cdot 10^{-104}:\\
\;\;\;\;t\_1 + t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq 4 \cdot 10^{+177}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(b + -27 \cdot \left(j \cdot \frac{k}{c}\right)\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -1e76Initial program 81.6%
Simplified87.9%
Taylor expanded in x around inf 80.3%
associate-*r*80.3%
*-commutative80.3%
Simplified80.3%
associate-*r*80.0%
distribute-rgt-out--77.9%
associate-*l*77.5%
*-commutative77.5%
*-commutative77.5%
Applied egg-rr77.5%
Taylor expanded in x around 0 65.9%
Taylor expanded in a around inf 71.9%
if -1e76 < (*.f64 b c) < -2e-160 or -4.0000000000000003e-290 < (*.f64 b c) < -0.0 or 3.99999999999999971e-104 < (*.f64 b c) < 4e177Initial program 83.3%
Simplified88.9%
Taylor expanded in i around inf 56.0%
metadata-eval56.0%
distribute-lft-neg-in56.0%
*-commutative56.0%
associate-*r*56.0%
distribute-rgt-neg-in56.0%
distribute-rgt-neg-in56.0%
metadata-eval56.0%
*-commutative56.0%
Simplified56.0%
if -2e-160 < (*.f64 b c) < -4.0000000000000003e-290Initial program 84.2%
Simplified94.7%
Taylor expanded in x around inf 84.8%
associate-*r*84.8%
*-commutative84.8%
Simplified84.8%
associate-*r*84.8%
distribute-rgt-out--74.3%
associate-*l*74.3%
*-commutative74.3%
*-commutative74.3%
Applied egg-rr74.3%
Taylor expanded in t around inf 79.7%
if -0.0 < (*.f64 b c) < 3.99999999999999971e-104Initial program 82.9%
Simplified80.1%
Taylor expanded in a around inf 66.0%
associate-*r*66.0%
*-commutative66.0%
metadata-eval66.0%
distribute-rgt-neg-in66.0%
*-commutative66.0%
distribute-rgt-neg-in66.0%
metadata-eval66.0%
*-commutative66.0%
Simplified66.0%
if 4e177 < (*.f64 b c) Initial program 80.5%
pow180.5%
associate-*l*89.9%
*-commutative89.9%
Applied egg-rr89.9%
unpow189.9%
associate-*l*89.9%
*-commutative89.9%
Simplified89.9%
Taylor expanded in b around inf 85.6%
Taylor expanded in c around inf 85.7%
associate-/l*89.0%
Simplified89.0%
Final simplification65.9%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* x (* i 4.0))) (t_2 (* k (* j 27.0))))
(if (<= t_2 -1e+152)
(+ (* j (* k -27.0)) (* i (* x -4.0)))
(if (<= t_2 2e-258)
(- (+ (* b c) (- (* (* y (* x 18.0)) (* z t)) (* t (* a 4.0)))) t_1)
(if (<= t_2 1e+70)
(- (+ (* b c) (* t (- (* (* z y) (* x 18.0)) (* a 4.0)))) t_1)
(- (- (* b c) (* (* t a) 4.0)) t_2))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * (i * 4.0);
double t_2 = k * (j * 27.0);
double tmp;
if (t_2 <= -1e+152) {
tmp = (j * (k * -27.0)) + (i * (x * -4.0));
} else if (t_2 <= 2e-258) {
tmp = ((b * c) + (((y * (x * 18.0)) * (z * t)) - (t * (a * 4.0)))) - t_1;
} else if (t_2 <= 1e+70) {
tmp = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - t_1;
} else {
tmp = ((b * c) - ((t * a) * 4.0)) - t_2;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (i * 4.0d0)
t_2 = k * (j * 27.0d0)
if (t_2 <= (-1d+152)) then
tmp = (j * (k * (-27.0d0))) + (i * (x * (-4.0d0)))
else if (t_2 <= 2d-258) then
tmp = ((b * c) + (((y * (x * 18.0d0)) * (z * t)) - (t * (a * 4.0d0)))) - t_1
else if (t_2 <= 1d+70) then
tmp = ((b * c) + (t * (((z * y) * (x * 18.0d0)) - (a * 4.0d0)))) - t_1
else
tmp = ((b * c) - ((t * a) * 4.0d0)) - t_2
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * (i * 4.0);
double t_2 = k * (j * 27.0);
double tmp;
if (t_2 <= -1e+152) {
tmp = (j * (k * -27.0)) + (i * (x * -4.0));
} else if (t_2 <= 2e-258) {
tmp = ((b * c) + (((y * (x * 18.0)) * (z * t)) - (t * (a * 4.0)))) - t_1;
} else if (t_2 <= 1e+70) {
tmp = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - t_1;
} else {
tmp = ((b * c) - ((t * a) * 4.0)) - t_2;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = x * (i * 4.0) t_2 = k * (j * 27.0) tmp = 0 if t_2 <= -1e+152: tmp = (j * (k * -27.0)) + (i * (x * -4.0)) elif t_2 <= 2e-258: tmp = ((b * c) + (((y * (x * 18.0)) * (z * t)) - (t * (a * 4.0)))) - t_1 elif t_2 <= 1e+70: tmp = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - t_1 else: tmp = ((b * c) - ((t * a) * 4.0)) - t_2 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(x * Float64(i * 4.0)) t_2 = Float64(k * Float64(j * 27.0)) tmp = 0.0 if (t_2 <= -1e+152) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(i * Float64(x * -4.0))); elseif (t_2 <= 2e-258) tmp = Float64(Float64(Float64(b * c) + Float64(Float64(Float64(y * Float64(x * 18.0)) * Float64(z * t)) - Float64(t * Float64(a * 4.0)))) - t_1); elseif (t_2 <= 1e+70) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(z * y) * Float64(x * 18.0)) - Float64(a * 4.0)))) - t_1); else tmp = Float64(Float64(Float64(b * c) - Float64(Float64(t * a) * 4.0)) - t_2); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = x * (i * 4.0);
t_2 = k * (j * 27.0);
tmp = 0.0;
if (t_2 <= -1e+152)
tmp = (j * (k * -27.0)) + (i * (x * -4.0));
elseif (t_2 <= 2e-258)
tmp = ((b * c) + (((y * (x * 18.0)) * (z * t)) - (t * (a * 4.0)))) - t_1;
elseif (t_2 <= 1e+70)
tmp = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - t_1;
else
tmp = ((b * c) - ((t * a) * 4.0)) - t_2;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+152], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(i * N[(x * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e-258], N[(N[(N[(b * c), $MachinePrecision] + N[(N[(N[(y * N[(x * 18.0), $MachinePrecision]), $MachinePrecision] * N[(z * t), $MachinePrecision]), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[t$95$2, 1e+70], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(z * y), $MachinePrecision] * N[(x * 18.0), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - N[(N[(t * a), $MachinePrecision] * 4.0), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := x \cdot \left(i \cdot 4\right)\\
t_2 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{+152}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + i \cdot \left(x \cdot -4\right)\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{-258}:\\
\;\;\;\;\left(b \cdot c + \left(\left(y \cdot \left(x \cdot 18\right)\right) \cdot \left(z \cdot t\right) - t \cdot \left(a \cdot 4\right)\right)\right) - t\_1\\
\mathbf{elif}\;t\_2 \leq 10^{+70}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(\left(z \cdot y\right) \cdot \left(x \cdot 18\right) - a \cdot 4\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - \left(t \cdot a\right) \cdot 4\right) - t\_2\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -1e152Initial program 76.9%
Simplified84.5%
Taylor expanded in i around inf 82.2%
metadata-eval82.2%
distribute-lft-neg-in82.2%
*-commutative82.2%
associate-*r*82.2%
distribute-rgt-neg-in82.2%
distribute-rgt-neg-in82.2%
metadata-eval82.2%
*-commutative82.2%
Simplified82.2%
if -1e152 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.99999999999999991e-258Initial program 84.3%
Simplified85.3%
Taylor expanded in x around inf 81.6%
associate-*r*81.6%
*-commutative81.6%
Simplified81.6%
associate-*r*81.5%
distribute-rgt-out--80.6%
associate-*l*83.9%
*-commutative83.9%
*-commutative83.9%
Applied egg-rr83.9%
if 1.99999999999999991e-258 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.00000000000000007e70Initial program 80.4%
Simplified91.3%
Taylor expanded in x around inf 90.3%
associate-*r*90.3%
*-commutative90.3%
Simplified90.3%
if 1.00000000000000007e70 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 86.0%
Taylor expanded in x around 0 80.4%
Final simplification84.3%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* x (- (* 18.0 (* t (* z y))) (* i 4.0)))))
(if (<= x -1.9e+48)
t_1
(if (<= x -2.8e+14)
(* a (- (/ (* b c) a) (* t 4.0)))
(if (<= x -2500000.0)
t_1
(if (<= x -2.8e-80)
(*
z
(+
(* -4.0 (/ (* t a) z))
(+ (* 18.0 (* t (* x y))) (/ (* b c) z))))
(if (<= x 1.9e+99)
(- (- (* b c) (* (* t a) 4.0)) (* k (* j 27.0)))
t_1)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * ((18.0 * (t * (z * y))) - (i * 4.0));
double tmp;
if (x <= -1.9e+48) {
tmp = t_1;
} else if (x <= -2.8e+14) {
tmp = a * (((b * c) / a) - (t * 4.0));
} else if (x <= -2500000.0) {
tmp = t_1;
} else if (x <= -2.8e-80) {
tmp = z * ((-4.0 * ((t * a) / z)) + ((18.0 * (t * (x * y))) + ((b * c) / z)));
} else if (x <= 1.9e+99) {
tmp = ((b * c) - ((t * a) * 4.0)) - (k * (j * 27.0));
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((18.0d0 * (t * (z * y))) - (i * 4.0d0))
if (x <= (-1.9d+48)) then
tmp = t_1
else if (x <= (-2.8d+14)) then
tmp = a * (((b * c) / a) - (t * 4.0d0))
else if (x <= (-2500000.0d0)) then
tmp = t_1
else if (x <= (-2.8d-80)) then
tmp = z * (((-4.0d0) * ((t * a) / z)) + ((18.0d0 * (t * (x * y))) + ((b * c) / z)))
else if (x <= 1.9d+99) then
tmp = ((b * c) - ((t * a) * 4.0d0)) - (k * (j * 27.0d0))
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = x * ((18.0 * (t * (z * y))) - (i * 4.0));
double tmp;
if (x <= -1.9e+48) {
tmp = t_1;
} else if (x <= -2.8e+14) {
tmp = a * (((b * c) / a) - (t * 4.0));
} else if (x <= -2500000.0) {
tmp = t_1;
} else if (x <= -2.8e-80) {
tmp = z * ((-4.0 * ((t * a) / z)) + ((18.0 * (t * (x * y))) + ((b * c) / z)));
} else if (x <= 1.9e+99) {
tmp = ((b * c) - ((t * a) * 4.0)) - (k * (j * 27.0));
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = x * ((18.0 * (t * (z * y))) - (i * 4.0)) tmp = 0 if x <= -1.9e+48: tmp = t_1 elif x <= -2.8e+14: tmp = a * (((b * c) / a) - (t * 4.0)) elif x <= -2500000.0: tmp = t_1 elif x <= -2.8e-80: tmp = z * ((-4.0 * ((t * a) / z)) + ((18.0 * (t * (x * y))) + ((b * c) / z))) elif x <= 1.9e+99: tmp = ((b * c) - ((t * a) * 4.0)) - (k * (j * 27.0)) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(z * y))) - Float64(i * 4.0))) tmp = 0.0 if (x <= -1.9e+48) tmp = t_1; elseif (x <= -2.8e+14) tmp = Float64(a * Float64(Float64(Float64(b * c) / a) - Float64(t * 4.0))); elseif (x <= -2500000.0) tmp = t_1; elseif (x <= -2.8e-80) tmp = Float64(z * Float64(Float64(-4.0 * Float64(Float64(t * a) / z)) + Float64(Float64(18.0 * Float64(t * Float64(x * y))) + Float64(Float64(b * c) / z)))); elseif (x <= 1.9e+99) tmp = Float64(Float64(Float64(b * c) - Float64(Float64(t * a) * 4.0)) - Float64(k * Float64(j * 27.0))); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = x * ((18.0 * (t * (z * y))) - (i * 4.0));
tmp = 0.0;
if (x <= -1.9e+48)
tmp = t_1;
elseif (x <= -2.8e+14)
tmp = a * (((b * c) / a) - (t * 4.0));
elseif (x <= -2500000.0)
tmp = t_1;
elseif (x <= -2.8e-80)
tmp = z * ((-4.0 * ((t * a) / z)) + ((18.0 * (t * (x * y))) + ((b * c) / z)));
elseif (x <= 1.9e+99)
tmp = ((b * c) - ((t * a) * 4.0)) - (k * (j * 27.0));
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(N[(18.0 * N[(t * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.9e+48], t$95$1, If[LessEqual[x, -2.8e+14], N[(a * N[(N[(N[(b * c), $MachinePrecision] / a), $MachinePrecision] - N[(t * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2500000.0], t$95$1, If[LessEqual[x, -2.8e-80], N[(z * N[(N[(-4.0 * N[(N[(t * a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(N[(18.0 * N[(t * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * c), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.9e+99], N[(N[(N[(b * c), $MachinePrecision] - N[(N[(t * a), $MachinePrecision] * 4.0), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := x \cdot \left(18 \cdot \left(t \cdot \left(z \cdot y\right)\right) - i \cdot 4\right)\\
\mathbf{if}\;x \leq -1.9 \cdot 10^{+48}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.8 \cdot 10^{+14}:\\
\;\;\;\;a \cdot \left(\frac{b \cdot c}{a} - t \cdot 4\right)\\
\mathbf{elif}\;x \leq -2500000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.8 \cdot 10^{-80}:\\
\;\;\;\;z \cdot \left(-4 \cdot \frac{t \cdot a}{z} + \left(18 \cdot \left(t \cdot \left(x \cdot y\right)\right) + \frac{b \cdot c}{z}\right)\right)\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{+99}:\\
\;\;\;\;\left(b \cdot c - \left(t \cdot a\right) \cdot 4\right) - k \cdot \left(j \cdot 27\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.9e48 or -2.8e14 < x < -2.5e6 or 1.9e99 < x Initial program 70.9%
Simplified82.5%
Taylor expanded in x around inf 75.2%
if -1.9e48 < x < -2.8e14Initial program 83.3%
Simplified83.3%
Taylor expanded in x around inf 83.4%
associate-*r*83.4%
*-commutative83.4%
Simplified83.4%
associate-*r*83.4%
distribute-rgt-out--83.4%
associate-*l*83.4%
*-commutative83.4%
*-commutative83.4%
Applied egg-rr83.4%
Taylor expanded in x around 0 84.2%
Taylor expanded in a around inf 100.0%
if -2.5e6 < x < -2.79999999999999989e-80Initial program 81.8%
Simplified81.8%
Taylor expanded in x around inf 70.0%
associate-*r*70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in i around 0 64.2%
Taylor expanded in z around inf 76.0%
if -2.79999999999999989e-80 < x < 1.9e99Initial program 91.8%
Taylor expanded in x around 0 78.3%
Final simplification77.5%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= t -1650000.0)
(-
(+ (* b c) (* t (- (* (* z y) (* x 18.0)) (* a 4.0))))
(+ (* x (* i 4.0)) (* j (* k 27.0))))
(if (<= t 1.7e+41)
(-
(-
(+ (* b c) (- (* y (* (* x 18.0) (* z t))) (* t (* a 4.0))))
(* i (* x 4.0)))
(* k (* j 27.0)))
(+ (* j (* k -27.0)) (* t (+ (* a -4.0) (* 18.0 (* x (* z y)))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (t <= -1650000.0) {
tmp = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0)));
} else if (t <= 1.7e+41) {
tmp = (((b * c) + ((y * ((x * 18.0) * (z * t))) - (t * (a * 4.0)))) - (i * (x * 4.0))) - (k * (j * 27.0));
} else {
tmp = (j * (k * -27.0)) + (t * ((a * -4.0) + (18.0 * (x * (z * y)))));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (t <= (-1650000.0d0)) then
tmp = ((b * c) + (t * (((z * y) * (x * 18.0d0)) - (a * 4.0d0)))) - ((x * (i * 4.0d0)) + (j * (k * 27.0d0)))
else if (t <= 1.7d+41) then
tmp = (((b * c) + ((y * ((x * 18.0d0) * (z * t))) - (t * (a * 4.0d0)))) - (i * (x * 4.0d0))) - (k * (j * 27.0d0))
else
tmp = (j * (k * (-27.0d0))) + (t * ((a * (-4.0d0)) + (18.0d0 * (x * (z * y)))))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (t <= -1650000.0) {
tmp = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0)));
} else if (t <= 1.7e+41) {
tmp = (((b * c) + ((y * ((x * 18.0) * (z * t))) - (t * (a * 4.0)))) - (i * (x * 4.0))) - (k * (j * 27.0));
} else {
tmp = (j * (k * -27.0)) + (t * ((a * -4.0) + (18.0 * (x * (z * y)))));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if t <= -1650000.0: tmp = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0))) elif t <= 1.7e+41: tmp = (((b * c) + ((y * ((x * 18.0) * (z * t))) - (t * (a * 4.0)))) - (i * (x * 4.0))) - (k * (j * 27.0)) else: tmp = (j * (k * -27.0)) + (t * ((a * -4.0) + (18.0 * (x * (z * y))))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (t <= -1650000.0) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(z * y) * Float64(x * 18.0)) - Float64(a * 4.0)))) - Float64(Float64(x * Float64(i * 4.0)) + Float64(j * Float64(k * 27.0)))); elseif (t <= 1.7e+41) tmp = Float64(Float64(Float64(Float64(b * c) + Float64(Float64(y * Float64(Float64(x * 18.0) * Float64(z * t))) - Float64(t * Float64(a * 4.0)))) - Float64(i * Float64(x * 4.0))) - Float64(k * Float64(j * 27.0))); else tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(t * Float64(Float64(a * -4.0) + Float64(18.0 * Float64(x * Float64(z * y)))))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (t <= -1650000.0)
tmp = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0)));
elseif (t <= 1.7e+41)
tmp = (((b * c) + ((y * ((x * 18.0) * (z * t))) - (t * (a * 4.0)))) - (i * (x * 4.0))) - (k * (j * 27.0));
else
tmp = (j * (k * -27.0)) + (t * ((a * -4.0) + (18.0 * (x * (z * y)))));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[t, -1650000.0], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(z * y), $MachinePrecision] * N[(x * 18.0), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e+41], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(N[(y * N[(N[(x * 18.0), $MachinePrecision] * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * -4.0), $MachinePrecision] + N[(18.0 * N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1650000:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(\left(z \cdot y\right) \cdot \left(x \cdot 18\right) - a \cdot 4\right)\right) - \left(x \cdot \left(i \cdot 4\right) + j \cdot \left(k \cdot 27\right)\right)\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+41}:\\
\;\;\;\;\left(\left(b \cdot c + \left(y \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot t\right)\right) - t \cdot \left(a \cdot 4\right)\right)\right) - i \cdot \left(x \cdot 4\right)\right) - k \cdot \left(j \cdot 27\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + t \cdot \left(a \cdot -4 + 18 \cdot \left(x \cdot \left(z \cdot y\right)\right)\right)\\
\end{array}
\end{array}
if t < -1.65e6Initial program 90.2%
Simplified93.6%
if -1.65e6 < t < 1.69999999999999999e41Initial program 82.2%
pow182.2%
associate-*l*87.6%
*-commutative87.6%
Applied egg-rr87.6%
unpow187.6%
associate-*l*95.5%
*-commutative95.5%
Simplified95.5%
if 1.69999999999999999e41 < t Initial program 75.6%
Simplified85.9%
Taylor expanded in t around inf 86.4%
Final simplification93.0%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* b c) (* k (* j 27.0))))
(t_2 (* x (- (* 18.0 (* t (* z y))) (* i 4.0)))))
(if (<= x -1.9e+48)
t_2
(if (<= x -4.8e-86)
(* t (- (/ (* b c) t) (* a 4.0)))
(if (<= x -8.6e-290)
t_1
(if (<= x 1.65e-207)
(* a (- (/ (* b c) a) (* t 4.0)))
(if (<= x 3.5e-7) t_1 t_2)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (k * (j * 27.0));
double t_2 = x * ((18.0 * (t * (z * y))) - (i * 4.0));
double tmp;
if (x <= -1.9e+48) {
tmp = t_2;
} else if (x <= -4.8e-86) {
tmp = t * (((b * c) / t) - (a * 4.0));
} else if (x <= -8.6e-290) {
tmp = t_1;
} else if (x <= 1.65e-207) {
tmp = a * (((b * c) / a) - (t * 4.0));
} else if (x <= 3.5e-7) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * c) - (k * (j * 27.0d0))
t_2 = x * ((18.0d0 * (t * (z * y))) - (i * 4.0d0))
if (x <= (-1.9d+48)) then
tmp = t_2
else if (x <= (-4.8d-86)) then
tmp = t * (((b * c) / t) - (a * 4.0d0))
else if (x <= (-8.6d-290)) then
tmp = t_1
else if (x <= 1.65d-207) then
tmp = a * (((b * c) / a) - (t * 4.0d0))
else if (x <= 3.5d-7) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (k * (j * 27.0));
double t_2 = x * ((18.0 * (t * (z * y))) - (i * 4.0));
double tmp;
if (x <= -1.9e+48) {
tmp = t_2;
} else if (x <= -4.8e-86) {
tmp = t * (((b * c) / t) - (a * 4.0));
} else if (x <= -8.6e-290) {
tmp = t_1;
} else if (x <= 1.65e-207) {
tmp = a * (((b * c) / a) - (t * 4.0));
} else if (x <= 3.5e-7) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) - (k * (j * 27.0)) t_2 = x * ((18.0 * (t * (z * y))) - (i * 4.0)) tmp = 0 if x <= -1.9e+48: tmp = t_2 elif x <= -4.8e-86: tmp = t * (((b * c) / t) - (a * 4.0)) elif x <= -8.6e-290: tmp = t_1 elif x <= 1.65e-207: tmp = a * (((b * c) / a) - (t * 4.0)) elif x <= 3.5e-7: tmp = t_1 else: tmp = t_2 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) - Float64(k * Float64(j * 27.0))) t_2 = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(z * y))) - Float64(i * 4.0))) tmp = 0.0 if (x <= -1.9e+48) tmp = t_2; elseif (x <= -4.8e-86) tmp = Float64(t * Float64(Float64(Float64(b * c) / t) - Float64(a * 4.0))); elseif (x <= -8.6e-290) tmp = t_1; elseif (x <= 1.65e-207) tmp = Float64(a * Float64(Float64(Float64(b * c) / a) - Float64(t * 4.0))); elseif (x <= 3.5e-7) tmp = t_1; else tmp = t_2; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (b * c) - (k * (j * 27.0));
t_2 = x * ((18.0 * (t * (z * y))) - (i * 4.0));
tmp = 0.0;
if (x <= -1.9e+48)
tmp = t_2;
elseif (x <= -4.8e-86)
tmp = t * (((b * c) / t) - (a * 4.0));
elseif (x <= -8.6e-290)
tmp = t_1;
elseif (x <= 1.65e-207)
tmp = a * (((b * c) / a) - (t * 4.0));
elseif (x <= 3.5e-7)
tmp = t_1;
else
tmp = t_2;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(18.0 * N[(t * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.9e+48], t$95$2, If[LessEqual[x, -4.8e-86], N[(t * N[(N[(N[(b * c), $MachinePrecision] / t), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -8.6e-290], t$95$1, If[LessEqual[x, 1.65e-207], N[(a * N[(N[(N[(b * c), $MachinePrecision] / a), $MachinePrecision] - N[(t * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.5e-7], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := b \cdot c - k \cdot \left(j \cdot 27\right)\\
t_2 := x \cdot \left(18 \cdot \left(t \cdot \left(z \cdot y\right)\right) - i \cdot 4\right)\\
\mathbf{if}\;x \leq -1.9 \cdot 10^{+48}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -4.8 \cdot 10^{-86}:\\
\;\;\;\;t \cdot \left(\frac{b \cdot c}{t} - a \cdot 4\right)\\
\mathbf{elif}\;x \leq -8.6 \cdot 10^{-290}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-207}:\\
\;\;\;\;a \cdot \left(\frac{b \cdot c}{a} - t \cdot 4\right)\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -1.9e48 or 3.49999999999999984e-7 < x Initial program 73.4%
Simplified84.6%
Taylor expanded in x around inf 70.5%
if -1.9e48 < x < -4.80000000000000026e-86Initial program 83.7%
Simplified83.7%
Taylor expanded in x around inf 75.8%
associate-*r*75.8%
*-commutative75.8%
Simplified75.8%
associate-*r*75.8%
distribute-rgt-out--75.8%
associate-*l*79.6%
*-commutative79.6%
*-commutative79.6%
Applied egg-rr79.6%
Taylor expanded in x around 0 55.5%
Taylor expanded in t around inf 59.5%
if -4.80000000000000026e-86 < x < -8.6000000000000004e-290 or 1.6499999999999999e-207 < x < 3.49999999999999984e-7Initial program 92.3%
pow192.3%
associate-*l*93.3%
*-commutative93.3%
Applied egg-rr93.3%
unpow193.3%
associate-*l*93.3%
*-commutative93.3%
Simplified93.3%
Taylor expanded in b around inf 71.5%
if -8.6000000000000004e-290 < x < 1.6499999999999999e-207Initial program 94.7%
Simplified89.8%
Taylor expanded in x around inf 85.4%
associate-*r*85.4%
*-commutative85.4%
Simplified85.4%
associate-*r*90.3%
distribute-rgt-out--90.3%
associate-*l*89.8%
*-commutative89.8%
*-commutative89.8%
Applied egg-rr89.8%
Taylor expanded in x around 0 68.2%
Taylor expanded in a around inf 78.0%
Final simplification70.4%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= y 1.65e+37)
(-
(+ (* b c) (* t (- (* (* z y) (* x 18.0)) (* a 4.0))))
(+ (* x (* i 4.0)) (* j (* k 27.0))))
(* z (+ (* 18.0 (* t (* x y))) (* -27.0 (/ (* j k) z))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (y <= 1.65e+37) {
tmp = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0)));
} else {
tmp = z * ((18.0 * (t * (x * y))) + (-27.0 * ((j * k) / z)));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (y <= 1.65d+37) then
tmp = ((b * c) + (t * (((z * y) * (x * 18.0d0)) - (a * 4.0d0)))) - ((x * (i * 4.0d0)) + (j * (k * 27.0d0)))
else
tmp = z * ((18.0d0 * (t * (x * y))) + ((-27.0d0) * ((j * k) / z)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (y <= 1.65e+37) {
tmp = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0)));
} else {
tmp = z * ((18.0 * (t * (x * y))) + (-27.0 * ((j * k) / z)));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if y <= 1.65e+37: tmp = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0))) else: tmp = z * ((18.0 * (t * (x * y))) + (-27.0 * ((j * k) / z))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (y <= 1.65e+37) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(z * y) * Float64(x * 18.0)) - Float64(a * 4.0)))) - Float64(Float64(x * Float64(i * 4.0)) + Float64(j * Float64(k * 27.0)))); else tmp = Float64(z * Float64(Float64(18.0 * Float64(t * Float64(x * y))) + Float64(-27.0 * Float64(Float64(j * k) / z)))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (y <= 1.65e+37)
tmp = ((b * c) + (t * (((z * y) * (x * 18.0)) - (a * 4.0)))) - ((x * (i * 4.0)) + (j * (k * 27.0)));
else
tmp = z * ((18.0 * (t * (x * y))) + (-27.0 * ((j * k) / z)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[y, 1.65e+37], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(z * y), $MachinePrecision] * N[(x * 18.0), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(18.0 * N[(t * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-27.0 * N[(N[(j * k), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.65 \cdot 10^{+37}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(\left(z \cdot y\right) \cdot \left(x \cdot 18\right) - a \cdot 4\right)\right) - \left(x \cdot \left(i \cdot 4\right) + j \cdot \left(k \cdot 27\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(18 \cdot \left(t \cdot \left(x \cdot y\right)\right) + -27 \cdot \frac{j \cdot k}{z}\right)\\
\end{array}
\end{array}
if y < 1.65e37Initial program 87.5%
Simplified91.1%
if 1.65e37 < y Initial program 68.5%
Simplified71.8%
Taylor expanded in y around inf 50.5%
associate-*r*53.6%
Simplified53.6%
Taylor expanded in z around inf 53.8%
Final simplification81.6%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* b c) (* k (* j 27.0)))))
(if (<= a -9.2e+188)
(+ (* -4.0 (* t a)) (* b c))
(if (<= a -1.8e-81)
t_1
(if (<= a -1.4e-113)
(* x (* -4.0 i))
(if (<= a 42000.0) t_1 (* b (+ c (* -4.0 (/ (* t a) b))))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (k * (j * 27.0));
double tmp;
if (a <= -9.2e+188) {
tmp = (-4.0 * (t * a)) + (b * c);
} else if (a <= -1.8e-81) {
tmp = t_1;
} else if (a <= -1.4e-113) {
tmp = x * (-4.0 * i);
} else if (a <= 42000.0) {
tmp = t_1;
} else {
tmp = b * (c + (-4.0 * ((t * a) / b)));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (b * c) - (k * (j * 27.0d0))
if (a <= (-9.2d+188)) then
tmp = ((-4.0d0) * (t * a)) + (b * c)
else if (a <= (-1.8d-81)) then
tmp = t_1
else if (a <= (-1.4d-113)) then
tmp = x * ((-4.0d0) * i)
else if (a <= 42000.0d0) then
tmp = t_1
else
tmp = b * (c + ((-4.0d0) * ((t * a) / b)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (k * (j * 27.0));
double tmp;
if (a <= -9.2e+188) {
tmp = (-4.0 * (t * a)) + (b * c);
} else if (a <= -1.8e-81) {
tmp = t_1;
} else if (a <= -1.4e-113) {
tmp = x * (-4.0 * i);
} else if (a <= 42000.0) {
tmp = t_1;
} else {
tmp = b * (c + (-4.0 * ((t * a) / b)));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) - (k * (j * 27.0)) tmp = 0 if a <= -9.2e+188: tmp = (-4.0 * (t * a)) + (b * c) elif a <= -1.8e-81: tmp = t_1 elif a <= -1.4e-113: tmp = x * (-4.0 * i) elif a <= 42000.0: tmp = t_1 else: tmp = b * (c + (-4.0 * ((t * a) / b))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) - Float64(k * Float64(j * 27.0))) tmp = 0.0 if (a <= -9.2e+188) tmp = Float64(Float64(-4.0 * Float64(t * a)) + Float64(b * c)); elseif (a <= -1.8e-81) tmp = t_1; elseif (a <= -1.4e-113) tmp = Float64(x * Float64(-4.0 * i)); elseif (a <= 42000.0) tmp = t_1; else tmp = Float64(b * Float64(c + Float64(-4.0 * Float64(Float64(t * a) / b)))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (b * c) - (k * (j * 27.0));
tmp = 0.0;
if (a <= -9.2e+188)
tmp = (-4.0 * (t * a)) + (b * c);
elseif (a <= -1.8e-81)
tmp = t_1;
elseif (a <= -1.4e-113)
tmp = x * (-4.0 * i);
elseif (a <= 42000.0)
tmp = t_1;
else
tmp = b * (c + (-4.0 * ((t * a) / b)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.2e+188], N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.8e-81], t$95$1, If[LessEqual[a, -1.4e-113], N[(x * N[(-4.0 * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 42000.0], t$95$1, N[(b * N[(c + N[(-4.0 * N[(N[(t * a), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := b \cdot c - k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;a \leq -9.2 \cdot 10^{+188}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right) + b \cdot c\\
\mathbf{elif}\;a \leq -1.8 \cdot 10^{-81}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.4 \cdot 10^{-113}:\\
\;\;\;\;x \cdot \left(-4 \cdot i\right)\\
\mathbf{elif}\;a \leq 42000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(c + -4 \cdot \frac{t \cdot a}{b}\right)\\
\end{array}
\end{array}
if a < -9.20000000000000046e188Initial program 82.7%
Simplified90.1%
Taylor expanded in x around inf 86.7%
associate-*r*86.7%
*-commutative86.7%
Simplified86.7%
Taylor expanded in x around 0 83.0%
if -9.20000000000000046e188 < a < -1.7999999999999999e-81 or -1.4e-113 < a < 42000Initial program 85.2%
pow185.2%
associate-*l*85.2%
*-commutative85.2%
Applied egg-rr85.2%
unpow185.2%
associate-*l*87.7%
*-commutative87.7%
Simplified87.7%
Taylor expanded in b around inf 55.4%
if -1.7999999999999999e-81 < a < -1.4e-113Initial program 88.9%
Simplified88.9%
Taylor expanded in x around inf 88.9%
associate-*r*88.9%
*-commutative88.9%
Simplified88.9%
associate-*r*88.9%
distribute-rgt-out--88.9%
associate-*l*78.2%
*-commutative78.2%
*-commutative78.2%
Applied egg-rr78.2%
Taylor expanded in i around inf 88.9%
associate-*r*88.9%
metadata-eval88.9%
distribute-lft-neg-in88.9%
*-commutative88.9%
distribute-lft-neg-in88.9%
metadata-eval88.9%
*-commutative88.9%
Simplified88.9%
if 42000 < a Initial program 74.4%
Simplified79.4%
Taylor expanded in x around inf 79.8%
associate-*r*79.8%
*-commutative79.8%
Simplified79.8%
associate-*r*74.7%
distribute-rgt-out--74.7%
associate-*l*79.5%
*-commutative79.5%
*-commutative79.5%
Applied egg-rr79.5%
Taylor expanded in x around 0 52.7%
Taylor expanded in b around inf 54.6%
*-commutative54.6%
Simplified54.6%
Final simplification59.5%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (+ (* j (* k -27.0)) (* b c))) (t_2 (+ (* -4.0 (* t a)) (* b c))))
(if (<= a -1e+193)
t_2
(if (<= a -2.45e-81)
t_1
(if (<= a -1.35e-113) (* x (* -4.0 i)) (if (<= a 75000.0) t_1 t_2))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * (k * -27.0)) + (b * c);
double t_2 = (-4.0 * (t * a)) + (b * c);
double tmp;
if (a <= -1e+193) {
tmp = t_2;
} else if (a <= -2.45e-81) {
tmp = t_1;
} else if (a <= -1.35e-113) {
tmp = x * (-4.0 * i);
} else if (a <= 75000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (j * (k * (-27.0d0))) + (b * c)
t_2 = ((-4.0d0) * (t * a)) + (b * c)
if (a <= (-1d+193)) then
tmp = t_2
else if (a <= (-2.45d-81)) then
tmp = t_1
else if (a <= (-1.35d-113)) then
tmp = x * ((-4.0d0) * i)
else if (a <= 75000.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * (k * -27.0)) + (b * c);
double t_2 = (-4.0 * (t * a)) + (b * c);
double tmp;
if (a <= -1e+193) {
tmp = t_2;
} else if (a <= -2.45e-81) {
tmp = t_1;
} else if (a <= -1.35e-113) {
tmp = x * (-4.0 * i);
} else if (a <= 75000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * (k * -27.0)) + (b * c) t_2 = (-4.0 * (t * a)) + (b * c) tmp = 0 if a <= -1e+193: tmp = t_2 elif a <= -2.45e-81: tmp = t_1 elif a <= -1.35e-113: tmp = x * (-4.0 * i) elif a <= 75000.0: tmp = t_1 else: tmp = t_2 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * Float64(k * -27.0)) + Float64(b * c)) t_2 = Float64(Float64(-4.0 * Float64(t * a)) + Float64(b * c)) tmp = 0.0 if (a <= -1e+193) tmp = t_2; elseif (a <= -2.45e-81) tmp = t_1; elseif (a <= -1.35e-113) tmp = Float64(x * Float64(-4.0 * i)); elseif (a <= 75000.0) tmp = t_1; else tmp = t_2; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (j * (k * -27.0)) + (b * c);
t_2 = (-4.0 * (t * a)) + (b * c);
tmp = 0.0;
if (a <= -1e+193)
tmp = t_2;
elseif (a <= -2.45e-81)
tmp = t_1;
elseif (a <= -1.35e-113)
tmp = x * (-4.0 * i);
elseif (a <= 75000.0)
tmp = t_1;
else
tmp = t_2;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1e+193], t$95$2, If[LessEqual[a, -2.45e-81], t$95$1, If[LessEqual[a, -1.35e-113], N[(x * N[(-4.0 * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 75000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right) + b \cdot c\\
t_2 := -4 \cdot \left(t \cdot a\right) + b \cdot c\\
\mathbf{if}\;a \leq -1 \cdot 10^{+193}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -2.45 \cdot 10^{-81}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.35 \cdot 10^{-113}:\\
\;\;\;\;x \cdot \left(-4 \cdot i\right)\\
\mathbf{elif}\;a \leq 75000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -1.00000000000000007e193 or 75000 < a Initial program 77.2%
Simplified83.0%
Taylor expanded in x around inf 82.1%
associate-*r*82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in x around 0 62.9%
if -1.00000000000000007e193 < a < -2.4500000000000001e-81 or -1.34999999999999998e-113 < a < 75000Initial program 85.2%
Simplified87.8%
Taylor expanded in b around inf 55.4%
if -2.4500000000000001e-81 < a < -1.34999999999999998e-113Initial program 88.9%
Simplified88.9%
Taylor expanded in x around inf 88.9%
associate-*r*88.9%
*-commutative88.9%
Simplified88.9%
associate-*r*88.9%
distribute-rgt-out--88.9%
associate-*l*78.2%
*-commutative78.2%
*-commutative78.2%
Applied egg-rr78.2%
Taylor expanded in i around inf 88.9%
associate-*r*88.9%
metadata-eval88.9%
distribute-lft-neg-in88.9%
*-commutative88.9%
distribute-lft-neg-in88.9%
metadata-eval88.9%
*-commutative88.9%
Simplified88.9%
Final simplification59.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (- (* b c) (* k (* j 27.0)))) (t_2 (+ (* -4.0 (* t a)) (* b c))))
(if (<= a -8e+188)
t_2
(if (<= a -8e-81)
t_1
(if (<= a -6.8e-115) (* x (* -4.0 i)) (if (<= a 33000.0) t_1 t_2))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (k * (j * 27.0));
double t_2 = (-4.0 * (t * a)) + (b * c);
double tmp;
if (a <= -8e+188) {
tmp = t_2;
} else if (a <= -8e-81) {
tmp = t_1;
} else if (a <= -6.8e-115) {
tmp = x * (-4.0 * i);
} else if (a <= 33000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * c) - (k * (j * 27.0d0))
t_2 = ((-4.0d0) * (t * a)) + (b * c)
if (a <= (-8d+188)) then
tmp = t_2
else if (a <= (-8d-81)) then
tmp = t_1
else if (a <= (-6.8d-115)) then
tmp = x * ((-4.0d0) * i)
else if (a <= 33000.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (k * (j * 27.0));
double t_2 = (-4.0 * (t * a)) + (b * c);
double tmp;
if (a <= -8e+188) {
tmp = t_2;
} else if (a <= -8e-81) {
tmp = t_1;
} else if (a <= -6.8e-115) {
tmp = x * (-4.0 * i);
} else if (a <= 33000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) - (k * (j * 27.0)) t_2 = (-4.0 * (t * a)) + (b * c) tmp = 0 if a <= -8e+188: tmp = t_2 elif a <= -8e-81: tmp = t_1 elif a <= -6.8e-115: tmp = x * (-4.0 * i) elif a <= 33000.0: tmp = t_1 else: tmp = t_2 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) - Float64(k * Float64(j * 27.0))) t_2 = Float64(Float64(-4.0 * Float64(t * a)) + Float64(b * c)) tmp = 0.0 if (a <= -8e+188) tmp = t_2; elseif (a <= -8e-81) tmp = t_1; elseif (a <= -6.8e-115) tmp = Float64(x * Float64(-4.0 * i)); elseif (a <= 33000.0) tmp = t_1; else tmp = t_2; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (b * c) - (k * (j * 27.0));
t_2 = (-4.0 * (t * a)) + (b * c);
tmp = 0.0;
if (a <= -8e+188)
tmp = t_2;
elseif (a <= -8e-81)
tmp = t_1;
elseif (a <= -6.8e-115)
tmp = x * (-4.0 * i);
elseif (a <= 33000.0)
tmp = t_1;
else
tmp = t_2;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8e+188], t$95$2, If[LessEqual[a, -8e-81], t$95$1, If[LessEqual[a, -6.8e-115], N[(x * N[(-4.0 * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 33000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := b \cdot c - k \cdot \left(j \cdot 27\right)\\
t_2 := -4 \cdot \left(t \cdot a\right) + b \cdot c\\
\mathbf{if}\;a \leq -8 \cdot 10^{+188}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -8 \cdot 10^{-81}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -6.8 \cdot 10^{-115}:\\
\;\;\;\;x \cdot \left(-4 \cdot i\right)\\
\mathbf{elif}\;a \leq 33000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -8.0000000000000002e188 or 33000 < a Initial program 77.2%
Simplified83.0%
Taylor expanded in x around inf 82.1%
associate-*r*82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in x around 0 62.9%
if -8.0000000000000002e188 < a < -7.9999999999999997e-81 or -6.7999999999999996e-115 < a < 33000Initial program 85.2%
pow185.2%
associate-*l*85.2%
*-commutative85.2%
Applied egg-rr85.2%
unpow185.2%
associate-*l*87.7%
*-commutative87.7%
Simplified87.7%
Taylor expanded in b around inf 55.4%
if -7.9999999999999997e-81 < a < -6.7999999999999996e-115Initial program 88.9%
Simplified88.9%
Taylor expanded in x around inf 88.9%
associate-*r*88.9%
*-commutative88.9%
Simplified88.9%
associate-*r*88.9%
distribute-rgt-out--88.9%
associate-*l*78.2%
*-commutative78.2%
*-commutative78.2%
Applied egg-rr78.2%
Taylor expanded in i around inf 88.9%
associate-*r*88.9%
metadata-eval88.9%
distribute-lft-neg-in88.9%
*-commutative88.9%
distribute-lft-neg-in88.9%
metadata-eval88.9%
*-commutative88.9%
Simplified88.9%
Final simplification59.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* k (* j 27.0))))
(if (<= t_1 -5e+55)
(* k (- (/ (* b c) k) (* j 27.0)))
(if (<= t_1 2e+72)
(+ (* -4.0 (* t a)) (* b c))
(* j (+ (* b (/ c j)) (* k -27.0)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = k * (j * 27.0);
double tmp;
if (t_1 <= -5e+55) {
tmp = k * (((b * c) / k) - (j * 27.0));
} else if (t_1 <= 2e+72) {
tmp = (-4.0 * (t * a)) + (b * c);
} else {
tmp = j * ((b * (c / j)) + (k * -27.0));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = k * (j * 27.0d0)
if (t_1 <= (-5d+55)) then
tmp = k * (((b * c) / k) - (j * 27.0d0))
else if (t_1 <= 2d+72) then
tmp = ((-4.0d0) * (t * a)) + (b * c)
else
tmp = j * ((b * (c / j)) + (k * (-27.0d0)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = k * (j * 27.0);
double tmp;
if (t_1 <= -5e+55) {
tmp = k * (((b * c) / k) - (j * 27.0));
} else if (t_1 <= 2e+72) {
tmp = (-4.0 * (t * a)) + (b * c);
} else {
tmp = j * ((b * (c / j)) + (k * -27.0));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = k * (j * 27.0) tmp = 0 if t_1 <= -5e+55: tmp = k * (((b * c) / k) - (j * 27.0)) elif t_1 <= 2e+72: tmp = (-4.0 * (t * a)) + (b * c) else: tmp = j * ((b * (c / j)) + (k * -27.0)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(k * Float64(j * 27.0)) tmp = 0.0 if (t_1 <= -5e+55) tmp = Float64(k * Float64(Float64(Float64(b * c) / k) - Float64(j * 27.0))); elseif (t_1 <= 2e+72) tmp = Float64(Float64(-4.0 * Float64(t * a)) + Float64(b * c)); else tmp = Float64(j * Float64(Float64(b * Float64(c / j)) + Float64(k * -27.0))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = k * (j * 27.0);
tmp = 0.0;
if (t_1 <= -5e+55)
tmp = k * (((b * c) / k) - (j * 27.0));
elseif (t_1 <= 2e+72)
tmp = (-4.0 * (t * a)) + (b * c);
else
tmp = j * ((b * (c / j)) + (k * -27.0));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+55], N[(k * N[(N[(N[(b * c), $MachinePrecision] / k), $MachinePrecision] - N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+72], N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(b * N[(c / j), $MachinePrecision]), $MachinePrecision] + N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+55}:\\
\;\;\;\;k \cdot \left(\frac{b \cdot c}{k} - j \cdot 27\right)\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+72}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right) + b \cdot c\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(b \cdot \frac{c}{j} + k \cdot -27\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -5.00000000000000046e55Initial program 82.4%
pow182.4%
associate-*l*80.3%
*-commutative80.3%
Applied egg-rr80.3%
unpow180.3%
associate-*l*80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in b around inf 58.1%
Taylor expanded in k around inf 58.1%
if -5.00000000000000046e55 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.99999999999999989e72Initial program 81.8%
Simplified86.4%
Taylor expanded in x around inf 85.2%
associate-*r*85.2%
*-commutative85.2%
Simplified85.2%
Taylor expanded in x around 0 50.6%
if 1.99999999999999989e72 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) Initial program 85.7%
pow185.7%
associate-*l*83.5%
*-commutative83.5%
Applied egg-rr83.5%
unpow183.5%
associate-*l*87.7%
*-commutative87.7%
Simplified87.7%
Taylor expanded in b around inf 69.4%
Taylor expanded in j around inf 71.5%
cancel-sign-sub-inv71.5%
metadata-eval71.5%
associate-/l*67.6%
Simplified67.6%
Final simplification55.3%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= (* b c) -2.5e+155)
(* b c)
(if (<= (* b c) 7.2e-58)
(* k (* j -27.0))
(if (<= (* b c) 2.4e+177) (* x (* -4.0 i)) (* b c)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -2.5e+155) {
tmp = b * c;
} else if ((b * c) <= 7.2e-58) {
tmp = k * (j * -27.0);
} else if ((b * c) <= 2.4e+177) {
tmp = x * (-4.0 * i);
} else {
tmp = b * c;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((b * c) <= (-2.5d+155)) then
tmp = b * c
else if ((b * c) <= 7.2d-58) then
tmp = k * (j * (-27.0d0))
else if ((b * c) <= 2.4d+177) then
tmp = x * ((-4.0d0) * i)
else
tmp = b * c
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -2.5e+155) {
tmp = b * c;
} else if ((b * c) <= 7.2e-58) {
tmp = k * (j * -27.0);
} else if ((b * c) <= 2.4e+177) {
tmp = x * (-4.0 * i);
} else {
tmp = b * c;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (b * c) <= -2.5e+155: tmp = b * c elif (b * c) <= 7.2e-58: tmp = k * (j * -27.0) elif (b * c) <= 2.4e+177: tmp = x * (-4.0 * i) else: tmp = b * c return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(b * c) <= -2.5e+155) tmp = Float64(b * c); elseif (Float64(b * c) <= 7.2e-58) tmp = Float64(k * Float64(j * -27.0)); elseif (Float64(b * c) <= 2.4e+177) tmp = Float64(x * Float64(-4.0 * i)); else tmp = Float64(b * c); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((b * c) <= -2.5e+155)
tmp = b * c;
elseif ((b * c) <= 7.2e-58)
tmp = k * (j * -27.0);
elseif ((b * c) <= 2.4e+177)
tmp = x * (-4.0 * i);
else
tmp = b * c;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(b * c), $MachinePrecision], -2.5e+155], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 7.2e-58], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 2.4e+177], N[(x * N[(-4.0 * i), $MachinePrecision]), $MachinePrecision], N[(b * c), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -2.5 \cdot 10^{+155}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq 7.2 \cdot 10^{-58}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;b \cdot c \leq 2.4 \cdot 10^{+177}:\\
\;\;\;\;x \cdot \left(-4 \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -2.5e155 or 2.4e177 < (*.f64 b c) Initial program 84.4%
Simplified83.2%
Taylor expanded in x around inf 80.2%
associate-*r*80.2%
*-commutative80.2%
Simplified80.2%
associate-*r*83.0%
distribute-rgt-out--81.4%
associate-*l*85.8%
*-commutative85.8%
*-commutative85.8%
Applied egg-rr85.8%
Taylor expanded in b around inf 72.0%
if -2.5e155 < (*.f64 b c) < 7.20000000000000019e-58Initial program 79.6%
Simplified85.6%
Taylor expanded in j around inf 29.5%
metadata-eval29.5%
distribute-lft-neg-in29.5%
associate-*r*29.5%
*-commutative29.5%
distribute-rgt-neg-in29.5%
distribute-lft-neg-in29.5%
metadata-eval29.5%
Simplified29.5%
if 7.20000000000000019e-58 < (*.f64 b c) < 2.4e177Initial program 90.8%
Simplified95.3%
Taylor expanded in x around inf 86.3%
associate-*r*86.3%
*-commutative86.3%
Simplified86.3%
associate-*r*81.8%
distribute-rgt-out--81.8%
associate-*l*75.1%
*-commutative75.1%
*-commutative75.1%
Applied egg-rr75.1%
Taylor expanded in i around inf 43.2%
associate-*r*43.2%
metadata-eval43.2%
distribute-lft-neg-in43.2%
*-commutative43.2%
distribute-lft-neg-in43.2%
metadata-eval43.2%
*-commutative43.2%
Simplified43.2%
Final simplification42.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= (* b c) -2.2e+62)
(* k (/ (* b c) k))
(if (<= (* b c) 7.4e-59)
(* -27.0 (* j k))
(if (<= (* b c) 3.1e+177) (* x (* -4.0 i)) (* b c)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -2.2e+62) {
tmp = k * ((b * c) / k);
} else if ((b * c) <= 7.4e-59) {
tmp = -27.0 * (j * k);
} else if ((b * c) <= 3.1e+177) {
tmp = x * (-4.0 * i);
} else {
tmp = b * c;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((b * c) <= (-2.2d+62)) then
tmp = k * ((b * c) / k)
else if ((b * c) <= 7.4d-59) then
tmp = (-27.0d0) * (j * k)
else if ((b * c) <= 3.1d+177) then
tmp = x * ((-4.0d0) * i)
else
tmp = b * c
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -2.2e+62) {
tmp = k * ((b * c) / k);
} else if ((b * c) <= 7.4e-59) {
tmp = -27.0 * (j * k);
} else if ((b * c) <= 3.1e+177) {
tmp = x * (-4.0 * i);
} else {
tmp = b * c;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (b * c) <= -2.2e+62: tmp = k * ((b * c) / k) elif (b * c) <= 7.4e-59: tmp = -27.0 * (j * k) elif (b * c) <= 3.1e+177: tmp = x * (-4.0 * i) else: tmp = b * c return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(b * c) <= -2.2e+62) tmp = Float64(k * Float64(Float64(b * c) / k)); elseif (Float64(b * c) <= 7.4e-59) tmp = Float64(-27.0 * Float64(j * k)); elseif (Float64(b * c) <= 3.1e+177) tmp = Float64(x * Float64(-4.0 * i)); else tmp = Float64(b * c); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((b * c) <= -2.2e+62)
tmp = k * ((b * c) / k);
elseif ((b * c) <= 7.4e-59)
tmp = -27.0 * (j * k);
elseif ((b * c) <= 3.1e+177)
tmp = x * (-4.0 * i);
else
tmp = b * c;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(b * c), $MachinePrecision], -2.2e+62], N[(k * N[(N[(b * c), $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 7.4e-59], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 3.1e+177], N[(x * N[(-4.0 * i), $MachinePrecision]), $MachinePrecision], N[(b * c), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -2.2 \cdot 10^{+62}:\\
\;\;\;\;k \cdot \frac{b \cdot c}{k}\\
\mathbf{elif}\;b \cdot c \leq 7.4 \cdot 10^{-59}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;b \cdot c \leq 3.1 \cdot 10^{+177}:\\
\;\;\;\;x \cdot \left(-4 \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -2.20000000000000015e62Initial program 81.4%
pow181.4%
associate-*l*81.1%
*-commutative81.1%
Applied egg-rr81.1%
unpow181.1%
associate-*l*86.8%
*-commutative86.8%
Simplified86.8%
Taylor expanded in b around inf 61.7%
Taylor expanded in k around inf 56.3%
Taylor expanded in b around inf 45.7%
if -2.20000000000000015e62 < (*.f64 b c) < 7.3999999999999998e-59Initial program 81.0%
Simplified84.9%
Taylor expanded in j around inf 30.0%
if 7.3999999999999998e-59 < (*.f64 b c) < 3.0999999999999999e177Initial program 90.8%
Simplified95.3%
Taylor expanded in x around inf 86.3%
associate-*r*86.3%
*-commutative86.3%
Simplified86.3%
associate-*r*81.8%
distribute-rgt-out--81.8%
associate-*l*75.1%
*-commutative75.1%
*-commutative75.1%
Applied egg-rr75.1%
Taylor expanded in i around inf 43.2%
associate-*r*43.2%
metadata-eval43.2%
distribute-lft-neg-in43.2%
*-commutative43.2%
distribute-lft-neg-in43.2%
metadata-eval43.2%
*-commutative43.2%
Simplified43.2%
if 3.0999999999999999e177 < (*.f64 b c) Initial program 80.5%
Simplified77.4%
Taylor expanded in x around inf 74.1%
associate-*r*74.1%
*-commutative74.1%
Simplified74.1%
associate-*r*77.2%
distribute-rgt-out--77.2%
associate-*l*86.6%
*-commutative86.6%
*-commutative86.6%
Applied egg-rr86.6%
Taylor expanded in b around inf 76.1%
Final simplification40.9%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= x -7.5e+47) (not (<= x 1.55e+100))) (* x (- (* 18.0 (* t (* z y))) (* i 4.0))) (- (- (* b c) (* (* t a) 4.0)) (* k (* j 27.0)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((x <= -7.5e+47) || !(x <= 1.55e+100)) {
tmp = x * ((18.0 * (t * (z * y))) - (i * 4.0));
} else {
tmp = ((b * c) - ((t * a) * 4.0)) - (k * (j * 27.0));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((x <= (-7.5d+47)) .or. (.not. (x <= 1.55d+100))) then
tmp = x * ((18.0d0 * (t * (z * y))) - (i * 4.0d0))
else
tmp = ((b * c) - ((t * a) * 4.0d0)) - (k * (j * 27.0d0))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((x <= -7.5e+47) || !(x <= 1.55e+100)) {
tmp = x * ((18.0 * (t * (z * y))) - (i * 4.0));
} else {
tmp = ((b * c) - ((t * a) * 4.0)) - (k * (j * 27.0));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (x <= -7.5e+47) or not (x <= 1.55e+100): tmp = x * ((18.0 * (t * (z * y))) - (i * 4.0)) else: tmp = ((b * c) - ((t * a) * 4.0)) - (k * (j * 27.0)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((x <= -7.5e+47) || !(x <= 1.55e+100)) tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(z * y))) - Float64(i * 4.0))); else tmp = Float64(Float64(Float64(b * c) - Float64(Float64(t * a) * 4.0)) - Float64(k * Float64(j * 27.0))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((x <= -7.5e+47) || ~((x <= 1.55e+100)))
tmp = x * ((18.0 * (t * (z * y))) - (i * 4.0));
else
tmp = ((b * c) - ((t * a) * 4.0)) - (k * (j * 27.0));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[x, -7.5e+47], N[Not[LessEqual[x, 1.55e+100]], $MachinePrecision]], N[(x * N[(N[(18.0 * N[(t * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] - N[(N[(t * a), $MachinePrecision] * 4.0), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.5 \cdot 10^{+47} \lor \neg \left(x \leq 1.55 \cdot 10^{+100}\right):\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(z \cdot y\right)\right) - i \cdot 4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c - \left(t \cdot a\right) \cdot 4\right) - k \cdot \left(j \cdot 27\right)\\
\end{array}
\end{array}
if x < -7.4999999999999999e47 or 1.55000000000000003e100 < x Initial program 69.7%
Simplified81.3%
Taylor expanded in x around inf 74.0%
if -7.4999999999999999e47 < x < 1.55000000000000003e100Initial program 91.1%
Taylor expanded in x around 0 76.5%
Final simplification75.5%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= (* b c) -1e+76)
(* a (- (/ (* b c) a) (* t 4.0)))
(if (<= (* b c) 4e+177)
(+ (* j (* k -27.0)) (* i (* x -4.0)))
(* c (+ b (* -27.0 (* j (/ k c))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -1e+76) {
tmp = a * (((b * c) / a) - (t * 4.0));
} else if ((b * c) <= 4e+177) {
tmp = (j * (k * -27.0)) + (i * (x * -4.0));
} else {
tmp = c * (b + (-27.0 * (j * (k / c))));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((b * c) <= (-1d+76)) then
tmp = a * (((b * c) / a) - (t * 4.0d0))
else if ((b * c) <= 4d+177) then
tmp = (j * (k * (-27.0d0))) + (i * (x * (-4.0d0)))
else
tmp = c * (b + ((-27.0d0) * (j * (k / c))))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -1e+76) {
tmp = a * (((b * c) / a) - (t * 4.0));
} else if ((b * c) <= 4e+177) {
tmp = (j * (k * -27.0)) + (i * (x * -4.0));
} else {
tmp = c * (b + (-27.0 * (j * (k / c))));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (b * c) <= -1e+76: tmp = a * (((b * c) / a) - (t * 4.0)) elif (b * c) <= 4e+177: tmp = (j * (k * -27.0)) + (i * (x * -4.0)) else: tmp = c * (b + (-27.0 * (j * (k / c)))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(b * c) <= -1e+76) tmp = Float64(a * Float64(Float64(Float64(b * c) / a) - Float64(t * 4.0))); elseif (Float64(b * c) <= 4e+177) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(i * Float64(x * -4.0))); else tmp = Float64(c * Float64(b + Float64(-27.0 * Float64(j * Float64(k / c))))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((b * c) <= -1e+76)
tmp = a * (((b * c) / a) - (t * 4.0));
elseif ((b * c) <= 4e+177)
tmp = (j * (k * -27.0)) + (i * (x * -4.0));
else
tmp = c * (b + (-27.0 * (j * (k / c))));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(b * c), $MachinePrecision], -1e+76], N[(a * N[(N[(N[(b * c), $MachinePrecision] / a), $MachinePrecision] - N[(t * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 4e+177], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(i * N[(x * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(b + N[(-27.0 * N[(j * N[(k / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -1 \cdot 10^{+76}:\\
\;\;\;\;a \cdot \left(\frac{b \cdot c}{a} - t \cdot 4\right)\\
\mathbf{elif}\;b \cdot c \leq 4 \cdot 10^{+177}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + i \cdot \left(x \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(b + -27 \cdot \left(j \cdot \frac{k}{c}\right)\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -1e76Initial program 81.6%
Simplified87.9%
Taylor expanded in x around inf 80.3%
associate-*r*80.3%
*-commutative80.3%
Simplified80.3%
associate-*r*80.0%
distribute-rgt-out--77.9%
associate-*l*77.5%
*-commutative77.5%
*-commutative77.5%
Applied egg-rr77.5%
Taylor expanded in x around 0 65.9%
Taylor expanded in a around inf 71.9%
if -1e76 < (*.f64 b c) < 4e177Initial program 83.3%
Simplified87.8%
Taylor expanded in i around inf 52.2%
metadata-eval52.2%
distribute-lft-neg-in52.2%
*-commutative52.2%
associate-*r*52.2%
distribute-rgt-neg-in52.2%
distribute-rgt-neg-in52.2%
metadata-eval52.2%
*-commutative52.2%
Simplified52.2%
if 4e177 < (*.f64 b c) Initial program 80.5%
pow180.5%
associate-*l*89.9%
*-commutative89.9%
Applied egg-rr89.9%
unpow189.9%
associate-*l*89.9%
*-commutative89.9%
Simplified89.9%
Taylor expanded in b around inf 85.6%
Taylor expanded in c around inf 85.7%
associate-/l*89.0%
Simplified89.0%
Final simplification60.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= (* b c) -7.6e+155) (not (<= (* b c) 1.55e+41))) (* b c) (* -27.0 (* j k))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -7.6e+155) || !((b * c) <= 1.55e+41)) {
tmp = b * c;
} else {
tmp = -27.0 * (j * k);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (((b * c) <= (-7.6d+155)) .or. (.not. ((b * c) <= 1.55d+41))) then
tmp = b * c
else
tmp = (-27.0d0) * (j * k)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -7.6e+155) || !((b * c) <= 1.55e+41)) {
tmp = b * c;
} else {
tmp = -27.0 * (j * k);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if ((b * c) <= -7.6e+155) or not ((b * c) <= 1.55e+41): tmp = b * c else: tmp = -27.0 * (j * k) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((Float64(b * c) <= -7.6e+155) || !(Float64(b * c) <= 1.55e+41)) tmp = Float64(b * c); else tmp = Float64(-27.0 * Float64(j * k)); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (((b * c) <= -7.6e+155) || ~(((b * c) <= 1.55e+41)))
tmp = b * c;
else
tmp = -27.0 * (j * k);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[N[(b * c), $MachinePrecision], -7.6e+155], N[Not[LessEqual[N[(b * c), $MachinePrecision], 1.55e+41]], $MachinePrecision]], N[(b * c), $MachinePrecision], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -7.6 \cdot 10^{+155} \lor \neg \left(b \cdot c \leq 1.55 \cdot 10^{+41}\right):\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -7.6000000000000001e155 or 1.55e41 < (*.f64 b c) Initial program 87.4%
Simplified86.5%
Taylor expanded in x around inf 83.1%
associate-*r*83.1%
*-commutative83.1%
Simplified83.1%
associate-*r*85.2%
distribute-rgt-out--84.0%
associate-*l*85.0%
*-commutative85.0%
*-commutative85.0%
Applied egg-rr85.0%
Taylor expanded in b around inf 59.2%
if -7.6000000000000001e155 < (*.f64 b c) < 1.55e41Initial program 80.3%
Simplified86.7%
Taylor expanded in j around inf 29.2%
Final simplification39.3%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= (* b c) -2.6e+156) (not (<= (* b c) 2.4e+41))) (* b c) (* j (* k -27.0))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -2.6e+156) || !((b * c) <= 2.4e+41)) {
tmp = b * c;
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (((b * c) <= (-2.6d+156)) .or. (.not. ((b * c) <= 2.4d+41))) then
tmp = b * c
else
tmp = j * (k * (-27.0d0))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -2.6e+156) || !((b * c) <= 2.4e+41)) {
tmp = b * c;
} else {
tmp = j * (k * -27.0);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if ((b * c) <= -2.6e+156) or not ((b * c) <= 2.4e+41): tmp = b * c else: tmp = j * (k * -27.0) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((Float64(b * c) <= -2.6e+156) || !(Float64(b * c) <= 2.4e+41)) tmp = Float64(b * c); else tmp = Float64(j * Float64(k * -27.0)); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (((b * c) <= -2.6e+156) || ~(((b * c) <= 2.4e+41)))
tmp = b * c;
else
tmp = j * (k * -27.0);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[N[(b * c), $MachinePrecision], -2.6e+156], N[Not[LessEqual[N[(b * c), $MachinePrecision], 2.4e+41]], $MachinePrecision]], N[(b * c), $MachinePrecision], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -2.6 \cdot 10^{+156} \lor \neg \left(b \cdot c \leq 2.4 \cdot 10^{+41}\right):\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -2.60000000000000019e156 or 2.4000000000000002e41 < (*.f64 b c) Initial program 87.4%
Simplified86.5%
Taylor expanded in x around inf 83.1%
associate-*r*83.1%
*-commutative83.1%
Simplified83.1%
associate-*r*85.2%
distribute-rgt-out--84.0%
associate-*l*85.0%
*-commutative85.0%
*-commutative85.0%
Applied egg-rr85.0%
Taylor expanded in b around inf 59.2%
if -2.60000000000000019e156 < (*.f64 b c) < 2.4000000000000002e41Initial program 80.3%
Simplified86.7%
Taylor expanded in i around inf 51.6%
metadata-eval51.6%
distribute-lft-neg-in51.6%
*-commutative51.6%
associate-*r*51.6%
distribute-rgt-neg-in51.6%
distribute-rgt-neg-in51.6%
metadata-eval51.6%
*-commutative51.6%
Simplified51.6%
Taylor expanded in i around 0 29.2%
associate-*r*29.2%
*-commutative29.2%
associate-*r*29.2%
Simplified29.2%
Final simplification39.3%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= (* b c) -3.5e+155) (not (<= (* b c) 7.5e+39))) (* b c) (* k (* j -27.0))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -3.5e+155) || !((b * c) <= 7.5e+39)) {
tmp = b * c;
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (((b * c) <= (-3.5d+155)) .or. (.not. ((b * c) <= 7.5d+39))) then
tmp = b * c
else
tmp = k * (j * (-27.0d0))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -3.5e+155) || !((b * c) <= 7.5e+39)) {
tmp = b * c;
} else {
tmp = k * (j * -27.0);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if ((b * c) <= -3.5e+155) or not ((b * c) <= 7.5e+39): tmp = b * c else: tmp = k * (j * -27.0) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((Float64(b * c) <= -3.5e+155) || !(Float64(b * c) <= 7.5e+39)) tmp = Float64(b * c); else tmp = Float64(k * Float64(j * -27.0)); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (((b * c) <= -3.5e+155) || ~(((b * c) <= 7.5e+39)))
tmp = b * c;
else
tmp = k * (j * -27.0);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[N[(b * c), $MachinePrecision], -3.5e+155], N[Not[LessEqual[N[(b * c), $MachinePrecision], 7.5e+39]], $MachinePrecision]], N[(b * c), $MachinePrecision], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;b \cdot c \leq -3.5 \cdot 10^{+155} \lor \neg \left(b \cdot c \leq 7.5 \cdot 10^{+39}\right):\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -3.49999999999999985e155 or 7.5000000000000005e39 < (*.f64 b c) Initial program 87.4%
Simplified86.5%
Taylor expanded in x around inf 83.1%
associate-*r*83.1%
*-commutative83.1%
Simplified83.1%
associate-*r*85.2%
distribute-rgt-out--84.0%
associate-*l*85.0%
*-commutative85.0%
*-commutative85.0%
Applied egg-rr85.0%
Taylor expanded in b around inf 59.2%
if -3.49999999999999985e155 < (*.f64 b c) < 7.5000000000000005e39Initial program 80.3%
Simplified86.7%
Taylor expanded in j around inf 29.2%
metadata-eval29.2%
distribute-lft-neg-in29.2%
associate-*r*29.2%
*-commutative29.2%
distribute-rgt-neg-in29.2%
distribute-lft-neg-in29.2%
metadata-eval29.2%
Simplified29.2%
Final simplification39.3%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= i -1.1e+111) (not (<= i 6.5e+135))) (* x (* -4.0 i)) (+ (* -4.0 (* t a)) (* b c))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((i <= -1.1e+111) || !(i <= 6.5e+135)) {
tmp = x * (-4.0 * i);
} else {
tmp = (-4.0 * (t * a)) + (b * c);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((i <= (-1.1d+111)) .or. (.not. (i <= 6.5d+135))) then
tmp = x * ((-4.0d0) * i)
else
tmp = ((-4.0d0) * (t * a)) + (b * c)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((i <= -1.1e+111) || !(i <= 6.5e+135)) {
tmp = x * (-4.0 * i);
} else {
tmp = (-4.0 * (t * a)) + (b * c);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (i <= -1.1e+111) or not (i <= 6.5e+135): tmp = x * (-4.0 * i) else: tmp = (-4.0 * (t * a)) + (b * c) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((i <= -1.1e+111) || !(i <= 6.5e+135)) tmp = Float64(x * Float64(-4.0 * i)); else tmp = Float64(Float64(-4.0 * Float64(t * a)) + Float64(b * c)); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((i <= -1.1e+111) || ~((i <= 6.5e+135)))
tmp = x * (-4.0 * i);
else
tmp = (-4.0 * (t * a)) + (b * c);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[i, -1.1e+111], N[Not[LessEqual[i, 6.5e+135]], $MachinePrecision]], N[(x * N[(-4.0 * i), $MachinePrecision]), $MachinePrecision], N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.1 \cdot 10^{+111} \lor \neg \left(i \leq 6.5 \cdot 10^{+135}\right):\\
\;\;\;\;x \cdot \left(-4 \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right) + b \cdot c\\
\end{array}
\end{array}
if i < -1.09999999999999999e111 or 6.5000000000000003e135 < i Initial program 74.1%
Simplified76.7%
Taylor expanded in x around inf 72.4%
associate-*r*72.4%
*-commutative72.4%
Simplified72.4%
associate-*r*71.0%
distribute-rgt-out--68.6%
associate-*l*67.2%
*-commutative67.2%
*-commutative67.2%
Applied egg-rr67.2%
Taylor expanded in i around inf 55.8%
associate-*r*55.8%
metadata-eval55.8%
distribute-lft-neg-in55.8%
*-commutative55.8%
distribute-lft-neg-in55.8%
metadata-eval55.8%
*-commutative55.8%
Simplified55.8%
if -1.09999999999999999e111 < i < 6.5000000000000003e135Initial program 86.8%
Simplified90.8%
Taylor expanded in x around inf 69.6%
associate-*r*69.6%
*-commutative69.6%
Simplified69.6%
Taylor expanded in x around 0 48.4%
Final simplification50.8%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (* b c))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = b * c
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): return b * c
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) return Float64(b * c) end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp = code(x, y, z, t, a, b, c, i, j, k)
tmp = b * c;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(b * c), $MachinePrecision]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
b \cdot c
\end{array}
Initial program 82.7%
Simplified86.2%
Taylor expanded in x around inf 70.5%
associate-*r*70.5%
*-commutative70.5%
Simplified70.5%
associate-*r*68.9%
distribute-rgt-out--66.9%
associate-*l*67.9%
*-commutative67.9%
*-commutative67.9%
Applied egg-rr67.9%
Taylor expanded in b around inf 24.0%
Final simplification24.0%
(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 2024130
(FPCore (x y z t a b c i j k)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, E"
:precision binary64
:alt
(if (< t -1.6210815397541398e-69) (- (- (* (* 18.0 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4.0)) (- (* (* k j) 27.0) (* c b))) (if (< t 165.68027943805222) (+ (- (* (* 18.0 y) (* x (* z t))) (* (+ (* a t) (* i x)) 4.0)) (- (* c b) (* 27.0 (* k j)))) (- (- (* (* 18.0 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4.0)) (- (* (* k j) 27.0) (* c b)))))
(- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))