
(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 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k) :precision binary64 (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
def code(x, y, z, t, a, b, c, i, j, k): return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\end{array}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (or (<= z -2.3e+43) (not (<= z 1.1e+195)))
(*
z
(-
(fma 18.0 (* (* t x) y) (* b (/ c z)))
(fma 4.0 (* a (/ t z)) (fma 4.0 (* i (/ x z)) (* (* j (/ k z)) 27.0)))))
(+
(fma t (fma x (* 18.0 (* z y)) (* a -4.0)) (fma b c (* x (* i -4.0))))
(* 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 ((z <= -2.3e+43) || !(z <= 1.1e+195)) {
tmp = z * (fma(18.0, ((t * x) * y), (b * (c / z))) - fma(4.0, (a * (t / z)), fma(4.0, (i * (x / z)), ((j * (k / z)) * 27.0))));
} else {
tmp = fma(t, fma(x, (18.0 * (z * y)), (a * -4.0)), fma(b, c, (x * (i * -4.0)))) + (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 ((z <= -2.3e+43) || !(z <= 1.1e+195)) tmp = Float64(z * Float64(fma(18.0, Float64(Float64(t * x) * y), Float64(b * Float64(c / z))) - fma(4.0, Float64(a * Float64(t / z)), fma(4.0, Float64(i * Float64(x / z)), Float64(Float64(j * Float64(k / z)) * 27.0))))); else tmp = Float64(fma(t, fma(x, Float64(18.0 * Float64(z * y)), Float64(a * -4.0)), fma(b, c, Float64(x * Float64(i * -4.0)))) + Float64(j * Float64(k * -27.0))); end return tmp end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[z, -2.3e+43], N[Not[LessEqual[z, 1.1e+195]], $MachinePrecision]], N[(z * N[(N[(18.0 * N[(N[(t * x), $MachinePrecision] * y), $MachinePrecision] + N[(b * N[(c / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(i * N[(x / z), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(k / z), $MachinePrecision]), $MachinePrecision] * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.3 \cdot 10^{+43} \lor \neg \left(z \leq 1.1 \cdot 10^{+195}\right):\\
\;\;\;\;z \cdot \left(\mathsf{fma}\left(18, \left(t \cdot x\right) \cdot y, b \cdot \frac{c}{z}\right) - \mathsf{fma}\left(4, a \cdot \frac{t}{z}, \mathsf{fma}\left(4, i \cdot \frac{x}{z}, \left(j \cdot \frac{k}{z}\right) \cdot 27\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\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(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)\\
\end{array}
\end{array}
if z < -2.3000000000000002e43 or 1.1e195 < z Initial program 85.0%
Simplified83.7%
Taylor expanded in z around inf 86.4%
sub-neg86.4%
+-commutative86.4%
metadata-eval86.4%
cancel-sign-sub-inv86.4%
sub-neg86.4%
associate--r+86.4%
Simplified91.7%
if -2.3000000000000002e43 < z < 1.1e195Initial program 87.5%
Simplified91.9%
Final simplification91.8%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* k -27.0)))
(t_2 (* i (+ (* b (/ c i)) (* x -4.0))))
(t_3
(-
(+ (- (* t (* z (* y (* 18.0 x)))) (* t (* 4.0 a))) (* b c))
(* i (* x 4.0)))))
(if (<= t_3 -3e+213)
t_2
(if (<= t_3 -5e+154)
(* t (* a -4.0))
(if (<= t_3 1e+42)
(+ t_1 (* -4.0 (* x i)))
(if (<= t_3 5e+303) (+ t_1 (* b c)) t_2))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = i * ((b * (c / i)) + (x * -4.0));
double t_3 = (((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0));
double tmp;
if (t_3 <= -3e+213) {
tmp = t_2;
} else if (t_3 <= -5e+154) {
tmp = t * (a * -4.0);
} else if (t_3 <= 1e+42) {
tmp = t_1 + (-4.0 * (x * i));
} else if (t_3 <= 5e+303) {
tmp = t_1 + (b * c);
} else {
tmp = t_2;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
t_2 = i * ((b * (c / i)) + (x * (-4.0d0)))
t_3 = (((t * (z * (y * (18.0d0 * x)))) - (t * (4.0d0 * a))) + (b * c)) - (i * (x * 4.0d0))
if (t_3 <= (-3d+213)) then
tmp = t_2
else if (t_3 <= (-5d+154)) then
tmp = t * (a * (-4.0d0))
else if (t_3 <= 1d+42) then
tmp = t_1 + ((-4.0d0) * (x * i))
else if (t_3 <= 5d+303) then
tmp = t_1 + (b * c)
else
tmp = t_2
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double t_2 = i * ((b * (c / i)) + (x * -4.0));
double t_3 = (((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0));
double tmp;
if (t_3 <= -3e+213) {
tmp = t_2;
} else if (t_3 <= -5e+154) {
tmp = t * (a * -4.0);
} else if (t_3 <= 1e+42) {
tmp = t_1 + (-4.0 * (x * i));
} else if (t_3 <= 5e+303) {
tmp = t_1 + (b * c);
} else {
tmp = t_2;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = j * (k * -27.0) t_2 = i * ((b * (c / i)) + (x * -4.0)) t_3 = (((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0)) tmp = 0 if t_3 <= -3e+213: tmp = t_2 elif t_3 <= -5e+154: tmp = t * (a * -4.0) elif t_3 <= 1e+42: tmp = t_1 + (-4.0 * (x * i)) elif t_3 <= 5e+303: tmp = t_1 + (b * c) else: tmp = t_2 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(j * Float64(k * -27.0)) t_2 = Float64(i * Float64(Float64(b * Float64(c / i)) + Float64(x * -4.0))) t_3 = Float64(Float64(Float64(Float64(t * Float64(z * Float64(y * Float64(18.0 * x)))) - Float64(t * Float64(4.0 * a))) + Float64(b * c)) - Float64(i * Float64(x * 4.0))) tmp = 0.0 if (t_3 <= -3e+213) tmp = t_2; elseif (t_3 <= -5e+154) tmp = Float64(t * Float64(a * -4.0)); elseif (t_3 <= 1e+42) tmp = Float64(t_1 + Float64(-4.0 * Float64(x * i))); elseif (t_3 <= 5e+303) tmp = Float64(t_1 + Float64(b * c)); else tmp = t_2; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = j * (k * -27.0);
t_2 = i * ((b * (c / i)) + (x * -4.0));
t_3 = (((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0));
tmp = 0.0;
if (t_3 <= -3e+213)
tmp = t_2;
elseif (t_3 <= -5e+154)
tmp = t * (a * -4.0);
elseif (t_3 <= 1e+42)
tmp = t_1 + (-4.0 * (x * i));
elseif (t_3 <= 5e+303)
tmp = t_1 + (b * c);
else
tmp = t_2;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(b * N[(c / i), $MachinePrecision]), $MachinePrecision] + N[(x * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(t * N[(z * N[(y * N[(18.0 * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, -3e+213], t$95$2, If[LessEqual[t$95$3, -5e+154], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 1e+42], N[(t$95$1 + N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 5e+303], N[(t$95$1 + N[(b * c), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := i \cdot \left(b \cdot \frac{c}{i} + x \cdot -4\right)\\
t_3 := \left(\left(t \cdot \left(z \cdot \left(y \cdot \left(18 \cdot x\right)\right)\right) - t \cdot \left(4 \cdot a\right)\right) + b \cdot c\right) - i \cdot \left(x \cdot 4\right)\\
\mathbf{if}\;t\_3 \leq -3 \cdot 10^{+213}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_3 \leq -5 \cdot 10^{+154}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;t\_3 \leq 10^{+42}:\\
\;\;\;\;t\_1 + -4 \cdot \left(x \cdot i\right)\\
\mathbf{elif}\;t\_3 \leq 5 \cdot 10^{+303}:\\
\;\;\;\;t\_1 + b \cdot c\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\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)) < -3.0000000000000001e213 or 4.9999999999999997e303 < (-.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 75.5%
distribute-rgt-out--81.3%
associate-*r*79.9%
*-commutative79.9%
associate-*l*79.9%
associate-*r*79.9%
Applied egg-rr79.9%
Taylor expanded in t around 0 54.5%
Taylor expanded in j around 0 54.7%
Taylor expanded in i around inf 54.7%
cancel-sign-sub-inv54.7%
associate-/l*56.9%
metadata-eval56.9%
*-commutative56.9%
Simplified56.9%
if -3.0000000000000001e213 < (-.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)) < -5.00000000000000004e154Initial program 100.0%
Simplified100.0%
Taylor expanded in j around inf 56.9%
Taylor expanded in a around inf 74.2%
associate-*r*74.2%
metadata-eval74.2%
distribute-lft-neg-in74.2%
distribute-lft-neg-in74.2%
distribute-rgt-neg-out74.2%
*-commutative74.2%
distribute-lft-neg-out74.2%
distribute-rgt-neg-in74.2%
distribute-lft-neg-in74.2%
metadata-eval74.2%
*-commutative74.2%
Simplified74.2%
if -5.00000000000000004e154 < (-.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)) < 1.00000000000000004e42Initial program 99.8%
Simplified94.4%
Taylor expanded in i around inf 78.9%
if 1.00000000000000004e42 < (-.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.9999999999999997e303Initial program 100.0%
Simplified99.9%
Taylor expanded in b around inf 46.0%
Final simplification60.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* i (+ (* b (/ c i)) (* x -4.0))))
(t_2
(-
(+ (- (* t (* z (* y (* 18.0 x)))) (* t (* 4.0 a))) (* b c))
(* i (* x 4.0)))))
(if (<= t_2 -3e+213)
t_1
(if (<= t_2 -5e+154)
(* t (* a -4.0))
(if (<= t_2 5e+303) (+ (* j (* k -27.0)) (* b c)) t_1)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = i * ((b * (c / i)) + (x * -4.0));
double t_2 = (((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0));
double tmp;
if (t_2 <= -3e+213) {
tmp = t_1;
} else if (t_2 <= -5e+154) {
tmp = t * (a * -4.0);
} else if (t_2 <= 5e+303) {
tmp = (j * (k * -27.0)) + (b * c);
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((b * (c / i)) + (x * (-4.0d0)))
t_2 = (((t * (z * (y * (18.0d0 * x)))) - (t * (4.0d0 * a))) + (b * c)) - (i * (x * 4.0d0))
if (t_2 <= (-3d+213)) then
tmp = t_1
else if (t_2 <= (-5d+154)) then
tmp = t * (a * (-4.0d0))
else if (t_2 <= 5d+303) then
tmp = (j * (k * (-27.0d0))) + (b * c)
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = i * ((b * (c / i)) + (x * -4.0));
double t_2 = (((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0));
double tmp;
if (t_2 <= -3e+213) {
tmp = t_1;
} else if (t_2 <= -5e+154) {
tmp = t * (a * -4.0);
} else if (t_2 <= 5e+303) {
tmp = (j * (k * -27.0)) + (b * c);
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = i * ((b * (c / i)) + (x * -4.0)) t_2 = (((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0)) tmp = 0 if t_2 <= -3e+213: tmp = t_1 elif t_2 <= -5e+154: tmp = t * (a * -4.0) elif t_2 <= 5e+303: tmp = (j * (k * -27.0)) + (b * c) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(i * Float64(Float64(b * Float64(c / i)) + Float64(x * -4.0))) t_2 = Float64(Float64(Float64(Float64(t * Float64(z * Float64(y * Float64(18.0 * x)))) - Float64(t * Float64(4.0 * a))) + Float64(b * c)) - Float64(i * Float64(x * 4.0))) tmp = 0.0 if (t_2 <= -3e+213) tmp = t_1; elseif (t_2 <= -5e+154) tmp = Float64(t * Float64(a * -4.0)); elseif (t_2 <= 5e+303) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(b * c)); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = i * ((b * (c / i)) + (x * -4.0));
t_2 = (((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0));
tmp = 0.0;
if (t_2 <= -3e+213)
tmp = t_1;
elseif (t_2 <= -5e+154)
tmp = t * (a * -4.0);
elseif (t_2 <= 5e+303)
tmp = (j * (k * -27.0)) + (b * c);
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(i * N[(N[(b * N[(c / i), $MachinePrecision]), $MachinePrecision] + N[(x * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(t * N[(z * N[(y * N[(18.0 * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -3e+213], t$95$1, If[LessEqual[t$95$2, -5e+154], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+303], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := i \cdot \left(b \cdot \frac{c}{i} + x \cdot -4\right)\\
t_2 := \left(\left(t \cdot \left(z \cdot \left(y \cdot \left(18 \cdot x\right)\right)\right) - t \cdot \left(4 \cdot a\right)\right) + b \cdot c\right) - i \cdot \left(x \cdot 4\right)\\
\mathbf{if}\;t\_2 \leq -3 \cdot 10^{+213}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{+154}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+303}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + b \cdot c\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\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)) < -3.0000000000000001e213 or 4.9999999999999997e303 < (-.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 75.5%
distribute-rgt-out--81.3%
associate-*r*79.9%
*-commutative79.9%
associate-*l*79.9%
associate-*r*79.9%
Applied egg-rr79.9%
Taylor expanded in t around 0 54.5%
Taylor expanded in j around 0 54.7%
Taylor expanded in i around inf 54.7%
cancel-sign-sub-inv54.7%
associate-/l*56.9%
metadata-eval56.9%
*-commutative56.9%
Simplified56.9%
if -3.0000000000000001e213 < (-.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)) < -5.00000000000000004e154Initial program 100.0%
Simplified100.0%
Taylor expanded in j around inf 56.9%
Taylor expanded in a around inf 74.2%
associate-*r*74.2%
metadata-eval74.2%
distribute-lft-neg-in74.2%
distribute-lft-neg-in74.2%
distribute-rgt-neg-out74.2%
*-commutative74.2%
distribute-lft-neg-out74.2%
distribute-rgt-neg-in74.2%
distribute-lft-neg-in74.2%
metadata-eval74.2%
*-commutative74.2%
Simplified74.2%
if -5.00000000000000004e154 < (-.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.9999999999999997e303Initial program 99.9%
Simplified97.1%
Taylor expanded in b around inf 57.7%
Final simplification58.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) (* 4.0 (* x i))))
(t_2
(-
(+ (- (* t (* z (* y (* 18.0 x)))) (* t (* 4.0 a))) (* b c))
(* i (* x 4.0)))))
(if (<= t_2 -3e+213)
t_1
(if (<= t_2 -5e+154)
(* t (* a -4.0))
(if (<= t_2 1e+227) (+ (* j (* k -27.0)) (* b c)) t_1)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (4.0 * (x * i));
double t_2 = (((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0));
double tmp;
if (t_2 <= -3e+213) {
tmp = t_1;
} else if (t_2 <= -5e+154) {
tmp = t * (a * -4.0);
} else if (t_2 <= 1e+227) {
tmp = (j * (k * -27.0)) + (b * c);
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * c) - (4.0d0 * (x * i))
t_2 = (((t * (z * (y * (18.0d0 * x)))) - (t * (4.0d0 * a))) + (b * c)) - (i * (x * 4.0d0))
if (t_2 <= (-3d+213)) then
tmp = t_1
else if (t_2 <= (-5d+154)) then
tmp = t * (a * (-4.0d0))
else if (t_2 <= 1d+227) then
tmp = (j * (k * (-27.0d0))) + (b * c)
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (b * c) - (4.0 * (x * i));
double t_2 = (((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0));
double tmp;
if (t_2 <= -3e+213) {
tmp = t_1;
} else if (t_2 <= -5e+154) {
tmp = t * (a * -4.0);
} else if (t_2 <= 1e+227) {
tmp = (j * (k * -27.0)) + (b * c);
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (b * c) - (4.0 * (x * i)) t_2 = (((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0)) tmp = 0 if t_2 <= -3e+213: tmp = t_1 elif t_2 <= -5e+154: tmp = t * (a * -4.0) elif t_2 <= 1e+227: tmp = (j * (k * -27.0)) + (b * c) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) t_2 = Float64(Float64(Float64(Float64(t * Float64(z * Float64(y * Float64(18.0 * x)))) - Float64(t * Float64(4.0 * a))) + Float64(b * c)) - Float64(i * Float64(x * 4.0))) tmp = 0.0 if (t_2 <= -3e+213) tmp = t_1; elseif (t_2 <= -5e+154) tmp = Float64(t * Float64(a * -4.0)); elseif (t_2 <= 1e+227) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(b * c)); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (b * c) - (4.0 * (x * i));
t_2 = (((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0));
tmp = 0.0;
if (t_2 <= -3e+213)
tmp = t_1;
elseif (t_2 <= -5e+154)
tmp = t * (a * -4.0);
elseif (t_2 <= 1e+227)
tmp = (j * (k * -27.0)) + (b * c);
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(t * N[(z * N[(y * N[(18.0 * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -3e+213], t$95$1, If[LessEqual[t$95$2, -5e+154], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+227], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := b \cdot c - 4 \cdot \left(x \cdot i\right)\\
t_2 := \left(\left(t \cdot \left(z \cdot \left(y \cdot \left(18 \cdot x\right)\right)\right) - t \cdot \left(4 \cdot a\right)\right) + b \cdot c\right) - i \cdot \left(x \cdot 4\right)\\
\mathbf{if}\;t\_2 \leq -3 \cdot 10^{+213}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{+154}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{elif}\;t\_2 \leq 10^{+227}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + b \cdot c\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\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)) < -3.0000000000000001e213 or 1.0000000000000001e227 < (-.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 78.8%
distribute-rgt-out--83.8%
associate-*r*82.6%
*-commutative82.6%
associate-*l*82.6%
associate-*r*82.5%
Applied egg-rr82.5%
Taylor expanded in t around 0 55.7%
Taylor expanded in j around 0 54.6%
if -3.0000000000000001e213 < (-.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)) < -5.00000000000000004e154Initial program 100.0%
Simplified100.0%
Taylor expanded in j around inf 56.9%
Taylor expanded in a around inf 74.2%
associate-*r*74.2%
metadata-eval74.2%
distribute-lft-neg-in74.2%
distribute-lft-neg-in74.2%
distribute-rgt-neg-out74.2%
*-commutative74.2%
distribute-lft-neg-out74.2%
distribute-rgt-neg-in74.2%
distribute-lft-neg-in74.2%
metadata-eval74.2%
*-commutative74.2%
Simplified74.2%
if -5.00000000000000004e154 < (-.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)) < 1.0000000000000001e227Initial program 99.8%
Simplified96.4%
Taylor expanded in b around inf 60.6%
Final simplification57.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
(-
(+ (- (* t (* z (* y (* 18.0 x)))) (* t (* 4.0 a))) (* b c))
(* i (* x 4.0)))))
(if (or (<= t_1 -3e+213) (not (<= t_1 1e+298)))
(* i (+ (* b (/ c i)) (* x -4.0)))
(+ (* j (* k -27.0)) (* a (* t -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 = (((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0));
double tmp;
if ((t_1 <= -3e+213) || !(t_1 <= 1e+298)) {
tmp = i * ((b * (c / i)) + (x * -4.0));
} else {
tmp = (j * (k * -27.0)) + (a * (t * -4.0));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (((t * (z * (y * (18.0d0 * x)))) - (t * (4.0d0 * a))) + (b * c)) - (i * (x * 4.0d0))
if ((t_1 <= (-3d+213)) .or. (.not. (t_1 <= 1d+298))) then
tmp = i * ((b * (c / i)) + (x * (-4.0d0)))
else
tmp = (j * (k * (-27.0d0))) + (a * (t * (-4.0d0)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0));
double tmp;
if ((t_1 <= -3e+213) || !(t_1 <= 1e+298)) {
tmp = i * ((b * (c / i)) + (x * -4.0));
} else {
tmp = (j * (k * -27.0)) + (a * (t * -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 = (((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0)) tmp = 0 if (t_1 <= -3e+213) or not (t_1 <= 1e+298): tmp = i * ((b * (c / i)) + (x * -4.0)) else: tmp = (j * (k * -27.0)) + (a * (t * -4.0)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(Float64(Float64(t * Float64(z * Float64(y * Float64(18.0 * x)))) - Float64(t * Float64(4.0 * a))) + Float64(b * c)) - Float64(i * Float64(x * 4.0))) tmp = 0.0 if ((t_1 <= -3e+213) || !(t_1 <= 1e+298)) tmp = Float64(i * Float64(Float64(b * Float64(c / i)) + Float64(x * -4.0))); else tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(a * Float64(t * -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 = (((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0));
tmp = 0.0;
if ((t_1 <= -3e+213) || ~((t_1 <= 1e+298)))
tmp = i * ((b * (c / i)) + (x * -4.0));
else
tmp = (j * (k * -27.0)) + (a * (t * -4.0));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(N[(N[(t * N[(z * N[(y * N[(18.0 * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -3e+213], N[Not[LessEqual[t$95$1, 1e+298]], $MachinePrecision]], N[(i * N[(N[(b * N[(c / i), $MachinePrecision]), $MachinePrecision] + N[(x * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(a * N[(t * -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 := \left(\left(t \cdot \left(z \cdot \left(y \cdot \left(18 \cdot x\right)\right)\right) - t \cdot \left(4 \cdot a\right)\right) + b \cdot c\right) - i \cdot \left(x \cdot 4\right)\\
\mathbf{if}\;t\_1 \leq -3 \cdot 10^{+213} \lor \neg \left(t\_1 \leq 10^{+298}\right):\\
\;\;\;\;i \cdot \left(b \cdot \frac{c}{i} + x \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + a \cdot \left(t \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)) < -3.0000000000000001e213 or 9.9999999999999996e297 < (-.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 76.0%
distribute-rgt-out--81.7%
associate-*r*80.3%
*-commutative80.3%
associate-*l*80.3%
associate-*r*80.3%
Applied egg-rr80.3%
Taylor expanded in t around 0 55.5%
Taylor expanded in j around 0 55.6%
Taylor expanded in i around inf 54.4%
cancel-sign-sub-inv54.4%
associate-/l*56.6%
metadata-eval56.6%
*-commutative56.6%
Simplified56.6%
if -3.0000000000000001e213 < (-.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)) < 9.9999999999999996e297Initial program 99.9%
Simplified97.3%
Taylor expanded in a around inf 64.8%
metadata-eval64.8%
distribute-lft-neg-in64.8%
*-commutative64.8%
associate-*l*64.8%
distribute-lft-neg-in64.8%
distribute-lft-neg-in64.8%
metadata-eval64.8%
Simplified64.8%
Final simplification60.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 (* i (* x 4.0))) (t_2 (* k (* j 27.0))) (t_3 (* t (* 4.0 a))))
(if (<=
(- (- (+ (- (* t (* z (* y (* 18.0 x)))) t_3) (* b c)) t_1) t_2)
INFINITY)
(- (- (+ (* b c) (- (* t (* z (* x (* 18.0 y)))) t_3)) t_1) t_2)
(* x (- (* 18.0 (* t (* z y))) (* 4.0 i))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = i * (x * 4.0);
double t_2 = k * (j * 27.0);
double t_3 = t * (4.0 * a);
double tmp;
if ((((((t * (z * (y * (18.0 * x)))) - t_3) + (b * c)) - t_1) - t_2) <= ((double) INFINITY)) {
tmp = (((b * c) + ((t * (z * (x * (18.0 * y)))) - t_3)) - t_1) - t_2;
} else {
tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i));
}
return tmp;
}
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = i * (x * 4.0);
double t_2 = k * (j * 27.0);
double t_3 = t * (4.0 * a);
double tmp;
if ((((((t * (z * (y * (18.0 * x)))) - t_3) + (b * c)) - t_1) - t_2) <= Double.POSITIVE_INFINITY) {
tmp = (((b * c) + ((t * (z * (x * (18.0 * y)))) - t_3)) - t_1) - t_2;
} else {
tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = i * (x * 4.0) t_2 = k * (j * 27.0) t_3 = t * (4.0 * a) tmp = 0 if (((((t * (z * (y * (18.0 * x)))) - t_3) + (b * c)) - t_1) - t_2) <= math.inf: tmp = (((b * c) + ((t * (z * (x * (18.0 * y)))) - t_3)) - t_1) - t_2 else: tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(i * Float64(x * 4.0)) t_2 = Float64(k * Float64(j * 27.0)) t_3 = Float64(t * Float64(4.0 * a)) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(t * Float64(z * Float64(y * Float64(18.0 * x)))) - t_3) + Float64(b * c)) - t_1) - t_2) <= Inf) tmp = Float64(Float64(Float64(Float64(b * c) + Float64(Float64(t * Float64(z * Float64(x * Float64(18.0 * y)))) - t_3)) - t_1) - t_2); else tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(z * y))) - Float64(4.0 * i))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = i * (x * 4.0);
t_2 = k * (j * 27.0);
t_3 = t * (4.0 * a);
tmp = 0.0;
if ((((((t * (z * (y * (18.0 * x)))) - t_3) + (b * c)) - t_1) - t_2) <= Inf)
tmp = (((b * c) + ((t * (z * (x * (18.0 * y)))) - t_3)) - t_1) - t_2;
else
tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(t * N[(z * N[(y * N[(18.0 * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$3), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], Infinity], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(N[(t * N[(z * N[(x * N[(18.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$3), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], N[(x * N[(N[(18.0 * N[(t * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := i \cdot \left(x \cdot 4\right)\\
t_2 := k \cdot \left(j \cdot 27\right)\\
t_3 := t \cdot \left(4 \cdot a\right)\\
\mathbf{if}\;\left(\left(\left(t \cdot \left(z \cdot \left(y \cdot \left(18 \cdot x\right)\right)\right) - t\_3\right) + b \cdot c\right) - t\_1\right) - t\_2 \leq \infty:\\
\;\;\;\;\left(\left(b \cdot c + \left(t \cdot \left(z \cdot \left(x \cdot \left(18 \cdot y\right)\right)\right) - t\_3\right)\right) - t\_1\right) - t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(z \cdot y\right)\right) - 4 \cdot i\right)\\
\end{array}
\end{array}
if (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) < +inf.0Initial program 97.1%
Taylor expanded in x around 0 97.1%
associate-*r*97.1%
*-commutative97.1%
associate-*r*97.1%
Simplified97.1%
if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) Initial program 0.0%
Simplified22.2%
Taylor expanded in x around inf 59.6%
Final simplification93.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 (* i (* x 4.0))) (t_2 (* k (* j 27.0))))
(if (<=
(-
(- (+ (- (* t (* z (* y (* 18.0 x)))) (* t (* 4.0 a))) (* b c)) t_1)
t_2)
INFINITY)
(- (- (+ (* b c) (* t (- (* x (* z (* 18.0 y))) (* 4.0 a)))) t_1) t_2)
(* x (- (* 18.0 (* t (* z y))) (* 4.0 i))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = i * (x * 4.0);
double t_2 = k * (j * 27.0);
double tmp;
if ((((((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - t_1) - t_2) <= ((double) INFINITY)) {
tmp = (((b * c) + (t * ((x * (z * (18.0 * y))) - (4.0 * a)))) - t_1) - t_2;
} else {
tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i));
}
return tmp;
}
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = i * (x * 4.0);
double t_2 = k * (j * 27.0);
double tmp;
if ((((((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - t_1) - t_2) <= Double.POSITIVE_INFINITY) {
tmp = (((b * c) + (t * ((x * (z * (18.0 * y))) - (4.0 * a)))) - t_1) - t_2;
} else {
tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = i * (x * 4.0) t_2 = k * (j * 27.0) tmp = 0 if (((((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - t_1) - t_2) <= math.inf: tmp = (((b * c) + (t * ((x * (z * (18.0 * y))) - (4.0 * a)))) - t_1) - t_2 else: tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(i * Float64(x * 4.0)) t_2 = Float64(k * Float64(j * 27.0)) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(t * Float64(z * Float64(y * Float64(18.0 * x)))) - Float64(t * Float64(4.0 * a))) + Float64(b * c)) - t_1) - t_2) <= Inf) tmp = Float64(Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(x * Float64(z * Float64(18.0 * y))) - Float64(4.0 * a)))) - t_1) - t_2); else tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(z * y))) - Float64(4.0 * i))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = i * (x * 4.0);
t_2 = k * (j * 27.0);
tmp = 0.0;
if ((((((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - t_1) - t_2) <= Inf)
tmp = (((b * c) + (t * ((x * (z * (18.0 * y))) - (4.0 * a)))) - t_1) - t_2;
else
tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(t * N[(z * N[(y * N[(18.0 * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], Infinity], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(x * N[(z * N[(18.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $MachinePrecision], N[(x * N[(N[(18.0 * N[(t * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := i \cdot \left(x \cdot 4\right)\\
t_2 := k \cdot \left(j \cdot 27\right)\\
\mathbf{if}\;\left(\left(\left(t \cdot \left(z \cdot \left(y \cdot \left(18 \cdot x\right)\right)\right) - t \cdot \left(4 \cdot a\right)\right) + b \cdot c\right) - t\_1\right) - t\_2 \leq \infty:\\
\;\;\;\;\left(\left(b \cdot c + t \cdot \left(x \cdot \left(z \cdot \left(18 \cdot y\right)\right) - 4 \cdot a\right)\right) - t\_1\right) - t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(z \cdot y\right)\right) - 4 \cdot i\right)\\
\end{array}
\end{array}
if (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) < +inf.0Initial program 97.1%
distribute-rgt-out--97.1%
associate-*r*95.8%
*-commutative95.8%
associate-*l*95.8%
associate-*r*95.8%
Applied egg-rr95.8%
if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) Initial program 0.0%
Simplified22.2%
Taylor expanded in x around inf 59.6%
Final simplification91.9%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<=
(-
(-
(+ (- (* t (* z (* y (* 18.0 x)))) (* t (* 4.0 a))) (* b c))
(* i (* x 4.0)))
(* k (* j 27.0)))
INFINITY)
(-
(+ (* b c) (* t (- (* (* z y) (* 18.0 x)) (* 4.0 a))))
(+ (* x (* 4.0 i)) (* j (* k 27.0))))
(* x (- (* 18.0 (* t (* z y))) (* 4.0 i)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((((((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0))) - (k * (j * 27.0))) <= ((double) INFINITY)) {
tmp = ((b * c) + (t * (((z * y) * (18.0 * x)) - (4.0 * a)))) - ((x * (4.0 * i)) + (j * (k * 27.0)));
} else {
tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i));
}
return tmp;
}
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((((((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0))) - (k * (j * 27.0))) <= Double.POSITIVE_INFINITY) {
tmp = ((b * c) + (t * (((z * y) * (18.0 * x)) - (4.0 * a)))) - ((x * (4.0 * i)) + (j * (k * 27.0)));
} else {
tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (((((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0))) - (k * (j * 27.0))) <= math.inf: tmp = ((b * c) + (t * (((z * y) * (18.0 * x)) - (4.0 * a)))) - ((x * (4.0 * i)) + (j * (k * 27.0))) else: tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(t * Float64(z * Float64(y * Float64(18.0 * x)))) - Float64(t * Float64(4.0 * a))) + Float64(b * c)) - Float64(i * Float64(x * 4.0))) - Float64(k * Float64(j * 27.0))) <= Inf) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(z * y) * Float64(18.0 * x)) - Float64(4.0 * a)))) - Float64(Float64(x * Float64(4.0 * i)) + Float64(j * Float64(k * 27.0)))); else tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(z * y))) - Float64(4.0 * i))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((((((t * (z * (y * (18.0 * x)))) - (t * (4.0 * a))) + (b * c)) - (i * (x * 4.0))) - (k * (j * 27.0))) <= Inf)
tmp = ((b * c) + (t * (((z * y) * (18.0 * x)) - (4.0 * a)))) - ((x * (4.0 * i)) + (j * (k * 27.0)));
else
tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(N[(N[(N[(N[(t * N[(z * N[(y * N[(18.0 * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(z * y), $MachinePrecision] * N[(18.0 * x), $MachinePrecision]), $MachinePrecision] - N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(18.0 * N[(t * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;\left(\left(\left(t \cdot \left(z \cdot \left(y \cdot \left(18 \cdot x\right)\right)\right) - t \cdot \left(4 \cdot a\right)\right) + b \cdot c\right) - i \cdot \left(x \cdot 4\right)\right) - k \cdot \left(j \cdot 27\right) \leq \infty:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(\left(z \cdot y\right) \cdot \left(18 \cdot x\right) - 4 \cdot a\right)\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(k \cdot 27\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(z \cdot y\right)\right) - 4 \cdot i\right)\\
\end{array}
\end{array}
if (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) < +inf.0Initial program 97.1%
Simplified95.7%
if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) Initial program 0.0%
Simplified22.2%
Taylor expanded in x around inf 59.6%
Final simplification91.9%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= (* b c) -2.3e+128)
(* b c)
(if (<= (* b c) -0.24)
(* j (* k -27.0))
(if (<= (* b c) 3.8e-91)
(* 18.0 (* t (* x (* z y))))
(if (<= (* b c) 1.6e+47) (* t (* a -4.0)) (* b c))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -2.3e+128) {
tmp = b * c;
} else if ((b * c) <= -0.24) {
tmp = j * (k * -27.0);
} else if ((b * c) <= 3.8e-91) {
tmp = 18.0 * (t * (x * (z * y)));
} else if ((b * c) <= 1.6e+47) {
tmp = t * (a * -4.0);
} 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.3d+128)) then
tmp = b * c
else if ((b * c) <= (-0.24d0)) then
tmp = j * (k * (-27.0d0))
else if ((b * c) <= 3.8d-91) then
tmp = 18.0d0 * (t * (x * (z * y)))
else if ((b * c) <= 1.6d+47) then
tmp = t * (a * (-4.0d0))
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.3e+128) {
tmp = b * c;
} else if ((b * c) <= -0.24) {
tmp = j * (k * -27.0);
} else if ((b * c) <= 3.8e-91) {
tmp = 18.0 * (t * (x * (z * y)));
} else if ((b * c) <= 1.6e+47) {
tmp = t * (a * -4.0);
} 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.3e+128: tmp = b * c elif (b * c) <= -0.24: tmp = j * (k * -27.0) elif (b * c) <= 3.8e-91: tmp = 18.0 * (t * (x * (z * y))) elif (b * c) <= 1.6e+47: tmp = t * (a * -4.0) 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.3e+128) tmp = Float64(b * c); elseif (Float64(b * c) <= -0.24) tmp = Float64(j * Float64(k * -27.0)); elseif (Float64(b * c) <= 3.8e-91) tmp = Float64(18.0 * Float64(t * Float64(x * Float64(z * y)))); elseif (Float64(b * c) <= 1.6e+47) tmp = Float64(t * Float64(a * -4.0)); 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.3e+128)
tmp = b * c;
elseif ((b * c) <= -0.24)
tmp = j * (k * -27.0);
elseif ((b * c) <= 3.8e-91)
tmp = 18.0 * (t * (x * (z * y)));
elseif ((b * c) <= 1.6e+47)
tmp = t * (a * -4.0);
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.3e+128], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -0.24], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 3.8e-91], N[(18.0 * N[(t * N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1.6e+47], N[(t * N[(a * -4.0), $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.3 \cdot 10^{+128}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -0.24:\\
\;\;\;\;j \cdot \left(k \cdot -27\right)\\
\mathbf{elif}\;b \cdot c \leq 3.8 \cdot 10^{-91}:\\
\;\;\;\;18 \cdot \left(t \cdot \left(x \cdot \left(z \cdot y\right)\right)\right)\\
\mathbf{elif}\;b \cdot c \leq 1.6 \cdot 10^{+47}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -2.29999999999999998e128 or 1.6e47 < (*.f64 b c) Initial program 82.6%
distribute-rgt-out--87.3%
associate-*r*85.0%
*-commutative85.0%
associate-*l*85.1%
associate-*r*85.1%
Applied egg-rr85.1%
Taylor expanded in b around inf 60.5%
if -2.29999999999999998e128 < (*.f64 b c) < -0.23999999999999999Initial program 94.4%
Simplified94.4%
Taylor expanded in j around inf 78.1%
Taylor expanded in j around inf 51.3%
*-commutative51.3%
associate-*r*51.4%
Simplified51.4%
if -0.23999999999999999 < (*.f64 b c) < 3.79999999999999978e-91Initial program 88.1%
Simplified89.6%
Taylor expanded in j around inf 78.4%
Taylor expanded in y around inf 36.4%
if 3.79999999999999978e-91 < (*.f64 b c) < 1.6e47Initial program 89.3%
Simplified85.5%
Taylor expanded in j around inf 71.6%
Taylor expanded in a around inf 41.4%
associate-*r*41.4%
metadata-eval41.4%
distribute-lft-neg-in41.4%
distribute-lft-neg-in41.4%
distribute-rgt-neg-out41.4%
*-commutative41.4%
distribute-lft-neg-out41.4%
distribute-rgt-neg-in41.4%
distribute-lft-neg-in41.4%
metadata-eval41.4%
*-commutative41.4%
Simplified41.4%
Final simplification46.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 (* 4.0 (* x i))))
(if (or (<= t -1.22e+14) (not (<= t 4e+32)))
(- (+ (* b c) (* t (- (* 18.0 (* z (* x y))) (* 4.0 a)))) t_1)
(- (- (+ (* b c) (* -4.0 (* t a))) t_1) (* 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 t_1 = 4.0 * (x * i);
double tmp;
if ((t <= -1.22e+14) || !(t <= 4e+32)) {
tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (4.0 * a)))) - t_1;
} else {
tmp = (((b * c) + (-4.0 * (t * a))) - t_1) - (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) :: t_1
real(8) :: tmp
t_1 = 4.0d0 * (x * i)
if ((t <= (-1.22d+14)) .or. (.not. (t <= 4d+32))) then
tmp = ((b * c) + (t * ((18.0d0 * (z * (x * y))) - (4.0d0 * a)))) - t_1
else
tmp = (((b * c) + ((-4.0d0) * (t * a))) - t_1) - (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 t_1 = 4.0 * (x * i);
double tmp;
if ((t <= -1.22e+14) || !(t <= 4e+32)) {
tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (4.0 * a)))) - t_1;
} else {
tmp = (((b * c) + (-4.0 * (t * a))) - t_1) - (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): t_1 = 4.0 * (x * i) tmp = 0 if (t <= -1.22e+14) or not (t <= 4e+32): tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (4.0 * a)))) - t_1 else: tmp = (((b * c) + (-4.0 * (t * a))) - t_1) - (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) t_1 = Float64(4.0 * Float64(x * i)) tmp = 0.0 if ((t <= -1.22e+14) || !(t <= 4e+32)) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(z * Float64(x * y))) - Float64(4.0 * a)))) - t_1); else tmp = Float64(Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - t_1) - 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)
t_1 = 4.0 * (x * i);
tmp = 0.0;
if ((t <= -1.22e+14) || ~((t <= 4e+32)))
tmp = ((b * c) + (t * ((18.0 * (z * (x * y))) - (4.0 * a)))) - t_1;
else
tmp = (((b * c) + (-4.0 * (t * a))) - t_1) - (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_] := Block[{t$95$1 = N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t, -1.22e+14], N[Not[LessEqual[t, 4e+32]], $MachinePrecision]], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $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}
t_1 := 4 \cdot \left(x \cdot i\right)\\
\mathbf{if}\;t \leq -1.22 \cdot 10^{+14} \lor \neg \left(t \leq 4 \cdot 10^{+32}\right):\\
\;\;\;\;\left(b \cdot c + t \cdot \left(18 \cdot \left(z \cdot \left(x \cdot y\right)\right) - 4 \cdot a\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - t\_1\right) - k \cdot \left(j \cdot 27\right)\\
\end{array}
\end{array}
if t < -1.22e14 or 4.00000000000000021e32 < t Initial program 83.0%
Simplified87.0%
Taylor expanded in j around 0 85.2%
pow185.2%
Applied egg-rr85.2%
unpow185.2%
associate-*r*89.2%
Simplified89.2%
if -1.22e14 < t < 4.00000000000000021e32Initial program 90.4%
distribute-rgt-out--90.4%
associate-*r*89.0%
*-commutative89.0%
associate-*l*88.9%
associate-*r*88.9%
Applied egg-rr88.9%
Taylor expanded in y around 0 91.1%
Final simplification90.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* 4.0 (* x i))))
(if (or (<= t -2.35e+17) (not (<= t 4.1e+34)))
(- (+ (* b c) (* t (- (* 18.0 (* x (* z y))) (* 4.0 a)))) t_1)
(- (- (+ (* b c) (* -4.0 (* t a))) t_1) (* 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 t_1 = 4.0 * (x * i);
double tmp;
if ((t <= -2.35e+17) || !(t <= 4.1e+34)) {
tmp = ((b * c) + (t * ((18.0 * (x * (z * y))) - (4.0 * a)))) - t_1;
} else {
tmp = (((b * c) + (-4.0 * (t * a))) - t_1) - (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) :: t_1
real(8) :: tmp
t_1 = 4.0d0 * (x * i)
if ((t <= (-2.35d+17)) .or. (.not. (t <= 4.1d+34))) then
tmp = ((b * c) + (t * ((18.0d0 * (x * (z * y))) - (4.0d0 * a)))) - t_1
else
tmp = (((b * c) + ((-4.0d0) * (t * a))) - t_1) - (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 t_1 = 4.0 * (x * i);
double tmp;
if ((t <= -2.35e+17) || !(t <= 4.1e+34)) {
tmp = ((b * c) + (t * ((18.0 * (x * (z * y))) - (4.0 * a)))) - t_1;
} else {
tmp = (((b * c) + (-4.0 * (t * a))) - t_1) - (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): t_1 = 4.0 * (x * i) tmp = 0 if (t <= -2.35e+17) or not (t <= 4.1e+34): tmp = ((b * c) + (t * ((18.0 * (x * (z * y))) - (4.0 * a)))) - t_1 else: tmp = (((b * c) + (-4.0 * (t * a))) - t_1) - (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) t_1 = Float64(4.0 * Float64(x * i)) tmp = 0.0 if ((t <= -2.35e+17) || !(t <= 4.1e+34)) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(18.0 * Float64(x * Float64(z * y))) - Float64(4.0 * a)))) - t_1); else tmp = Float64(Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - t_1) - 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)
t_1 = 4.0 * (x * i);
tmp = 0.0;
if ((t <= -2.35e+17) || ~((t <= 4.1e+34)))
tmp = ((b * c) + (t * ((18.0 * (x * (z * y))) - (4.0 * a)))) - t_1;
else
tmp = (((b * c) + (-4.0 * (t * a))) - t_1) - (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_] := Block[{t$95$1 = N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t, -2.35e+17], N[Not[LessEqual[t, 4.1e+34]], $MachinePrecision]], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(18.0 * N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $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}
t_1 := 4 \cdot \left(x \cdot i\right)\\
\mathbf{if}\;t \leq -2.35 \cdot 10^{+17} \lor \neg \left(t \leq 4.1 \cdot 10^{+34}\right):\\
\;\;\;\;\left(b \cdot c + t \cdot \left(18 \cdot \left(x \cdot \left(z \cdot y\right)\right) - 4 \cdot a\right)\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - t\_1\right) - k \cdot \left(j \cdot 27\right)\\
\end{array}
\end{array}
if t < -2.35e17 or 4.0999999999999998e34 < t Initial program 83.0%
Simplified87.0%
Taylor expanded in j around 0 85.2%
if -2.35e17 < t < 4.0999999999999998e34Initial program 90.4%
distribute-rgt-out--90.4%
associate-*r*89.0%
*-commutative89.0%
associate-*l*88.9%
associate-*r*88.9%
Applied egg-rr88.9%
Taylor expanded in y around 0 91.1%
Final simplification88.3%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= t -1.3e+18)
(* z (* t (+ (* -4.0 (/ a z)) (* 18.0 (* x y)))))
(if (<= t 1.3e-229)
(+ (* j (* k -27.0)) (* b c))
(if (<= t 1.05e-5)
(- (* b c) (* 4.0 (* x i)))
(* t (- (* 18.0 (* x (* z y))) (* 4.0 a)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (t <= -1.3e+18) {
tmp = z * (t * ((-4.0 * (a / z)) + (18.0 * (x * y))));
} else if (t <= 1.3e-229) {
tmp = (j * (k * -27.0)) + (b * c);
} else if (t <= 1.05e-5) {
tmp = (b * c) - (4.0 * (x * i));
} else {
tmp = t * ((18.0 * (x * (z * y))) - (4.0 * a));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (t <= (-1.3d+18)) then
tmp = z * (t * (((-4.0d0) * (a / z)) + (18.0d0 * (x * y))))
else if (t <= 1.3d-229) then
tmp = (j * (k * (-27.0d0))) + (b * c)
else if (t <= 1.05d-5) then
tmp = (b * c) - (4.0d0 * (x * i))
else
tmp = t * ((18.0d0 * (x * (z * y))) - (4.0d0 * a))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (t <= -1.3e+18) {
tmp = z * (t * ((-4.0 * (a / z)) + (18.0 * (x * y))));
} else if (t <= 1.3e-229) {
tmp = (j * (k * -27.0)) + (b * c);
} else if (t <= 1.05e-5) {
tmp = (b * c) - (4.0 * (x * i));
} else {
tmp = t * ((18.0 * (x * (z * y))) - (4.0 * a));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if t <= -1.3e+18: tmp = z * (t * ((-4.0 * (a / z)) + (18.0 * (x * y)))) elif t <= 1.3e-229: tmp = (j * (k * -27.0)) + (b * c) elif t <= 1.05e-5: tmp = (b * c) - (4.0 * (x * i)) else: tmp = t * ((18.0 * (x * (z * y))) - (4.0 * a)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (t <= -1.3e+18) tmp = Float64(z * Float64(t * Float64(Float64(-4.0 * Float64(a / z)) + Float64(18.0 * Float64(x * y))))); elseif (t <= 1.3e-229) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(b * c)); elseif (t <= 1.05e-5) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); else tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(z * y))) - Float64(4.0 * a))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (t <= -1.3e+18)
tmp = z * (t * ((-4.0 * (a / z)) + (18.0 * (x * y))));
elseif (t <= 1.3e-229)
tmp = (j * (k * -27.0)) + (b * c);
elseif (t <= 1.05e-5)
tmp = (b * c) - (4.0 * (x * i));
else
tmp = t * ((18.0 * (x * (z * y))) - (4.0 * a));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[t, -1.3e+18], N[(z * N[(t * N[(N[(-4.0 * N[(a / z), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.3e-229], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e-5], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(18.0 * N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.3 \cdot 10^{+18}:\\
\;\;\;\;z \cdot \left(t \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{-229}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + b \cdot c\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{-5}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(z \cdot y\right)\right) - 4 \cdot a\right)\\
\end{array}
\end{array}
if t < -1.3e18Initial program 89.0%
Taylor expanded in t around -inf 72.6%
associate-*r*72.6%
neg-mul-172.6%
cancel-sign-sub-inv72.6%
metadata-eval72.6%
*-commutative72.6%
associate-*r*72.7%
Simplified72.7%
Taylor expanded in z around inf 64.3%
Taylor expanded in t around 0 72.2%
if -1.3e18 < t < 1.3000000000000001e-229Initial program 88.6%
Simplified88.7%
Taylor expanded in b around inf 64.5%
if 1.3000000000000001e-229 < t < 1.04999999999999994e-5Initial program 95.5%
distribute-rgt-out--95.5%
associate-*r*93.1%
*-commutative93.1%
associate-*l*93.1%
associate-*r*93.0%
Applied egg-rr93.0%
Taylor expanded in t around 0 81.5%
Taylor expanded in j around 0 62.5%
if 1.04999999999999994e-5 < t Initial program 76.9%
Simplified79.9%
Taylor expanded in t around inf 65.5%
Final simplification66.3%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= t -2.2e+14)
(* t (- (* a (- 4.0)) (* (* z y) (* x -18.0))))
(if (<= t 1.56e-229)
(+ (* j (* k -27.0)) (* b c))
(if (<= t 2.2e-6)
(- (* b c) (* 4.0 (* x i)))
(* t (- (* 18.0 (* x (* z y))) (* 4.0 a)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (t <= -2.2e+14) {
tmp = t * ((a * -4.0) - ((z * y) * (x * -18.0)));
} else if (t <= 1.56e-229) {
tmp = (j * (k * -27.0)) + (b * c);
} else if (t <= 2.2e-6) {
tmp = (b * c) - (4.0 * (x * i));
} else {
tmp = t * ((18.0 * (x * (z * y))) - (4.0 * a));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (t <= (-2.2d+14)) then
tmp = t * ((a * -4.0d0) - ((z * y) * (x * (-18.0d0))))
else if (t <= 1.56d-229) then
tmp = (j * (k * (-27.0d0))) + (b * c)
else if (t <= 2.2d-6) then
tmp = (b * c) - (4.0d0 * (x * i))
else
tmp = t * ((18.0d0 * (x * (z * y))) - (4.0d0 * a))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (t <= -2.2e+14) {
tmp = t * ((a * -4.0) - ((z * y) * (x * -18.0)));
} else if (t <= 1.56e-229) {
tmp = (j * (k * -27.0)) + (b * c);
} else if (t <= 2.2e-6) {
tmp = (b * c) - (4.0 * (x * i));
} else {
tmp = t * ((18.0 * (x * (z * y))) - (4.0 * a));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if t <= -2.2e+14: tmp = t * ((a * -4.0) - ((z * y) * (x * -18.0))) elif t <= 1.56e-229: tmp = (j * (k * -27.0)) + (b * c) elif t <= 2.2e-6: tmp = (b * c) - (4.0 * (x * i)) else: tmp = t * ((18.0 * (x * (z * y))) - (4.0 * a)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (t <= -2.2e+14) tmp = Float64(t * Float64(Float64(a * Float64(-4.0)) - Float64(Float64(z * y) * Float64(x * -18.0)))); elseif (t <= 1.56e-229) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(b * c)); elseif (t <= 2.2e-6) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); else tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(z * y))) - Float64(4.0 * a))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (t <= -2.2e+14)
tmp = t * ((a * -4.0) - ((z * y) * (x * -18.0)));
elseif (t <= 1.56e-229)
tmp = (j * (k * -27.0)) + (b * c);
elseif (t <= 2.2e-6)
tmp = (b * c) - (4.0 * (x * i));
else
tmp = t * ((18.0 * (x * (z * y))) - (4.0 * a));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[t, -2.2e+14], N[(t * N[(N[(a * (-4.0)), $MachinePrecision] - N[(N[(z * y), $MachinePrecision] * N[(x * -18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.56e-229], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.2e-6], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(18.0 * N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.2 \cdot 10^{+14}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-4\right) - \left(z \cdot y\right) \cdot \left(x \cdot -18\right)\right)\\
\mathbf{elif}\;t \leq 1.56 \cdot 10^{-229}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + b \cdot c\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-6}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(z \cdot y\right)\right) - 4 \cdot a\right)\\
\end{array}
\end{array}
if t < -2.2e14Initial program 89.0%
Taylor expanded in t around -inf 72.6%
associate-*r*72.6%
neg-mul-172.6%
cancel-sign-sub-inv72.6%
metadata-eval72.6%
*-commutative72.6%
associate-*r*72.7%
Simplified72.7%
if -2.2e14 < t < 1.5600000000000001e-229Initial program 88.6%
Simplified88.7%
Taylor expanded in b around inf 64.5%
if 1.5600000000000001e-229 < t < 2.2000000000000001e-6Initial program 95.5%
distribute-rgt-out--95.5%
associate-*r*93.1%
*-commutative93.1%
associate-*l*93.1%
associate-*r*93.0%
Applied egg-rr93.0%
Taylor expanded in t around 0 81.5%
Taylor expanded in j around 0 62.5%
if 2.2000000000000001e-6 < t Initial program 76.9%
Simplified79.9%
Taylor expanded in t around inf 65.5%
Final simplification66.4%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* t (- (* 18.0 (* x (* z y))) (* 4.0 a)))))
(if (<= t -3.2e+14)
t_1
(if (<= t 1.8e-229)
(+ (* j (* k -27.0)) (* b c))
(if (<= t 7e-5) (- (* b c) (* 4.0 (* x i))) t_1)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = t * ((18.0 * (x * (z * y))) - (4.0 * a));
double tmp;
if (t <= -3.2e+14) {
tmp = t_1;
} else if (t <= 1.8e-229) {
tmp = (j * (k * -27.0)) + (b * c);
} else if (t <= 7e-5) {
tmp = (b * c) - (4.0 * (x * i));
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((18.0d0 * (x * (z * y))) - (4.0d0 * a))
if (t <= (-3.2d+14)) then
tmp = t_1
else if (t <= 1.8d-229) then
tmp = (j * (k * (-27.0d0))) + (b * c)
else if (t <= 7d-5) then
tmp = (b * c) - (4.0d0 * (x * i))
else
tmp = t_1
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = t * ((18.0 * (x * (z * y))) - (4.0 * a));
double tmp;
if (t <= -3.2e+14) {
tmp = t_1;
} else if (t <= 1.8e-229) {
tmp = (j * (k * -27.0)) + (b * c);
} else if (t <= 7e-5) {
tmp = (b * c) - (4.0 * (x * i));
} else {
tmp = t_1;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = t * ((18.0 * (x * (z * y))) - (4.0 * a)) tmp = 0 if t <= -3.2e+14: tmp = t_1 elif t <= 1.8e-229: tmp = (j * (k * -27.0)) + (b * c) elif t <= 7e-5: tmp = (b * c) - (4.0 * (x * i)) else: tmp = t_1 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(z * y))) - Float64(4.0 * a))) tmp = 0.0 if (t <= -3.2e+14) tmp = t_1; elseif (t <= 1.8e-229) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(b * c)); elseif (t <= 7e-5) tmp = Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))); else tmp = t_1; end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = t * ((18.0 * (x * (z * y))) - (4.0 * a));
tmp = 0.0;
if (t <= -3.2e+14)
tmp = t_1;
elseif (t <= 1.8e-229)
tmp = (j * (k * -27.0)) + (b * c);
elseif (t <= 7e-5)
tmp = (b * c) - (4.0 * (x * i));
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(t * N[(N[(18.0 * N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.2e+14], t$95$1, If[LessEqual[t, 1.8e-229], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7e-5], N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := t \cdot \left(18 \cdot \left(x \cdot \left(z \cdot y\right)\right) - 4 \cdot a\right)\\
\mathbf{if}\;t \leq -3.2 \cdot 10^{+14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{-229}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + b \cdot c\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-5}:\\
\;\;\;\;b \cdot c - 4 \cdot \left(x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -3.2e14 or 6.9999999999999994e-5 < t Initial program 82.8%
Simplified86.7%
Taylor expanded in t around inf 69.0%
if -3.2e14 < t < 1.80000000000000001e-229Initial program 88.6%
Simplified88.7%
Taylor expanded in b around inf 64.5%
if 1.80000000000000001e-229 < t < 6.9999999999999994e-5Initial program 95.5%
distribute-rgt-out--95.5%
associate-*r*93.1%
*-commutative93.1%
associate-*l*93.1%
associate-*r*93.0%
Applied egg-rr93.0%
Taylor expanded in t around 0 81.5%
Taylor expanded in j around 0 62.5%
Final simplification66.4%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= (* b c) -1.8e+129)
(* b c)
(if (<= (* b c) -1.05e-108)
(* k (* j -27.0))
(if (<= (* b c) 9.6e+132) (* -4.0 (* x 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) <= -1.8e+129) {
tmp = b * c;
} else if ((b * c) <= -1.05e-108) {
tmp = k * (j * -27.0);
} else if ((b * c) <= 9.6e+132) {
tmp = -4.0 * (x * 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) <= (-1.8d+129)) then
tmp = b * c
else if ((b * c) <= (-1.05d-108)) then
tmp = k * (j * (-27.0d0))
else if ((b * c) <= 9.6d+132) then
tmp = (-4.0d0) * (x * 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) <= -1.8e+129) {
tmp = b * c;
} else if ((b * c) <= -1.05e-108) {
tmp = k * (j * -27.0);
} else if ((b * c) <= 9.6e+132) {
tmp = -4.0 * (x * 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) <= -1.8e+129: tmp = b * c elif (b * c) <= -1.05e-108: tmp = k * (j * -27.0) elif (b * c) <= 9.6e+132: tmp = -4.0 * (x * 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) <= -1.8e+129) tmp = Float64(b * c); elseif (Float64(b * c) <= -1.05e-108) tmp = Float64(k * Float64(j * -27.0)); elseif (Float64(b * c) <= 9.6e+132) tmp = Float64(-4.0 * Float64(x * 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) <= -1.8e+129)
tmp = b * c;
elseif ((b * c) <= -1.05e-108)
tmp = k * (j * -27.0);
elseif ((b * c) <= 9.6e+132)
tmp = -4.0 * (x * 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], -1.8e+129], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1.05e-108], N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 9.6e+132], N[(-4.0 * N[(x * 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 -1.8 \cdot 10^{+129}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -1.05 \cdot 10^{-108}:\\
\;\;\;\;k \cdot \left(j \cdot -27\right)\\
\mathbf{elif}\;b \cdot c \leq 9.6 \cdot 10^{+132}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -1.8000000000000001e129 or 9.6000000000000004e132 < (*.f64 b c) Initial program 80.9%
distribute-rgt-out--85.0%
associate-*r*83.7%
*-commutative83.7%
associate-*l*83.8%
associate-*r*83.8%
Applied egg-rr83.8%
Taylor expanded in b around inf 66.8%
if -1.8000000000000001e129 < (*.f64 b c) < -1.05e-108Initial program 88.6%
Simplified91.7%
Taylor expanded in j around inf 40.7%
associate-*r*40.7%
*-commutative40.7%
metadata-eval40.7%
distribute-rgt-neg-in40.7%
*-commutative40.7%
distribute-rgt-neg-in40.7%
metadata-eval40.7%
*-commutative40.7%
Simplified40.7%
if -1.05e-108 < (*.f64 b c) < 9.6000000000000004e132Initial program 89.3%
distribute-rgt-out--92.0%
associate-*r*89.9%
*-commutative89.9%
associate-*l*89.9%
associate-*r*89.9%
Applied egg-rr89.9%
Taylor expanded in i around inf 31.1%
Final simplification42.6%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= (* b c) -3e+129)
(* b c)
(if (<= (* b c) -8.2e-109)
(* -27.0 (* j k))
(if (<= (* b c) 2.6e+133) (* -4.0 (* x 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) <= -3e+129) {
tmp = b * c;
} else if ((b * c) <= -8.2e-109) {
tmp = -27.0 * (j * k);
} else if ((b * c) <= 2.6e+133) {
tmp = -4.0 * (x * 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) <= (-3d+129)) then
tmp = b * c
else if ((b * c) <= (-8.2d-109)) then
tmp = (-27.0d0) * (j * k)
else if ((b * c) <= 2.6d+133) then
tmp = (-4.0d0) * (x * 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) <= -3e+129) {
tmp = b * c;
} else if ((b * c) <= -8.2e-109) {
tmp = -27.0 * (j * k);
} else if ((b * c) <= 2.6e+133) {
tmp = -4.0 * (x * 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) <= -3e+129: tmp = b * c elif (b * c) <= -8.2e-109: tmp = -27.0 * (j * k) elif (b * c) <= 2.6e+133: tmp = -4.0 * (x * 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) <= -3e+129) tmp = Float64(b * c); elseif (Float64(b * c) <= -8.2e-109) tmp = Float64(-27.0 * Float64(j * k)); elseif (Float64(b * c) <= 2.6e+133) tmp = Float64(-4.0 * Float64(x * 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) <= -3e+129)
tmp = b * c;
elseif ((b * c) <= -8.2e-109)
tmp = -27.0 * (j * k);
elseif ((b * c) <= 2.6e+133)
tmp = -4.0 * (x * 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], -3e+129], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -8.2e-109], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 2.6e+133], N[(-4.0 * N[(x * 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 -3 \cdot 10^{+129}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -8.2 \cdot 10^{-109}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;b \cdot c \leq 2.6 \cdot 10^{+133}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -3.0000000000000003e129 or 2.5999999999999998e133 < (*.f64 b c) Initial program 80.9%
distribute-rgt-out--85.0%
associate-*r*83.7%
*-commutative83.7%
associate-*l*83.8%
associate-*r*83.8%
Applied egg-rr83.8%
Taylor expanded in b around inf 66.8%
if -3.0000000000000003e129 < (*.f64 b c) < -8.2000000000000004e-109Initial program 88.6%
Simplified91.7%
Taylor expanded in j around inf 40.7%
if -8.2000000000000004e-109 < (*.f64 b c) < 2.5999999999999998e133Initial program 89.3%
distribute-rgt-out--92.0%
associate-*r*89.9%
*-commutative89.9%
associate-*l*89.9%
associate-*r*89.9%
Applied egg-rr89.9%
Taylor expanded in i around inf 31.1%
Final simplification42.6%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= t -6.2e+69)
(* z (* t (+ (* -4.0 (/ a z)) (* 18.0 (* x y)))))
(if (<= t 8.5e+36)
(- (- (* b c) (* 4.0 (* x i))) (* k (* j 27.0)))
(* t (* z (- (* (* x y) (- -18.0)) (* 4.0 (/ a z))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (t <= -6.2e+69) {
tmp = z * (t * ((-4.0 * (a / z)) + (18.0 * (x * y))));
} else if (t <= 8.5e+36) {
tmp = ((b * c) - (4.0 * (x * i))) - (k * (j * 27.0));
} else {
tmp = t * (z * (((x * y) * -(-18.0)) - (4.0 * (a / z))));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (t <= (-6.2d+69)) then
tmp = z * (t * (((-4.0d0) * (a / z)) + (18.0d0 * (x * y))))
else if (t <= 8.5d+36) then
tmp = ((b * c) - (4.0d0 * (x * i))) - (k * (j * 27.0d0))
else
tmp = t * (z * (((x * y) * -(-18.0d0)) - (4.0d0 * (a / z))))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (t <= -6.2e+69) {
tmp = z * (t * ((-4.0 * (a / z)) + (18.0 * (x * y))));
} else if (t <= 8.5e+36) {
tmp = ((b * c) - (4.0 * (x * i))) - (k * (j * 27.0));
} else {
tmp = t * (z * (((x * y) * -(-18.0)) - (4.0 * (a / z))));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if t <= -6.2e+69: tmp = z * (t * ((-4.0 * (a / z)) + (18.0 * (x * y)))) elif t <= 8.5e+36: tmp = ((b * c) - (4.0 * (x * i))) - (k * (j * 27.0)) else: tmp = t * (z * (((x * y) * -(-18.0)) - (4.0 * (a / z)))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (t <= -6.2e+69) tmp = Float64(z * Float64(t * Float64(Float64(-4.0 * Float64(a / z)) + Float64(18.0 * Float64(x * y))))); elseif (t <= 8.5e+36) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) - Float64(k * Float64(j * 27.0))); else tmp = Float64(t * Float64(z * Float64(Float64(Float64(x * y) * Float64(-(-18.0))) - Float64(4.0 * Float64(a / z))))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (t <= -6.2e+69)
tmp = z * (t * ((-4.0 * (a / z)) + (18.0 * (x * y))));
elseif (t <= 8.5e+36)
tmp = ((b * c) - (4.0 * (x * i))) - (k * (j * 27.0));
else
tmp = t * (z * (((x * y) * -(-18.0)) - (4.0 * (a / z))));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[t, -6.2e+69], N[(z * N[(t * N[(N[(-4.0 * N[(a / z), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e+36], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(z * N[(N[(N[(x * y), $MachinePrecision] * (--18.0)), $MachinePrecision] - N[(4.0 * N[(a / z), $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 -6.2 \cdot 10^{+69}:\\
\;\;\;\;z \cdot \left(t \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+36}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(x \cdot i\right)\right) - k \cdot \left(j \cdot 27\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(z \cdot \left(\left(x \cdot y\right) \cdot \left(--18\right) - 4 \cdot \frac{a}{z}\right)\right)\\
\end{array}
\end{array}
if t < -6.1999999999999997e69Initial program 90.7%
Taylor expanded in t around -inf 76.2%
associate-*r*76.2%
neg-mul-176.2%
cancel-sign-sub-inv76.2%
metadata-eval76.2%
*-commutative76.2%
associate-*r*76.3%
Simplified76.3%
Taylor expanded in z around inf 68.9%
Taylor expanded in t around 0 78.1%
if -6.1999999999999997e69 < t < 8.50000000000000014e36Initial program 89.8%
distribute-rgt-out--89.8%
associate-*r*89.1%
*-commutative89.1%
associate-*l*89.1%
associate-*r*89.1%
Applied egg-rr89.1%
Taylor expanded in t around 0 79.8%
if 8.50000000000000014e36 < t Initial program 75.8%
Taylor expanded in t around -inf 68.1%
associate-*r*68.1%
neg-mul-168.1%
cancel-sign-sub-inv68.1%
metadata-eval68.1%
*-commutative68.1%
associate-*r*68.0%
Simplified68.0%
Taylor expanded in z around inf 73.2%
Final simplification77.9%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (<= x -3.3e+123) (* x (- (* 18.0 (* t (* z y))) (* 4.0 i))) (- (- (+ (* b c) (* -4.0 (* t a))) (* 4.0 (* x i))) (* k (* j 27.0)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (x <= -3.3e+123) {
tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i));
} else {
tmp = (((b * c) + (-4.0 * (t * a))) - (4.0 * (x * i))) - (k * (j * 27.0));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (x <= (-3.3d+123)) then
tmp = x * ((18.0d0 * (t * (z * y))) - (4.0d0 * i))
else
tmp = (((b * c) + ((-4.0d0) * (t * a))) - (4.0d0 * (x * i))) - (k * (j * 27.0d0))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (x <= -3.3e+123) {
tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i));
} else {
tmp = (((b * c) + (-4.0 * (t * a))) - (4.0 * (x * i))) - (k * (j * 27.0));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if x <= -3.3e+123: tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i)) else: tmp = (((b * c) + (-4.0 * (t * a))) - (4.0 * (x * i))) - (k * (j * 27.0)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (x <= -3.3e+123) tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(z * y))) - Float64(4.0 * i))); else tmp = Float64(Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - Float64(4.0 * Float64(x * i))) - Float64(k * Float64(j * 27.0))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (x <= -3.3e+123)
tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i));
else
tmp = (((b * c) + (-4.0 * (t * a))) - (4.0 * (x * i))) - (k * (j * 27.0));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[x, -3.3e+123], N[(x * N[(N[(18.0 * N[(t * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.3 \cdot 10^{+123}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(z \cdot y\right)\right) - 4 \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - 4 \cdot \left(x \cdot i\right)\right) - k \cdot \left(j \cdot 27\right)\\
\end{array}
\end{array}
if x < -3.30000000000000003e123Initial program 79.3%
Simplified81.6%
Taylor expanded in x around inf 84.9%
if -3.30000000000000003e123 < x Initial program 88.4%
distribute-rgt-out--91.7%
associate-*r*89.3%
*-commutative89.3%
associate-*l*89.3%
associate-*r*89.3%
Applied egg-rr89.3%
Taylor expanded in y around 0 81.5%
Final simplification82.0%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (<= x -9.2e+120) (* x (- (* 18.0 (* t (* z y))) (* 4.0 i))) (- (+ (* b c) (* -4.0 (* t a))) (+ (* 4.0 (* x i)) (* 27.0 (* j k))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (x <= -9.2e+120) {
tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i));
} else {
tmp = ((b * c) + (-4.0 * (t * a))) - ((4.0 * (x * i)) + (27.0 * (j * k)));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (x <= (-9.2d+120)) then
tmp = x * ((18.0d0 * (t * (z * y))) - (4.0d0 * i))
else
tmp = ((b * c) + ((-4.0d0) * (t * a))) - ((4.0d0 * (x * i)) + (27.0d0 * (j * k)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (x <= -9.2e+120) {
tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i));
} else {
tmp = ((b * c) + (-4.0 * (t * a))) - ((4.0 * (x * i)) + (27.0 * (j * k)));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if x <= -9.2e+120: tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i)) else: tmp = ((b * c) + (-4.0 * (t * a))) - ((4.0 * (x * i)) + (27.0 * (j * k))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (x <= -9.2e+120) tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(z * y))) - Float64(4.0 * i))); else tmp = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - Float64(Float64(4.0 * Float64(x * i)) + Float64(27.0 * Float64(j * k)))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (x <= -9.2e+120)
tmp = x * ((18.0 * (t * (z * y))) - (4.0 * i));
else
tmp = ((b * c) + (-4.0 * (t * a))) - ((4.0 * (x * i)) + (27.0 * (j * k)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[x, -9.2e+120], N[(x * N[(N[(18.0 * N[(t * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9.2 \cdot 10^{+120}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(z \cdot y\right)\right) - 4 \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - \left(4 \cdot \left(x \cdot i\right) + 27 \cdot \left(j \cdot k\right)\right)\\
\end{array}
\end{array}
if x < -9.1999999999999997e120Initial program 79.3%
Simplified81.6%
Taylor expanded in x around inf 84.9%
if -9.1999999999999997e120 < x Initial program 88.4%
Simplified89.3%
Taylor expanded in y around 0 81.5%
Final simplification82.0%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= t -2.4e+70)
(* z (* t (+ (* -4.0 (/ a z)) (* 18.0 (* x y)))))
(if (<= t 6.4e+53)
(- (- (* b c) (* 4.0 (* x i))) (* k (* j 27.0)))
(* t (- (* 18.0 (* x (* z y))) (* 4.0 a))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (t <= -2.4e+70) {
tmp = z * (t * ((-4.0 * (a / z)) + (18.0 * (x * y))));
} else if (t <= 6.4e+53) {
tmp = ((b * c) - (4.0 * (x * i))) - (k * (j * 27.0));
} else {
tmp = t * ((18.0 * (x * (z * y))) - (4.0 * a));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (t <= (-2.4d+70)) then
tmp = z * (t * (((-4.0d0) * (a / z)) + (18.0d0 * (x * y))))
else if (t <= 6.4d+53) then
tmp = ((b * c) - (4.0d0 * (x * i))) - (k * (j * 27.0d0))
else
tmp = t * ((18.0d0 * (x * (z * y))) - (4.0d0 * a))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (t <= -2.4e+70) {
tmp = z * (t * ((-4.0 * (a / z)) + (18.0 * (x * y))));
} else if (t <= 6.4e+53) {
tmp = ((b * c) - (4.0 * (x * i))) - (k * (j * 27.0));
} else {
tmp = t * ((18.0 * (x * (z * y))) - (4.0 * a));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if t <= -2.4e+70: tmp = z * (t * ((-4.0 * (a / z)) + (18.0 * (x * y)))) elif t <= 6.4e+53: tmp = ((b * c) - (4.0 * (x * i))) - (k * (j * 27.0)) else: tmp = t * ((18.0 * (x * (z * y))) - (4.0 * a)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (t <= -2.4e+70) tmp = Float64(z * Float64(t * Float64(Float64(-4.0 * Float64(a / z)) + Float64(18.0 * Float64(x * y))))); elseif (t <= 6.4e+53) tmp = Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(x * i))) - Float64(k * Float64(j * 27.0))); else tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(z * y))) - Float64(4.0 * a))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (t <= -2.4e+70)
tmp = z * (t * ((-4.0 * (a / z)) + (18.0 * (x * y))));
elseif (t <= 6.4e+53)
tmp = ((b * c) - (4.0 * (x * i))) - (k * (j * 27.0));
else
tmp = t * ((18.0 * (x * (z * y))) - (4.0 * a));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[t, -2.4e+70], N[(z * N[(t * N[(N[(-4.0 * N[(a / z), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.4e+53], N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(18.0 * N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.4 \cdot 10^{+70}:\\
\;\;\;\;z \cdot \left(t \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)\\
\mathbf{elif}\;t \leq 6.4 \cdot 10^{+53}:\\
\;\;\;\;\left(b \cdot c - 4 \cdot \left(x \cdot i\right)\right) - k \cdot \left(j \cdot 27\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(z \cdot y\right)\right) - 4 \cdot a\right)\\
\end{array}
\end{array}
if t < -2.39999999999999987e70Initial program 90.7%
Taylor expanded in t around -inf 76.2%
associate-*r*76.2%
neg-mul-176.2%
cancel-sign-sub-inv76.2%
metadata-eval76.2%
*-commutative76.2%
associate-*r*76.3%
Simplified76.3%
Taylor expanded in z around inf 68.9%
Taylor expanded in t around 0 78.1%
if -2.39999999999999987e70 < t < 6.4e53Initial program 90.0%
distribute-rgt-out--90.1%
associate-*r*88.7%
*-commutative88.7%
associate-*l*88.7%
associate-*r*88.7%
Applied egg-rr88.7%
Taylor expanded in t around 0 78.9%
if 6.4e53 < t Initial program 74.5%
Simplified79.9%
Taylor expanded in t around inf 69.8%
Final simplification76.8%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 -7e+69)
(* z (* t (+ (* -4.0 (/ a z)) (* 18.0 (* x y)))))
(if (<= t 2.05e+52)
(- (* b c) (+ (* 4.0 (* x i)) (* 27.0 (* j k))))
(* t (- (* 18.0 (* x (* z y))) (* 4.0 a))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (t <= -7e+69) {
tmp = z * (t * ((-4.0 * (a / z)) + (18.0 * (x * y))));
} else if (t <= 2.05e+52) {
tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
} else {
tmp = t * ((18.0 * (x * (z * y))) - (4.0 * a));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (t <= (-7d+69)) then
tmp = z * (t * (((-4.0d0) * (a / z)) + (18.0d0 * (x * y))))
else if (t <= 2.05d+52) then
tmp = (b * c) - ((4.0d0 * (x * i)) + (27.0d0 * (j * k)))
else
tmp = t * ((18.0d0 * (x * (z * y))) - (4.0d0 * a))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (t <= -7e+69) {
tmp = z * (t * ((-4.0 * (a / z)) + (18.0 * (x * y))));
} else if (t <= 2.05e+52) {
tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
} else {
tmp = t * ((18.0 * (x * (z * y))) - (4.0 * a));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if t <= -7e+69: tmp = z * (t * ((-4.0 * (a / z)) + (18.0 * (x * y)))) elif t <= 2.05e+52: tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k))) else: tmp = t * ((18.0 * (x * (z * y))) - (4.0 * a)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (t <= -7e+69) tmp = Float64(z * Float64(t * Float64(Float64(-4.0 * Float64(a / z)) + Float64(18.0 * Float64(x * y))))); elseif (t <= 2.05e+52) tmp = Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(x * i)) + Float64(27.0 * Float64(j * k)))); else tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(z * y))) - Float64(4.0 * a))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (t <= -7e+69)
tmp = z * (t * ((-4.0 * (a / z)) + (18.0 * (x * y))));
elseif (t <= 2.05e+52)
tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
else
tmp = t * ((18.0 * (x * (z * y))) - (4.0 * a));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[t, -7e+69], N[(z * N[(t * N[(N[(-4.0 * N[(a / z), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.05e+52], N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(18.0 * N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7 \cdot 10^{+69}:\\
\;\;\;\;z \cdot \left(t \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)\\
\mathbf{elif}\;t \leq 2.05 \cdot 10^{+52}:\\
\;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + 27 \cdot \left(j \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(z \cdot y\right)\right) - 4 \cdot a\right)\\
\end{array}
\end{array}
if t < -6.99999999999999974e69Initial program 90.7%
Taylor expanded in t around -inf 76.2%
associate-*r*76.2%
neg-mul-176.2%
cancel-sign-sub-inv76.2%
metadata-eval76.2%
*-commutative76.2%
associate-*r*76.3%
Simplified76.3%
Taylor expanded in z around inf 68.9%
Taylor expanded in t around 0 78.1%
if -6.99999999999999974e69 < t < 2.05e52Initial program 90.0%
Simplified88.7%
Taylor expanded in t around 0 78.9%
if 2.05e52 < t Initial program 74.5%
Simplified79.9%
Taylor expanded in t around inf 69.8%
Final simplification76.8%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 -9.5e+19)
(* z (* 18.0 (* t (* x y))))
(if (<= t 1e+52)
(+ (* j (* k -27.0)) (* b c))
(if (<= t 1.26e+129) (* 18.0 (* t (* x (* z y)))) (* t (* a -4.0))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (t <= -9.5e+19) {
tmp = z * (18.0 * (t * (x * y)));
} else if (t <= 1e+52) {
tmp = (j * (k * -27.0)) + (b * c);
} else if (t <= 1.26e+129) {
tmp = 18.0 * (t * (x * (z * y)));
} else {
tmp = t * (a * -4.0);
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (t <= (-9.5d+19)) then
tmp = z * (18.0d0 * (t * (x * y)))
else if (t <= 1d+52) then
tmp = (j * (k * (-27.0d0))) + (b * c)
else if (t <= 1.26d+129) then
tmp = 18.0d0 * (t * (x * (z * y)))
else
tmp = t * (a * (-4.0d0))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (t <= -9.5e+19) {
tmp = z * (18.0 * (t * (x * y)));
} else if (t <= 1e+52) {
tmp = (j * (k * -27.0)) + (b * c);
} else if (t <= 1.26e+129) {
tmp = 18.0 * (t * (x * (z * y)));
} else {
tmp = t * (a * -4.0);
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if t <= -9.5e+19: tmp = z * (18.0 * (t * (x * y))) elif t <= 1e+52: tmp = (j * (k * -27.0)) + (b * c) elif t <= 1.26e+129: tmp = 18.0 * (t * (x * (z * y))) else: tmp = t * (a * -4.0) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (t <= -9.5e+19) tmp = Float64(z * Float64(18.0 * Float64(t * Float64(x * y)))); elseif (t <= 1e+52) tmp = Float64(Float64(j * Float64(k * -27.0)) + Float64(b * c)); elseif (t <= 1.26e+129) tmp = Float64(18.0 * Float64(t * Float64(x * Float64(z * y)))); else tmp = Float64(t * Float64(a * -4.0)); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (t <= -9.5e+19)
tmp = z * (18.0 * (t * (x * y)));
elseif (t <= 1e+52)
tmp = (j * (k * -27.0)) + (b * c);
elseif (t <= 1.26e+129)
tmp = 18.0 * (t * (x * (z * y)));
else
tmp = t * (a * -4.0);
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[t, -9.5e+19], N[(z * N[(18.0 * N[(t * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e+52], N[(N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.26e+129], N[(18.0 * N[(t * N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(a * -4.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}\;t \leq -9.5 \cdot 10^{+19}:\\
\;\;\;\;z \cdot \left(18 \cdot \left(t \cdot \left(x \cdot y\right)\right)\right)\\
\mathbf{elif}\;t \leq 10^{+52}:\\
\;\;\;\;j \cdot \left(k \cdot -27\right) + b \cdot c\\
\mathbf{elif}\;t \leq 1.26 \cdot 10^{+129}:\\
\;\;\;\;18 \cdot \left(t \cdot \left(x \cdot \left(z \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\end{array}
\end{array}
if t < -9.5e19Initial program 89.0%
Taylor expanded in t around -inf 72.6%
associate-*r*72.6%
neg-mul-172.6%
cancel-sign-sub-inv72.6%
metadata-eval72.6%
*-commutative72.6%
associate-*r*72.7%
Simplified72.7%
Taylor expanded in z around inf 64.3%
Taylor expanded in z around inf 48.9%
associate-*r*48.9%
associate-*r*50.4%
associate-*l*50.5%
*-commutative50.5%
associate-*r*50.5%
Simplified50.5%
if -9.5e19 < t < 9.9999999999999999e51Initial program 90.7%
Simplified89.4%
Taylor expanded in b around inf 58.5%
if 9.9999999999999999e51 < t < 1.26e129Initial program 74.9%
Simplified74.9%
Taylor expanded in j around inf 74.9%
Taylor expanded in y around inf 62.8%
if 1.26e129 < t Initial program 74.3%
Simplified81.9%
Taylor expanded in j around inf 62.8%
Taylor expanded in a around inf 50.8%
associate-*r*50.8%
metadata-eval50.8%
distribute-lft-neg-in50.8%
distribute-lft-neg-in50.8%
distribute-rgt-neg-out50.8%
*-commutative50.8%
distribute-lft-neg-out50.8%
distribute-rgt-neg-in50.8%
distribute-lft-neg-in50.8%
metadata-eval50.8%
*-commutative50.8%
Simplified50.8%
Final simplification55.6%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= (* b c) -1.85e+130) (not (<= (* b c) 9.8e+70))) (* 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) <= -1.85e+130) || !((b * c) <= 9.8e+70)) {
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) <= (-1.85d+130)) .or. (.not. ((b * c) <= 9.8d+70))) 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) <= -1.85e+130) || !((b * c) <= 9.8e+70)) {
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) <= -1.85e+130) or not ((b * c) <= 9.8e+70): 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) <= -1.85e+130) || !(Float64(b * c) <= 9.8e+70)) 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) <= -1.85e+130) || ~(((b * c) <= 9.8e+70)))
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], -1.85e+130], N[Not[LessEqual[N[(b * c), $MachinePrecision], 9.8e+70]], $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 -1.85 \cdot 10^{+130} \lor \neg \left(b \cdot c \leq 9.8 \cdot 10^{+70}\right):\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;-27 \cdot \left(j \cdot k\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -1.8500000000000001e130 or 9.80000000000000056e70 < (*.f64 b c) Initial program 82.6%
distribute-rgt-out--86.3%
associate-*r*85.2%
*-commutative85.2%
associate-*l*85.2%
associate-*r*85.2%
Applied egg-rr85.2%
Taylor expanded in b around inf 63.6%
if -1.8500000000000001e130 < (*.f64 b c) < 9.80000000000000056e70Initial program 88.8%
Simplified90.4%
Taylor expanded in j around inf 28.1%
Final simplification39.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (* b c))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = b * c
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): return b * c
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) return Float64(b * c) end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp = code(x, y, z, t, a, b, c, i, j, k)
tmp = b * c;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(b * c), $MachinePrecision]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
b \cdot c
\end{array}
Initial program 86.8%
distribute-rgt-out--90.0%
associate-*r*88.0%
*-commutative88.0%
associate-*l*88.0%
associate-*r*88.0%
Applied egg-rr88.0%
Taylor expanded in b around inf 22.7%
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (+ (* a t) (* i x)) 4.0))
(t_2
(-
(- (* (* 18.0 t) (* (* x y) z)) t_1)
(- (* (* k j) 27.0) (* c b)))))
(if (< t -1.6210815397541398e-69)
t_2
(if (< t 165.68027943805222)
(+ (- (* (* 18.0 y) (* x (* z t))) t_1) (- (* c b) (* 27.0 (* k j))))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = ((a * t) + (i * x)) * 4.0;
double t_2 = (((18.0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0) - (c * b));
double tmp;
if (t < -1.6210815397541398e-69) {
tmp = t_2;
} else if (t < 165.68027943805222) {
tmp = (((18.0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0 * (k * j)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((a * t) + (i * x)) * 4.0d0
t_2 = (((18.0d0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0d0) - (c * b))
if (t < (-1.6210815397541398d-69)) then
tmp = t_2
else if (t < 165.68027943805222d0) then
tmp = (((18.0d0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0d0 * (k * j)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = ((a * t) + (i * x)) * 4.0;
double t_2 = (((18.0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0) - (c * b));
double tmp;
if (t < -1.6210815397541398e-69) {
tmp = t_2;
} else if (t < 165.68027943805222) {
tmp = (((18.0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0 * (k * j)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): t_1 = ((a * t) + (i * x)) * 4.0 t_2 = (((18.0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0) - (c * b)) tmp = 0 if t < -1.6210815397541398e-69: tmp = t_2 elif t < 165.68027943805222: tmp = (((18.0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0 * (k * j))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(Float64(a * t) + Float64(i * x)) * 4.0) t_2 = Float64(Float64(Float64(Float64(18.0 * t) * Float64(Float64(x * y) * z)) - t_1) - Float64(Float64(Float64(k * j) * 27.0) - Float64(c * b))) tmp = 0.0 if (t < -1.6210815397541398e-69) tmp = t_2; elseif (t < 165.68027943805222) tmp = Float64(Float64(Float64(Float64(18.0 * y) * Float64(x * Float64(z * t))) - t_1) + Float64(Float64(c * b) - Float64(27.0 * Float64(k * j)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = ((a * t) + (i * x)) * 4.0; t_2 = (((18.0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0) - (c * b)); tmp = 0.0; if (t < -1.6210815397541398e-69) tmp = t_2; elseif (t < 165.68027943805222) tmp = (((18.0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0 * (k * j))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(N[(a * t), $MachinePrecision] + N[(i * x), $MachinePrecision]), $MachinePrecision] * 4.0), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(18.0 * t), $MachinePrecision] * N[(N[(x * y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - N[(N[(N[(k * j), $MachinePrecision] * 27.0), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -1.6210815397541398e-69], t$95$2, If[Less[t, 165.68027943805222], N[(N[(N[(N[(18.0 * y), $MachinePrecision] * N[(x * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] + N[(N[(c * b), $MachinePrecision] - N[(27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot t + i \cdot x\right) \cdot 4\\
t_2 := \left(\left(18 \cdot t\right) \cdot \left(\left(x \cdot y\right) \cdot z\right) - t\_1\right) - \left(\left(k \cdot j\right) \cdot 27 - c \cdot b\right)\\
\mathbf{if}\;t < -1.6210815397541398 \cdot 10^{-69}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 165.68027943805222:\\
\;\;\;\;\left(\left(18 \cdot y\right) \cdot \left(x \cdot \left(z \cdot t\right)\right) - t\_1\right) + \left(c \cdot b - 27 \cdot \left(k \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024193
(FPCore (x y z t a b c i j k)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, E"
:precision binary64
:alt
(! :herbie-platform default (if (< t -8105407698770699/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (- (* (* 18 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4)) (- (* (* k j) 27) (* c b))) (if (< t 8284013971902611/50000000000000) (+ (- (* (* 18 y) (* x (* z t))) (* (+ (* a t) (* i x)) 4)) (- (* c b) (* 27 (* k j)))) (- (- (* (* 18 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4)) (- (* (* k j) 27) (* c b))))))
(- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))