
(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 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k) :precision binary64 (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
def code(x, y, z, t, a, b, c, i, j, k): return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\end{array}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* x 4.0) i)) (t_2 (* (* j 27.0) k)))
(if (<=
(-
(- (+ (- (* (* (* (* x 18.0) y) z) t) (* t (* a 4.0))) (* b c)) t_1)
t_2)
INFINITY)
(- (- (+ (* b c) (* t (- (* x (* z (* 18.0 y))) (* a 4.0)))) t_1) t_2)
(* 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 t_1 = (x * 4.0) * i;
double t_2 = (j * 27.0) * k;
double tmp;
if (((((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - t_1) - t_2) <= ((double) INFINITY)) {
tmp = (((b * c) + (t * ((x * (z * (18.0 * y))) - (a * 4.0)))) - t_1) - t_2;
} else {
tmp = t * (z * (((x * y) * -(-18.0)) - (4.0 * (a / z))));
}
return tmp;
}
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (x * 4.0) * i;
double t_2 = (j * 27.0) * k;
double tmp;
if (((((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - t_1) - t_2) <= Double.POSITIVE_INFINITY) {
tmp = (((b * c) + (t * ((x * (z * (18.0 * y))) - (a * 4.0)))) - t_1) - t_2;
} 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): t_1 = (x * 4.0) * i t_2 = (j * 27.0) * k tmp = 0 if ((((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - t_1) - t_2) <= math.inf: tmp = (((b * c) + (t * ((x * (z * (18.0 * y))) - (a * 4.0)))) - t_1) - t_2 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) t_1 = Float64(Float64(x * 4.0) * i) t_2 = Float64(Float64(j * 27.0) * k) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - t_1) - t_2) <= Inf) tmp = Float64(Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(x * Float64(z * Float64(18.0 * y))) - Float64(a * 4.0)))) - t_1) - t_2); 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)
t_1 = (x * 4.0) * i;
t_2 = (j * 27.0) * k;
tmp = 0.0;
if (((((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - t_1) - t_2) <= Inf)
tmp = (((b * c) + (t * ((x * (z * (18.0 * y))) - (a * 4.0)))) - t_1) - t_2;
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_] := Block[{t$95$1 = N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - 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[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $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}
t_1 := \left(x \cdot 4\right) \cdot i\\
t_2 := \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - 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) - a \cdot 4\right)\right) - t\_1\right) - t\_2\\
\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 (-.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 93.1%
distribute-rgt-out--93.1%
associate-*r*93.6%
*-commutative93.6%
associate-*l*93.6%
associate-*r*93.6%
Applied egg-rr93.6%
if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) Initial program 0.0%
Taylor expanded in t around -inf 67.4%
associate-*r*67.4%
neg-mul-167.4%
cancel-sign-sub-inv67.4%
metadata-eval67.4%
*-commutative67.4%
*-commutative67.4%
Simplified67.4%
Taylor expanded in z around inf 70.1%
Final simplification90.9%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* (* j k) -27.0)))
(if (<= (* b c) -8.8e+221)
(* b c)
(if (<= (* b c) -1.04e+21)
(* 18.0 (* y (* z (* x t))))
(if (<= (* b c) -4.1e-303)
t_1
(if (<= (* b c) 1.2e-276)
(* 18.0 (* t (* x (* y z))))
(if (<= (* b c) 2.2e+127) t_1 (* b c))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * k) * -27.0;
double tmp;
if ((b * c) <= -8.8e+221) {
tmp = b * c;
} else if ((b * c) <= -1.04e+21) {
tmp = 18.0 * (y * (z * (x * t)));
} else if ((b * c) <= -4.1e-303) {
tmp = t_1;
} else if ((b * c) <= 1.2e-276) {
tmp = 18.0 * (t * (x * (y * z)));
} else if ((b * c) <= 2.2e+127) {
tmp = t_1;
} else {
tmp = b * c;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (j * k) * (-27.0d0)
if ((b * c) <= (-8.8d+221)) then
tmp = b * c
else if ((b * c) <= (-1.04d+21)) then
tmp = 18.0d0 * (y * (z * (x * t)))
else if ((b * c) <= (-4.1d-303)) then
tmp = t_1
else if ((b * c) <= 1.2d-276) then
tmp = 18.0d0 * (t * (x * (y * z)))
else if ((b * c) <= 2.2d+127) then
tmp = t_1
else
tmp = b * c
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * k) * -27.0;
double tmp;
if ((b * c) <= -8.8e+221) {
tmp = b * c;
} else if ((b * c) <= -1.04e+21) {
tmp = 18.0 * (y * (z * (x * t)));
} else if ((b * c) <= -4.1e-303) {
tmp = t_1;
} else if ((b * c) <= 1.2e-276) {
tmp = 18.0 * (t * (x * (y * z)));
} else if ((b * c) <= 2.2e+127) {
tmp = t_1;
} else {
tmp = b * c;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * k) * -27.0 tmp = 0 if (b * c) <= -8.8e+221: tmp = b * c elif (b * c) <= -1.04e+21: tmp = 18.0 * (y * (z * (x * t))) elif (b * c) <= -4.1e-303: tmp = t_1 elif (b * c) <= 1.2e-276: tmp = 18.0 * (t * (x * (y * z))) elif (b * c) <= 2.2e+127: tmp = t_1 else: tmp = b * c return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * k) * -27.0) tmp = 0.0 if (Float64(b * c) <= -8.8e+221) tmp = Float64(b * c); elseif (Float64(b * c) <= -1.04e+21) tmp = Float64(18.0 * Float64(y * Float64(z * Float64(x * t)))); elseif (Float64(b * c) <= -4.1e-303) tmp = t_1; elseif (Float64(b * c) <= 1.2e-276) tmp = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))); elseif (Float64(b * c) <= 2.2e+127) tmp = t_1; else tmp = Float64(b * c); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (j * k) * -27.0;
tmp = 0.0;
if ((b * c) <= -8.8e+221)
tmp = b * c;
elseif ((b * c) <= -1.04e+21)
tmp = 18.0 * (y * (z * (x * t)));
elseif ((b * c) <= -4.1e-303)
tmp = t_1;
elseif ((b * c) <= 1.2e-276)
tmp = 18.0 * (t * (x * (y * z)));
elseif ((b * c) <= 2.2e+127)
tmp = t_1;
else
tmp = b * c;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * k), $MachinePrecision] * -27.0), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -8.8e+221], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1.04e+21], N[(18.0 * N[(y * N[(z * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -4.1e-303], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], 1.2e-276], N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 2.2e+127], t$95$1, N[(b * c), $MachinePrecision]]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := \left(j \cdot k\right) \cdot -27\\
\mathbf{if}\;b \cdot c \leq -8.8 \cdot 10^{+221}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -1.04 \cdot 10^{+21}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(z \cdot \left(x \cdot t\right)\right)\right)\\
\mathbf{elif}\;b \cdot c \leq -4.1 \cdot 10^{-303}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \cdot c \leq 1.2 \cdot 10^{-276}:\\
\;\;\;\;18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;b \cdot c \leq 2.2 \cdot 10^{+127}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -8.7999999999999998e221 or 2.2000000000000002e127 < (*.f64 b c) Initial program 82.7%
distribute-rgt-out--84.2%
associate-*r*84.2%
*-commutative84.2%
associate-*l*84.2%
associate-*r*84.2%
Applied egg-rr84.2%
Taylor expanded in b around inf 77.9%
if -8.7999999999999998e221 < (*.f64 b c) < -1.04e21Initial program 68.8%
Taylor expanded in c around inf 51.3%
associate--l+51.3%
fmm-def51.3%
associate-/l*51.3%
fma-define51.3%
associate-/l*47.7%
fma-define47.7%
associate-/l*51.3%
associate-*r/51.3%
Simplified51.3%
Taylor expanded in y around inf 30.8%
associate-*r*37.3%
*-commutative37.3%
associate-*l*34.5%
*-commutative34.5%
Simplified34.5%
if -1.04e21 < (*.f64 b c) < -4.10000000000000018e-303 or 1.19999999999999991e-276 < (*.f64 b c) < 2.2000000000000002e127Initial program 83.6%
Simplified88.6%
Taylor expanded in j around inf 37.4%
if -4.10000000000000018e-303 < (*.f64 b c) < 1.19999999999999991e-276Initial program 86.9%
Taylor expanded in c around inf 38.2%
associate--l+38.2%
fmm-def38.2%
associate-/l*35.5%
fma-define35.5%
associate-/l*30.4%
fma-define30.4%
associate-/l*25.2%
associate-*r/25.2%
Simplified25.2%
Taylor expanded in y around inf 46.0%
Final simplification49.3%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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)))
(if (<= (* b c) -7.1e+205)
(* b c)
(if (<= (* b c) -4.3e+38)
(* i (* x -4.0))
(if (<= (* b c) -1.95e-303)
t_1
(if (<= (* b c) 1.6e-277)
(* 18.0 (* t (* x (* y z))))
(if (<= (* b c) 2e+127) t_1 (* b c))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * k) * -27.0;
double tmp;
if ((b * c) <= -7.1e+205) {
tmp = b * c;
} else if ((b * c) <= -4.3e+38) {
tmp = i * (x * -4.0);
} else if ((b * c) <= -1.95e-303) {
tmp = t_1;
} else if ((b * c) <= 1.6e-277) {
tmp = 18.0 * (t * (x * (y * z)));
} else if ((b * c) <= 2e+127) {
tmp = t_1;
} else {
tmp = b * c;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (j * k) * (-27.0d0)
if ((b * c) <= (-7.1d+205)) then
tmp = b * c
else if ((b * c) <= (-4.3d+38)) then
tmp = i * (x * (-4.0d0))
else if ((b * c) <= (-1.95d-303)) then
tmp = t_1
else if ((b * c) <= 1.6d-277) then
tmp = 18.0d0 * (t * (x * (y * z)))
else if ((b * c) <= 2d+127) then
tmp = t_1
else
tmp = b * c
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = (j * k) * -27.0;
double tmp;
if ((b * c) <= -7.1e+205) {
tmp = b * c;
} else if ((b * c) <= -4.3e+38) {
tmp = i * (x * -4.0);
} else if ((b * c) <= -1.95e-303) {
tmp = t_1;
} else if ((b * c) <= 1.6e-277) {
tmp = 18.0 * (t * (x * (y * z)));
} else if ((b * c) <= 2e+127) {
tmp = t_1;
} else {
tmp = b * c;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = (j * k) * -27.0 tmp = 0 if (b * c) <= -7.1e+205: tmp = b * c elif (b * c) <= -4.3e+38: tmp = i * (x * -4.0) elif (b * c) <= -1.95e-303: tmp = t_1 elif (b * c) <= 1.6e-277: tmp = 18.0 * (t * (x * (y * z))) elif (b * c) <= 2e+127: tmp = t_1 else: tmp = b * c return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(Float64(j * k) * -27.0) tmp = 0.0 if (Float64(b * c) <= -7.1e+205) tmp = Float64(b * c); elseif (Float64(b * c) <= -4.3e+38) tmp = Float64(i * Float64(x * -4.0)); elseif (Float64(b * c) <= -1.95e-303) tmp = t_1; elseif (Float64(b * c) <= 1.6e-277) tmp = Float64(18.0 * Float64(t * Float64(x * Float64(y * z)))); elseif (Float64(b * c) <= 2e+127) tmp = t_1; else tmp = Float64(b * c); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = (j * k) * -27.0;
tmp = 0.0;
if ((b * c) <= -7.1e+205)
tmp = b * c;
elseif ((b * c) <= -4.3e+38)
tmp = i * (x * -4.0);
elseif ((b * c) <= -1.95e-303)
tmp = t_1;
elseif ((b * c) <= 1.6e-277)
tmp = 18.0 * (t * (x * (y * z)));
elseif ((b * c) <= 2e+127)
tmp = t_1;
else
tmp = b * c;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * k), $MachinePrecision] * -27.0), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -7.1e+205], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -4.3e+38], N[(i * N[(x * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -1.95e-303], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], 1.6e-277], N[(18.0 * N[(t * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 2e+127], t$95$1, N[(b * c), $MachinePrecision]]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := \left(j \cdot k\right) \cdot -27\\
\mathbf{if}\;b \cdot c \leq -7.1 \cdot 10^{+205}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -4.3 \cdot 10^{+38}:\\
\;\;\;\;i \cdot \left(x \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq -1.95 \cdot 10^{-303}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \cdot c \leq 1.6 \cdot 10^{-277}:\\
\;\;\;\;18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;b \cdot c \leq 2 \cdot 10^{+127}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -7.10000000000000024e205 or 1.99999999999999991e127 < (*.f64 b c) Initial program 82.7%
distribute-rgt-out--84.2%
associate-*r*84.2%
*-commutative84.2%
associate-*l*84.2%
associate-*r*84.2%
Applied egg-rr84.2%
Taylor expanded in b around inf 77.9%
if -7.10000000000000024e205 < (*.f64 b c) < -4.2999999999999997e38Initial program 67.9%
distribute-rgt-out--72.0%
associate-*r*72.3%
*-commutative72.3%
associate-*l*72.3%
associate-*r*72.3%
Applied egg-rr72.3%
Taylor expanded in i around inf 39.6%
associate-*r*39.6%
metadata-eval39.6%
distribute-lft-neg-in39.6%
distribute-lft-neg-in39.6%
*-commutative39.6%
associate-*r*39.6%
distribute-lft-neg-out39.6%
distribute-rgt-neg-in39.6%
metadata-eval39.6%
*-commutative39.6%
*-commutative39.6%
*-commutative39.6%
Simplified39.6%
if -4.2999999999999997e38 < (*.f64 b c) < -1.95e-303 or 1.5999999999999999e-277 < (*.f64 b c) < 1.99999999999999991e127Initial program 83.3%
Simplified88.1%
Taylor expanded in j around inf 37.0%
if -1.95e-303 < (*.f64 b c) < 1.5999999999999999e-277Initial program 86.9%
Taylor expanded in c around inf 38.2%
associate--l+38.2%
fmm-def38.2%
associate-/l*35.5%
fma-define35.5%
associate-/l*30.4%
fma-define30.4%
associate-/l*25.2%
associate-*r/25.2%
Simplified25.2%
Taylor expanded in y around inf 46.0%
Final simplification49.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) -5e+187)
(- (* b c) (+ (* 4.0 (* x i)) (* 27.0 (* j k))))
(-
(+ (* b c) (* t (- (* (* x 18.0) (* y z)) (* a 4.0))))
(+ (* x (* 4.0 i)) (* j (* 27.0 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) <= -5e+187) {
tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
} else {
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * 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) <= (-5d+187)) then
tmp = (b * c) - ((4.0d0 * (x * i)) + (27.0d0 * (j * k)))
else
tmp = ((b * c) + (t * (((x * 18.0d0) * (y * z)) - (a * 4.0d0)))) - ((x * (4.0d0 * i)) + (j * (27.0d0 * 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) <= -5e+187) {
tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
} else {
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * 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) <= -5e+187: tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k))) else: tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * 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) <= -5e+187) tmp = Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(x * i)) + Float64(27.0 * Float64(j * k)))); else tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(x * 18.0) * Float64(y * z)) - Float64(a * 4.0)))) - Float64(Float64(x * Float64(4.0 * i)) + Float64(j * Float64(27.0 * k)))); 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) <= -5e+187)
tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
else
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * 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[N[(b * c), $MachinePrecision], -5e+187], 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[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(x * 18.0), $MachinePrecision] * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision] + N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\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 -5 \cdot 10^{+187}:\\
\;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + 27 \cdot \left(j \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right)\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -5.0000000000000001e187Initial program 71.8%
Simplified72.0%
Taylor expanded in t around 0 87.6%
if -5.0000000000000001e187 < (*.f64 b c) Initial program 83.7%
Simplified88.1%
Final simplification88.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= t -7.5e-13) (not (<= t 2.5e-121))) (- (+ (* b c) (* t (- (* (* x 18.0) (* y z)) (* a 4.0)))) (* x (* 4.0 i))) (- (* b c) (+ (* 4.0 (* x i)) (* 27.0 (* j k))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -7.5e-13) || !(t <= 2.5e-121)) {
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - (x * (4.0 * i));
} else {
tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((t <= (-7.5d-13)) .or. (.not. (t <= 2.5d-121))) then
tmp = ((b * c) + (t * (((x * 18.0d0) * (y * z)) - (a * 4.0d0)))) - (x * (4.0d0 * i))
else
tmp = (b * c) - ((4.0d0 * (x * i)) + (27.0d0 * (j * k)))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -7.5e-13) || !(t <= 2.5e-121)) {
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - (x * (4.0 * i));
} else {
tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (t <= -7.5e-13) or not (t <= 2.5e-121): tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - (x * (4.0 * i)) else: tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k))) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -7.5e-13) || !(t <= 2.5e-121)) tmp = Float64(Float64(Float64(b * c) + Float64(t * Float64(Float64(Float64(x * 18.0) * Float64(y * z)) - Float64(a * 4.0)))) - Float64(x * Float64(4.0 * i))); else tmp = Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(x * i)) + Float64(27.0 * Float64(j * k)))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((t <= -7.5e-13) || ~((t <= 2.5e-121)))
tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - (x * (4.0 * i));
else
tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -7.5e-13], N[Not[LessEqual[t, 2.5e-121]], $MachinePrecision]], N[(N[(N[(b * c), $MachinePrecision] + N[(t * N[(N[(N[(x * 18.0), $MachinePrecision] * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.5 \cdot 10^{-13} \lor \neg \left(t \leq 2.5 \cdot 10^{-121}\right):\\
\;\;\;\;\left(b \cdot c + t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right)\right) - x \cdot \left(4 \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + 27 \cdot \left(j \cdot k\right)\right)\\
\end{array}
\end{array}
if t < -7.5000000000000004e-13 or 2.49999999999999995e-121 < t Initial program 81.6%
Simplified87.8%
Taylor expanded in x around inf 79.0%
associate-*r*79.0%
*-commutative79.0%
Simplified79.0%
if -7.5000000000000004e-13 < t < 2.49999999999999995e-121Initial program 83.4%
Simplified83.4%
Taylor expanded in t around 0 88.5%
Final simplification82.5%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* k -27.0))))
(if (<= (* b c) -1e+123)
(+ (* b c) t_1)
(if (<= (* b c) 2e-77)
(+ t_1 (* a (* t -4.0)))
(if (<= (* b c) 1.6e+127)
(+ (* (* x i) -4.0) (* (* j k) -27.0))
(* c (+ b (/ (* t (* a -4.0)) c))))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double tmp;
if ((b * c) <= -1e+123) {
tmp = (b * c) + t_1;
} else if ((b * c) <= 2e-77) {
tmp = t_1 + (a * (t * -4.0));
} else if ((b * c) <= 1.6e+127) {
tmp = ((x * i) * -4.0) + ((j * k) * -27.0);
} else {
tmp = c * (b + ((t * (a * -4.0)) / c));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = j * (k * (-27.0d0))
if ((b * c) <= (-1d+123)) then
tmp = (b * c) + t_1
else if ((b * c) <= 2d-77) then
tmp = t_1 + (a * (t * (-4.0d0)))
else if ((b * c) <= 1.6d+127) then
tmp = ((x * i) * (-4.0d0)) + ((j * k) * (-27.0d0))
else
tmp = c * (b + ((t * (a * (-4.0d0))) / c))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (k * -27.0);
double tmp;
if ((b * c) <= -1e+123) {
tmp = (b * c) + t_1;
} else if ((b * c) <= 2e-77) {
tmp = t_1 + (a * (t * -4.0));
} else if ((b * c) <= 1.6e+127) {
tmp = ((x * i) * -4.0) + ((j * k) * -27.0);
} else {
tmp = c * (b + ((t * (a * -4.0)) / c));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): t_1 = j * (k * -27.0) tmp = 0 if (b * c) <= -1e+123: tmp = (b * c) + t_1 elif (b * c) <= 2e-77: tmp = t_1 + (a * (t * -4.0)) elif (b * c) <= 1.6e+127: tmp = ((x * i) * -4.0) + ((j * k) * -27.0) else: tmp = c * (b + ((t * (a * -4.0)) / c)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(j * Float64(k * -27.0)) tmp = 0.0 if (Float64(b * c) <= -1e+123) tmp = Float64(Float64(b * c) + t_1); elseif (Float64(b * c) <= 2e-77) tmp = Float64(t_1 + Float64(a * Float64(t * -4.0))); elseif (Float64(b * c) <= 1.6e+127) tmp = Float64(Float64(Float64(x * i) * -4.0) + Float64(Float64(j * k) * -27.0)); else tmp = Float64(c * Float64(b + Float64(Float64(t * Float64(a * -4.0)) / c))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
t_1 = j * (k * -27.0);
tmp = 0.0;
if ((b * c) <= -1e+123)
tmp = (b * c) + t_1;
elseif ((b * c) <= 2e-77)
tmp = t_1 + (a * (t * -4.0));
elseif ((b * c) <= 1.6e+127)
tmp = ((x * i) * -4.0) + ((j * k) * -27.0);
else
tmp = c * (b + ((t * (a * -4.0)) / c));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -1e+123], N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 2e-77], N[(t$95$1 + N[(a * N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1.6e+127], N[(N[(N[(x * i), $MachinePrecision] * -4.0), $MachinePrecision] + N[(N[(j * k), $MachinePrecision] * -27.0), $MachinePrecision]), $MachinePrecision], N[(c * N[(b + N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
\mathbf{if}\;b \cdot c \leq -1 \cdot 10^{+123}:\\
\;\;\;\;b \cdot c + t\_1\\
\mathbf{elif}\;b \cdot c \leq 2 \cdot 10^{-77}:\\
\;\;\;\;t\_1 + a \cdot \left(t \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq 1.6 \cdot 10^{+127}:\\
\;\;\;\;\left(x \cdot i\right) \cdot -4 + \left(j \cdot k\right) \cdot -27\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(b + \frac{t \cdot \left(a \cdot -4\right)}{c}\right)\\
\end{array}
\end{array}
if (*.f64 b c) < -9.99999999999999978e122Initial program 72.5%
Simplified77.8%
Taylor expanded in b around inf 77.3%
if -9.99999999999999978e122 < (*.f64 b c) < 1.9999999999999999e-77Initial program 82.1%
Simplified86.5%
Taylor expanded in a around inf 58.1%
metadata-eval58.1%
distribute-lft-neg-in58.1%
*-commutative58.1%
associate-*l*58.1%
distribute-lft-neg-in58.1%
distribute-lft-neg-in58.1%
metadata-eval58.1%
Simplified58.1%
if 1.9999999999999999e-77 < (*.f64 b c) < 1.59999999999999988e127Initial program 88.9%
Simplified94.5%
Taylor expanded in i around inf 56.5%
Taylor expanded in j around 0 56.4%
if 1.59999999999999988e127 < (*.f64 b c) Initial program 85.9%
Taylor expanded in c around inf 88.5%
associate--l+88.5%
fmm-def88.5%
associate-/l*88.5%
fma-define88.5%
associate-/l*88.5%
fma-define88.5%
associate-/l*93.1%
associate-*r/93.1%
Simplified93.1%
Taylor expanded in a around inf 79.4%
associate-*r/79.4%
associate-*r*79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
Final simplification64.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 (<= x -1.26e+85)
(* x (+ (* (* y z) (* 18.0 t)) (* i -4.0)))
(if (<= x 7.4e-299)
(- (* b c) (* 27.0 (* j k)))
(if (<= x 2.7e+42)
(* c (+ b (/ (* t (* a -4.0)) c)))
(* x (- (* 18.0 (* t (* y z))) (* 4.0 i)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (x <= -1.26e+85) {
tmp = x * (((y * z) * (18.0 * t)) + (i * -4.0));
} else if (x <= 7.4e-299) {
tmp = (b * c) - (27.0 * (j * k));
} else if (x <= 2.7e+42) {
tmp = c * (b + ((t * (a * -4.0)) / c));
} else {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (x <= (-1.26d+85)) then
tmp = x * (((y * z) * (18.0d0 * t)) + (i * (-4.0d0)))
else if (x <= 7.4d-299) then
tmp = (b * c) - (27.0d0 * (j * k))
else if (x <= 2.7d+42) then
tmp = c * (b + ((t * (a * (-4.0d0))) / c))
else
tmp = x * ((18.0d0 * (t * (y * z))) - (4.0d0 * i))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (x <= -1.26e+85) {
tmp = x * (((y * z) * (18.0 * t)) + (i * -4.0));
} else if (x <= 7.4e-299) {
tmp = (b * c) - (27.0 * (j * k));
} else if (x <= 2.7e+42) {
tmp = c * (b + ((t * (a * -4.0)) / c));
} else {
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if x <= -1.26e+85: tmp = x * (((y * z) * (18.0 * t)) + (i * -4.0)) elif x <= 7.4e-299: tmp = (b * c) - (27.0 * (j * k)) elif x <= 2.7e+42: tmp = c * (b + ((t * (a * -4.0)) / c)) else: tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if (x <= -1.26e+85) tmp = Float64(x * Float64(Float64(Float64(y * z) * Float64(18.0 * t)) + Float64(i * -4.0))); elseif (x <= 7.4e-299) tmp = Float64(Float64(b * c) - Float64(27.0 * Float64(j * k))); elseif (x <= 2.7e+42) tmp = Float64(c * Float64(b + Float64(Float64(t * Float64(a * -4.0)) / c))); else tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if (x <= -1.26e+85)
tmp = x * (((y * z) * (18.0 * t)) + (i * -4.0));
elseif (x <= 7.4e-299)
tmp = (b * c) - (27.0 * (j * k));
elseif (x <= 2.7e+42)
tmp = c * (b + ((t * (a * -4.0)) / c));
else
tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[x, -1.26e+85], N[(x * N[(N[(N[(y * z), $MachinePrecision] * N[(18.0 * t), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.4e-299], N[(N[(b * c), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.7e+42], N[(c * N[(b + N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.26 \cdot 10^{+85}:\\
\;\;\;\;x \cdot \left(\left(y \cdot z\right) \cdot \left(18 \cdot t\right) + i \cdot -4\right)\\
\mathbf{elif}\;x \leq 7.4 \cdot 10^{-299}:\\
\;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{+42}:\\
\;\;\;\;c \cdot \left(b + \frac{t \cdot \left(a \cdot -4\right)}{c}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\
\end{array}
\end{array}
if x < -1.26000000000000003e85Initial program 68.5%
distribute-rgt-out--73.1%
associate-*r*75.3%
*-commutative75.3%
associate-*l*75.3%
associate-*r*75.3%
Applied egg-rr75.3%
Taylor expanded in z around inf 66.0%
Taylor expanded in x around inf 71.2%
cancel-sign-sub-inv71.2%
associate-*r*71.2%
metadata-eval71.2%
Simplified71.2%
if -1.26000000000000003e85 < x < 7.40000000000000028e-299Initial program 93.4%
Simplified92.2%
Taylor expanded in x around 0 76.8%
Taylor expanded in a around 0 63.5%
if 7.40000000000000028e-299 < x < 2.7000000000000001e42Initial program 88.1%
Taylor expanded in c around inf 76.4%
associate--l+76.4%
fmm-def76.4%
associate-/l*76.4%
fma-define76.4%
associate-/l*73.8%
fma-define73.8%
associate-/l*72.5%
associate-*r/72.5%
Simplified72.5%
Taylor expanded in a around inf 62.5%
associate-*r/62.5%
associate-*r*62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if 2.7000000000000001e42 < x Initial program 70.7%
Simplified80.5%
Taylor expanded in x around inf 73.9%
Final simplification67.0%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* x (+ (* (* y z) (* 18.0 t)) (* i -4.0)))))
(if (<= x -1.2e+82)
t_1
(if (<= x 4.6e-297)
(- (* b c) (* 27.0 (* j k)))
(if (<= x 1.45e+45) (* c (+ b (/ (* t (* a -4.0)) 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 = x * (((y * z) * (18.0 * t)) + (i * -4.0));
double tmp;
if (x <= -1.2e+82) {
tmp = t_1;
} else if (x <= 4.6e-297) {
tmp = (b * c) - (27.0 * (j * k));
} else if (x <= 1.45e+45) {
tmp = c * (b + ((t * (a * -4.0)) / c));
} else {
tmp = t_1;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = x * (((y * z) * (18.0d0 * t)) + (i * (-4.0d0)))
if (x <= (-1.2d+82)) then
tmp = t_1
else if (x <= 4.6d-297) then
tmp = (b * c) - (27.0d0 * (j * k))
else if (x <= 1.45d+45) then
tmp = c * (b + ((t * (a * (-4.0d0))) / 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 = x * (((y * z) * (18.0 * t)) + (i * -4.0));
double tmp;
if (x <= -1.2e+82) {
tmp = t_1;
} else if (x <= 4.6e-297) {
tmp = (b * c) - (27.0 * (j * k));
} else if (x <= 1.45e+45) {
tmp = c * (b + ((t * (a * -4.0)) / 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 = x * (((y * z) * (18.0 * t)) + (i * -4.0)) tmp = 0 if x <= -1.2e+82: tmp = t_1 elif x <= 4.6e-297: tmp = (b * c) - (27.0 * (j * k)) elif x <= 1.45e+45: tmp = c * (b + ((t * (a * -4.0)) / 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(x * Float64(Float64(Float64(y * z) * Float64(18.0 * t)) + Float64(i * -4.0))) tmp = 0.0 if (x <= -1.2e+82) tmp = t_1; elseif (x <= 4.6e-297) tmp = Float64(Float64(b * c) - Float64(27.0 * Float64(j * k))); elseif (x <= 1.45e+45) tmp = Float64(c * Float64(b + Float64(Float64(t * Float64(a * -4.0)) / 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 = x * (((y * z) * (18.0 * t)) + (i * -4.0));
tmp = 0.0;
if (x <= -1.2e+82)
tmp = t_1;
elseif (x <= 4.6e-297)
tmp = (b * c) - (27.0 * (j * k));
elseif (x <= 1.45e+45)
tmp = c * (b + ((t * (a * -4.0)) / 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[(x * N[(N[(N[(y * z), $MachinePrecision] * N[(18.0 * t), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.2e+82], t$95$1, If[LessEqual[x, 4.6e-297], N[(N[(b * c), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.45e+45], N[(c * N[(b + N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := x \cdot \left(\left(y \cdot z\right) \cdot \left(18 \cdot t\right) + i \cdot -4\right)\\
\mathbf{if}\;x \leq -1.2 \cdot 10^{+82}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-297}:\\
\;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{+45}:\\
\;\;\;\;c \cdot \left(b + \frac{t \cdot \left(a \cdot -4\right)}{c}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.19999999999999999e82 or 1.4499999999999999e45 < x Initial program 69.8%
distribute-rgt-out--74.6%
associate-*r*78.3%
*-commutative78.3%
associate-*l*78.3%
associate-*r*78.3%
Applied egg-rr78.3%
Taylor expanded in z around inf 68.6%
Taylor expanded in x around inf 72.7%
cancel-sign-sub-inv72.7%
associate-*r*72.7%
metadata-eval72.7%
Simplified72.7%
if -1.19999999999999999e82 < x < 4.5999999999999998e-297Initial program 93.4%
Simplified92.2%
Taylor expanded in x around 0 76.8%
Taylor expanded in a around 0 63.5%
if 4.5999999999999998e-297 < x < 1.4499999999999999e45Initial program 88.1%
Taylor expanded in c around inf 76.4%
associate--l+76.4%
fmm-def76.4%
associate-/l*76.4%
fma-define76.4%
associate-/l*73.8%
fma-define73.8%
associate-/l*72.5%
associate-*r/72.5%
Simplified72.5%
Taylor expanded in a around inf 62.5%
associate-*r/62.5%
associate-*r*62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
Final simplification66.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) -1.5e+206)
(* b c)
(if (<= (* b c) -2.6e+39)
(* i (* x -4.0))
(if (<= (* b c) 2.1e+127) (* (* j k) -27.0) (* b c)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((b * c) <= -1.5e+206) {
tmp = b * c;
} else if ((b * c) <= -2.6e+39) {
tmp = i * (x * -4.0);
} else if ((b * c) <= 2.1e+127) {
tmp = (j * k) * -27.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) <= (-1.5d+206)) then
tmp = b * c
else if ((b * c) <= (-2.6d+39)) then
tmp = i * (x * (-4.0d0))
else if ((b * c) <= 2.1d+127) then
tmp = (j * k) * (-27.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) <= -1.5e+206) {
tmp = b * c;
} else if ((b * c) <= -2.6e+39) {
tmp = i * (x * -4.0);
} else if ((b * c) <= 2.1e+127) {
tmp = (j * k) * -27.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) <= -1.5e+206: tmp = b * c elif (b * c) <= -2.6e+39: tmp = i * (x * -4.0) elif (b * c) <= 2.1e+127: tmp = (j * k) * -27.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) <= -1.5e+206) tmp = Float64(b * c); elseif (Float64(b * c) <= -2.6e+39) tmp = Float64(i * Float64(x * -4.0)); elseif (Float64(b * c) <= 2.1e+127) tmp = Float64(Float64(j * k) * -27.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) <= -1.5e+206)
tmp = b * c;
elseif ((b * c) <= -2.6e+39)
tmp = i * (x * -4.0);
elseif ((b * c) <= 2.1e+127)
tmp = (j * k) * -27.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], -1.5e+206], N[(b * c), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -2.6e+39], N[(i * N[(x * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 2.1e+127], N[(N[(j * k), $MachinePrecision] * -27.0), $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.5 \cdot 10^{+206}:\\
\;\;\;\;b \cdot c\\
\mathbf{elif}\;b \cdot c \leq -2.6 \cdot 10^{+39}:\\
\;\;\;\;i \cdot \left(x \cdot -4\right)\\
\mathbf{elif}\;b \cdot c \leq 2.1 \cdot 10^{+127}:\\
\;\;\;\;\left(j \cdot k\right) \cdot -27\\
\mathbf{else}:\\
\;\;\;\;b \cdot c\\
\end{array}
\end{array}
if (*.f64 b c) < -1.5000000000000001e206 or 2.09999999999999992e127 < (*.f64 b c) Initial program 82.7%
distribute-rgt-out--84.2%
associate-*r*84.2%
*-commutative84.2%
associate-*l*84.2%
associate-*r*84.2%
Applied egg-rr84.2%
Taylor expanded in b around inf 77.9%
if -1.5000000000000001e206 < (*.f64 b c) < -2.6e39Initial program 67.9%
distribute-rgt-out--72.0%
associate-*r*72.3%
*-commutative72.3%
associate-*l*72.3%
associate-*r*72.3%
Applied egg-rr72.3%
Taylor expanded in i around inf 39.6%
associate-*r*39.6%
metadata-eval39.6%
distribute-lft-neg-in39.6%
distribute-lft-neg-in39.6%
*-commutative39.6%
associate-*r*39.6%
distribute-lft-neg-out39.6%
distribute-rgt-neg-in39.6%
metadata-eval39.6%
*-commutative39.6%
*-commutative39.6%
*-commutative39.6%
Simplified39.6%
if -2.6e39 < (*.f64 b c) < 2.09999999999999992e127Initial program 84.1%
Simplified89.1%
Taylor expanded in j around inf 33.7%
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
(if (<= t -1.7e+110)
(* t (- (* a (- 4.0)) (* -18.0 (* x (* y z)))))
(if (<= t 2.7e+83)
(- (* b c) (+ (* 4.0 (* x i)) (* 27.0 (* j k))))
(* t (- (* (* z (* x y)) (- -18.0)) (* 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 <= -1.7e+110) {
tmp = t * ((a * -4.0) - (-18.0 * (x * (y * z))));
} else if (t <= 2.7e+83) {
tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
} else {
tmp = t * (((z * (x * y)) * -(-18.0)) - (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 <= (-1.7d+110)) then
tmp = t * ((a * -4.0d0) - ((-18.0d0) * (x * (y * z))))
else if (t <= 2.7d+83) then
tmp = (b * c) - ((4.0d0 * (x * i)) + (27.0d0 * (j * k)))
else
tmp = t * (((z * (x * y)) * -(-18.0d0)) - (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 <= -1.7e+110) {
tmp = t * ((a * -4.0) - (-18.0 * (x * (y * z))));
} else if (t <= 2.7e+83) {
tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
} else {
tmp = t * (((z * (x * y)) * -(-18.0)) - (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 <= -1.7e+110: tmp = t * ((a * -4.0) - (-18.0 * (x * (y * z)))) elif t <= 2.7e+83: tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k))) else: tmp = t * (((z * (x * y)) * -(-18.0)) - (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 <= -1.7e+110) tmp = Float64(t * Float64(Float64(a * Float64(-4.0)) - Float64(-18.0 * Float64(x * Float64(y * z))))); elseif (t <= 2.7e+83) tmp = Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(x * i)) + Float64(27.0 * Float64(j * k)))); else tmp = Float64(t * Float64(Float64(Float64(z * Float64(x * y)) * Float64(-(-18.0))) - 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 <= -1.7e+110)
tmp = t * ((a * -4.0) - (-18.0 * (x * (y * z))));
elseif (t <= 2.7e+83)
tmp = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
else
tmp = t * (((z * (x * y)) * -(-18.0)) - (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, -1.7e+110], N[(t * N[(N[(a * (-4.0)), $MachinePrecision] - N[(-18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e+83], 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[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] * (--18.0)), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{+110}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-4\right) - -18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{+83}:\\
\;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + 27 \cdot \left(j \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(x \cdot y\right)\right) \cdot \left(--18\right) - a \cdot 4\right)\\
\end{array}
\end{array}
if t < -1.7000000000000001e110Initial program 71.1%
Taylor expanded in t around -inf 84.9%
associate-*r*84.9%
neg-mul-184.9%
cancel-sign-sub-inv84.9%
metadata-eval84.9%
*-commutative84.9%
*-commutative84.9%
Simplified84.9%
if -1.7000000000000001e110 < t < 2.70000000000000007e83Initial program 85.8%
Simplified87.1%
Taylor expanded in t around 0 80.4%
if 2.70000000000000007e83 < t Initial program 80.2%
Taylor expanded in t around -inf 70.7%
associate-*r*70.7%
neg-mul-170.7%
cancel-sign-sub-inv70.7%
metadata-eval70.7%
*-commutative70.7%
*-commutative70.7%
Simplified70.7%
pow170.7%
associate-*r*72.5%
Applied egg-rr72.5%
unpow172.5%
*-commutative72.5%
Simplified72.5%
Final simplification79.8%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= t -210000.0) (not (<= t 1.5e+34))) (* t (- (* a (- 4.0)) (* -18.0 (* x (* y z))))) (- (* 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 ((t <= -210000.0) || !(t <= 1.5e+34)) {
tmp = t * ((a * -4.0) - (-18.0 * (x * (y * z))));
} else {
tmp = (b * c) - (27.0 * (j * k));
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if ((t <= (-210000.0d0)) .or. (.not. (t <= 1.5d+34))) then
tmp = t * ((a * -4.0d0) - ((-18.0d0) * (x * (y * z))))
else
tmp = (b * c) - (27.0d0 * (j * k))
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if ((t <= -210000.0) || !(t <= 1.5e+34)) {
tmp = t * ((a * -4.0) - (-18.0 * (x * (y * z))));
} else {
tmp = (b * c) - (27.0 * (j * k));
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if (t <= -210000.0) or not (t <= 1.5e+34): tmp = t * ((a * -4.0) - (-18.0 * (x * (y * z)))) else: tmp = (b * c) - (27.0 * (j * k)) return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((t <= -210000.0) || !(t <= 1.5e+34)) tmp = Float64(t * Float64(Float64(a * Float64(-4.0)) - Float64(-18.0 * Float64(x * Float64(y * z))))); else tmp = Float64(Float64(b * c) - Float64(27.0 * Float64(j * k))); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
tmp = 0.0;
if ((t <= -210000.0) || ~((t <= 1.5e+34)))
tmp = t * ((a * -4.0) - (-18.0 * (x * (y * z))));
else
tmp = (b * c) - (27.0 * (j * k));
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -210000.0], N[Not[LessEqual[t, 1.5e+34]], $MachinePrecision]], N[(t * N[(N[(a * (-4.0)), $MachinePrecision] - N[(-18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] - N[(27.0 * N[(j * k), $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 -210000 \lor \neg \left(t \leq 1.5 \cdot 10^{+34}\right):\\
\;\;\;\;t \cdot \left(a \cdot \left(-4\right) - -18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\
\end{array}
\end{array}
if t < -2.1e5 or 1.50000000000000009e34 < t Initial program 80.9%
Taylor expanded in t around -inf 71.2%
associate-*r*71.2%
neg-mul-171.2%
cancel-sign-sub-inv71.2%
metadata-eval71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
if -2.1e5 < t < 1.50000000000000009e34Initial program 83.5%
Simplified85.6%
Taylor expanded in x around 0 67.9%
Taylor expanded in a around 0 64.0%
Final simplification67.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 (<= t -490000.0)
(* t (- (* a (- 4.0)) (* -18.0 (* x (* y z)))))
(if (<= t 3.9e+36)
(- (* b c) (* 27.0 (* j k)))
(* t (- (* (* z (* x y)) (- -18.0)) (* 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 <= -490000.0) {
tmp = t * ((a * -4.0) - (-18.0 * (x * (y * z))));
} else if (t <= 3.9e+36) {
tmp = (b * c) - (27.0 * (j * k));
} else {
tmp = t * (((z * (x * y)) * -(-18.0)) - (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 <= (-490000.0d0)) then
tmp = t * ((a * -4.0d0) - ((-18.0d0) * (x * (y * z))))
else if (t <= 3.9d+36) then
tmp = (b * c) - (27.0d0 * (j * k))
else
tmp = t * (((z * (x * y)) * -(-18.0d0)) - (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 <= -490000.0) {
tmp = t * ((a * -4.0) - (-18.0 * (x * (y * z))));
} else if (t <= 3.9e+36) {
tmp = (b * c) - (27.0 * (j * k));
} else {
tmp = t * (((z * (x * y)) * -(-18.0)) - (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 <= -490000.0: tmp = t * ((a * -4.0) - (-18.0 * (x * (y * z)))) elif t <= 3.9e+36: tmp = (b * c) - (27.0 * (j * k)) else: tmp = t * (((z * (x * y)) * -(-18.0)) - (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 <= -490000.0) tmp = Float64(t * Float64(Float64(a * Float64(-4.0)) - Float64(-18.0 * Float64(x * Float64(y * z))))); elseif (t <= 3.9e+36) tmp = Float64(Float64(b * c) - Float64(27.0 * Float64(j * k))); else tmp = Float64(t * Float64(Float64(Float64(z * Float64(x * y)) * Float64(-(-18.0))) - 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 <= -490000.0)
tmp = t * ((a * -4.0) - (-18.0 * (x * (y * z))));
elseif (t <= 3.9e+36)
tmp = (b * c) - (27.0 * (j * k));
else
tmp = t * (((z * (x * y)) * -(-18.0)) - (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, -490000.0], N[(t * N[(N[(a * (-4.0)), $MachinePrecision] - N[(-18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.9e+36], N[(N[(b * c), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] * (--18.0)), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -490000:\\
\;\;\;\;t \cdot \left(a \cdot \left(-4\right) - -18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{+36}:\\
\;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(x \cdot y\right)\right) \cdot \left(--18\right) - a \cdot 4\right)\\
\end{array}
\end{array}
if t < -4.9e5Initial program 77.7%
Taylor expanded in t around -inf 75.4%
associate-*r*75.4%
neg-mul-175.4%
cancel-sign-sub-inv75.4%
metadata-eval75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
if -4.9e5 < t < 3.90000000000000021e36Initial program 83.5%
Simplified85.6%
Taylor expanded in x around 0 67.9%
Taylor expanded in a around 0 64.0%
if 3.90000000000000021e36 < t Initial program 84.2%
Taylor expanded in t around -inf 66.6%
associate-*r*66.6%
neg-mul-166.6%
cancel-sign-sub-inv66.6%
metadata-eval66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
pow166.6%
associate-*r*69.6%
Applied egg-rr69.6%
unpow169.6%
*-commutative69.6%
Simplified69.6%
Final simplification68.1%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
:precision binary64
(if (<= t -2.2e+107)
(* 18.0 (* y (* z (* x t))))
(if (<= t 9e+29)
(- (* b c) (* 27.0 (* j k)))
(* c (+ b (/ (* t (* a -4.0)) 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 (t <= -2.2e+107) {
tmp = 18.0 * (y * (z * (x * t)));
} else if (t <= 9e+29) {
tmp = (b * c) - (27.0 * (j * k));
} else {
tmp = c * (b + ((t * (a * -4.0)) / 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 (t <= (-2.2d+107)) then
tmp = 18.0d0 * (y * (z * (x * t)))
else if (t <= 9d+29) then
tmp = (b * c) - (27.0d0 * (j * k))
else
tmp = c * (b + ((t * (a * (-4.0d0))) / 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 (t <= -2.2e+107) {
tmp = 18.0 * (y * (z * (x * t)));
} else if (t <= 9e+29) {
tmp = (b * c) - (27.0 * (j * k));
} else {
tmp = c * (b + ((t * (a * -4.0)) / 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 t <= -2.2e+107: tmp = 18.0 * (y * (z * (x * t))) elif t <= 9e+29: tmp = (b * c) - (27.0 * (j * k)) else: tmp = c * (b + ((t * (a * -4.0)) / 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 (t <= -2.2e+107) tmp = Float64(18.0 * Float64(y * Float64(z * Float64(x * t)))); elseif (t <= 9e+29) tmp = Float64(Float64(b * c) - Float64(27.0 * Float64(j * k))); else tmp = Float64(c * Float64(b + Float64(Float64(t * Float64(a * -4.0)) / 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 (t <= -2.2e+107)
tmp = 18.0 * (y * (z * (x * t)));
elseif (t <= 9e+29)
tmp = (b * c) - (27.0 * (j * k));
else
tmp = c * (b + ((t * (a * -4.0)) / 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[t, -2.2e+107], N[(18.0 * N[(y * N[(z * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e+29], N[(N[(b * c), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(b + N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] / c), $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^{+107}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(z \cdot \left(x \cdot t\right)\right)\right)\\
\mathbf{elif}\;t \leq 9 \cdot 10^{+29}:\\
\;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(b + \frac{t \cdot \left(a \cdot -4\right)}{c}\right)\\
\end{array}
\end{array}
if t < -2.2e107Initial program 72.3%
Taylor expanded in c around inf 51.2%
associate--l+51.2%
fmm-def51.2%
associate-/l*53.4%
fma-define53.4%
associate-/l*51.2%
fma-define51.2%
associate-/l*51.2%
associate-*r/51.2%
Simplified51.2%
Taylor expanded in y around inf 56.5%
associate-*r*58.4%
*-commutative58.4%
associate-*l*60.5%
*-commutative60.5%
Simplified60.5%
if -2.2e107 < t < 9.0000000000000005e29Initial program 84.4%
Simplified86.4%
Taylor expanded in x around 0 67.3%
Taylor expanded in a around 0 62.4%
if 9.0000000000000005e29 < t Initial program 84.5%
Taylor expanded in c around inf 71.5%
associate--l+71.5%
fmm-def71.6%
associate-/l*71.6%
fma-define71.6%
associate-/l*63.2%
fma-define63.2%
associate-/l*64.9%
associate-*r/64.9%
Simplified64.9%
Taylor expanded in a around inf 53.7%
associate-*r/53.7%
associate-*r*53.7%
*-commutative53.7%
*-commutative53.7%
Simplified53.7%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (or (<= (* b c) -2.3e+42) (not (<= (* b c) 2.2e+127))) (* b c) (* (* j k) -27.0)))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -2.3e+42) || !((b * c) <= 2.2e+127)) {
tmp = b * c;
} else {
tmp = (j * k) * -27.0;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: tmp
if (((b * c) <= (-2.3d+42)) .or. (.not. ((b * c) <= 2.2d+127))) then
tmp = b * c
else
tmp = (j * k) * (-27.0d0)
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double tmp;
if (((b * c) <= -2.3e+42) || !((b * c) <= 2.2e+127)) {
tmp = b * c;
} else {
tmp = (j * k) * -27.0;
}
return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): tmp = 0 if ((b * c) <= -2.3e+42) or not ((b * c) <= 2.2e+127): tmp = b * c else: tmp = (j * k) * -27.0 return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) tmp = 0.0 if ((Float64(b * c) <= -2.3e+42) || !(Float64(b * c) <= 2.2e+127)) tmp = Float64(b * c); else tmp = Float64(Float64(j * k) * -27.0); end return tmp end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
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+42) || ~(((b * c) <= 2.2e+127)))
tmp = b * c;
else
tmp = (j * k) * -27.0;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[N[(b * c), $MachinePrecision], -2.3e+42], N[Not[LessEqual[N[(b * c), $MachinePrecision], 2.2e+127]], $MachinePrecision]], N[(b * c), $MachinePrecision], N[(N[(j * k), $MachinePrecision] * -27.0), $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^{+42} \lor \neg \left(b \cdot c \leq 2.2 \cdot 10^{+127}\right):\\
\;\;\;\;b \cdot c\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot k\right) \cdot -27\\
\end{array}
\end{array}
if (*.f64 b c) < -2.3e42 or 2.2000000000000002e127 < (*.f64 b c) Initial program 79.7%
distribute-rgt-out--81.9%
associate-*r*82.0%
*-commutative82.0%
associate-*l*82.0%
associate-*r*82.0%
Applied egg-rr82.0%
Taylor expanded in b around inf 63.3%
if -2.3e42 < (*.f64 b c) < 2.2000000000000002e127Initial program 83.6%
Simplified88.6%
Taylor expanded in j around inf 33.5%
Final simplification44.2%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (<= t -6.8e+107) (* 18.0 (* y (* z (* x t)))) (if (<= t 1.45e+88) (- (* b c) (* 27.0 (* j k))) (* 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 <= -6.8e+107) {
tmp = 18.0 * (y * (z * (x * t)));
} else if (t <= 1.45e+88) {
tmp = (b * c) - (27.0 * (j * k));
} 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 <= (-6.8d+107)) then
tmp = 18.0d0 * (y * (z * (x * t)))
else if (t <= 1.45d+88) then
tmp = (b * c) - (27.0d0 * (j * k))
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 <= -6.8e+107) {
tmp = 18.0 * (y * (z * (x * t)));
} else if (t <= 1.45e+88) {
tmp = (b * c) - (27.0 * (j * k));
} 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 <= -6.8e+107: tmp = 18.0 * (y * (z * (x * t))) elif t <= 1.45e+88: tmp = (b * c) - (27.0 * (j * k)) 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 <= -6.8e+107) tmp = Float64(18.0 * Float64(y * Float64(z * Float64(x * t)))); elseif (t <= 1.45e+88) tmp = Float64(Float64(b * c) - Float64(27.0 * Float64(j * k))); 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 <= -6.8e+107)
tmp = 18.0 * (y * (z * (x * t)));
elseif (t <= 1.45e+88)
tmp = (b * c) - (27.0 * (j * k));
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, -6.8e+107], N[(18.0 * N[(y * N[(z * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.45e+88], N[(N[(b * c), $MachinePrecision] - N[(27.0 * N[(j * k), $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 -6.8 \cdot 10^{+107}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(z \cdot \left(x \cdot t\right)\right)\right)\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{+88}:\\
\;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\end{array}
\end{array}
if t < -6.7999999999999994e107Initial program 72.3%
Taylor expanded in c around inf 51.2%
associate--l+51.2%
fmm-def51.2%
associate-/l*53.4%
fma-define53.4%
associate-/l*51.2%
fma-define51.2%
associate-/l*51.2%
associate-*r/51.2%
Simplified51.2%
Taylor expanded in y around inf 56.5%
associate-*r*58.4%
*-commutative58.4%
associate-*l*60.5%
*-commutative60.5%
Simplified60.5%
if -6.7999999999999994e107 < t < 1.45e88Initial program 85.7%
Simplified87.0%
Taylor expanded in x around 0 67.6%
Taylor expanded in a around 0 61.4%
if 1.45e88 < t Initial program 79.7%
Taylor expanded in t around -inf 70.0%
associate-*r*70.0%
neg-mul-170.0%
cancel-sign-sub-inv70.0%
metadata-eval70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in x around 0 46.1%
*-commutative46.1%
Simplified46.1%
Taylor expanded in t around 0 46.1%
*-commutative46.1%
associate-*r*46.1%
*-commutative46.1%
associate-*l*46.1%
Simplified46.1%
Final simplification58.5%
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i j k) :precision binary64 (if (<= t -1.2e+103) (* 18.0 (* y (* z (* x t)))) (if (<= t 9e+87) (+ (* b c) (* j (* k -27.0))) (* 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 <= -1.2e+103) {
tmp = 18.0 * (y * (z * (x * t)));
} else if (t <= 9e+87) {
tmp = (b * c) + (j * (k * -27.0));
} 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 <= (-1.2d+103)) then
tmp = 18.0d0 * (y * (z * (x * t)))
else if (t <= 9d+87) then
tmp = (b * c) + (j * (k * (-27.0d0)))
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 <= -1.2e+103) {
tmp = 18.0 * (y * (z * (x * t)));
} else if (t <= 9e+87) {
tmp = (b * c) + (j * (k * -27.0));
} 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 <= -1.2e+103: tmp = 18.0 * (y * (z * (x * t))) elif t <= 9e+87: tmp = (b * c) + (j * (k * -27.0)) 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 <= -1.2e+103) tmp = Float64(18.0 * Float64(y * Float64(z * Float64(x * t)))); elseif (t <= 9e+87) tmp = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0))); 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 <= -1.2e+103)
tmp = 18.0 * (y * (z * (x * t)));
elseif (t <= 9e+87)
tmp = (b * c) + (j * (k * -27.0));
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, -1.2e+103], N[(18.0 * N[(y * N[(z * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e+87], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $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 -1.2 \cdot 10^{+103}:\\
\;\;\;\;18 \cdot \left(y \cdot \left(z \cdot \left(x \cdot t\right)\right)\right)\\
\mathbf{elif}\;t \leq 9 \cdot 10^{+87}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\
\end{array}
\end{array}
if t < -1.1999999999999999e103Initial program 72.3%
Taylor expanded in c around inf 51.2%
associate--l+51.2%
fmm-def51.2%
associate-/l*53.4%
fma-define53.4%
associate-/l*51.2%
fma-define51.2%
associate-/l*51.2%
associate-*r/51.2%
Simplified51.2%
Taylor expanded in y around inf 56.5%
associate-*r*58.4%
*-commutative58.4%
associate-*l*60.5%
*-commutative60.5%
Simplified60.5%
if -1.1999999999999999e103 < t < 9.0000000000000005e87Initial program 85.7%
Simplified87.6%
Taylor expanded in b around inf 61.3%
if 9.0000000000000005e87 < t Initial program 79.7%
Taylor expanded in t around -inf 70.0%
associate-*r*70.0%
neg-mul-170.0%
cancel-sign-sub-inv70.0%
metadata-eval70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in x around 0 46.1%
*-commutative46.1%
Simplified46.1%
Taylor expanded in t around 0 46.1%
*-commutative46.1%
associate-*r*46.1%
*-commutative46.1%
associate-*l*46.1%
Simplified46.1%
Final simplification58.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 (* b c))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = b * c
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return b * c;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k]) def code(x, y, z, t, a, b, c, i, j, k): return b * c
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k]) function code(x, y, z, t, a, b, c, i, j, k) return Float64(b * c) end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp = code(x, y, z, t, a, b, c, i, j, k)
tmp = b * c;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(b * c), $MachinePrecision]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\\\
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
b \cdot c
\end{array}
Initial program 82.2%
distribute-rgt-out--85.0%
associate-*r*86.1%
*-commutative86.1%
associate-*l*86.1%
associate-*r*86.1%
Applied egg-rr86.1%
Taylor expanded in b around inf 26.9%
(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 2024152
(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)))