Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, E

Percentage Accurate: 85.6% → 91.2%
Time: 29.5s
Alternatives: 25
Speedup: 0.9×

Specification

?
\[\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} \]
(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:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 25 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 85.6% accurate, 1.0× speedup?

\[\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} \]
(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}

Alternative 1: 91.2% accurate, 0.5× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := \left(\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) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\ \mathbf{if}\;t\_1 \leq \infty:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1
         (-
          (-
           (+ (- (* (* (* (* x 18.0) y) z) t) (* t (* a 4.0))) (* b c))
           (* (* x 4.0) i))
          (* (* j 27.0) k))))
   (if (<= t_1 INFINITY) t_1 (* t (- (* 18.0 (* x (* y z))) (* a 4.0))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = (((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
	double tmp;
	if (t_1 <= ((double) INFINITY)) {
		tmp = t_1;
	} else {
		tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
	}
	return tmp;
}
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = (((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
	double tmp;
	if (t_1 <= Double.POSITIVE_INFINITY) {
		tmp = t_1;
	} else {
		tmp = t * ((18.0 * (x * (y * z))) - (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])
def code(x, y, z, t, a, b, c, i, j, k):
	t_1 = (((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
	tmp = 0
	if t_1 <= math.inf:
		tmp = t_1
	else:
		tmp = t * ((18.0 * (x * (y * z))) - (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])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k))
	tmp = 0.0
	if (t_1 <= Inf)
		tmp = t_1;
	else
		tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - 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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	t_1 = (((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
	tmp = 0.0;
	if (t_1 <= Inf)
		tmp = t_1;
	else
		tmp = t * ((18.0 * (x * (y * z))) - (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.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = 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] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $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])\\
\\
\begin{array}{l}
t_1 := \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) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. 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.0

    1. Initial program 96.9%

      \[\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 \]
    2. Add Preprocessing

    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))

    1. Initial program 0.0%

      \[\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 \]
    2. Simplified20.0%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around inf 60.1%

      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification92.6%

    \[\leadsto \begin{array}{l} \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) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \leq \infty:\\ \;\;\;\;\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) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 53.6% accurate, 0.5× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := j \cdot \left(k \cdot -27\right)\\ t_2 := t\_1 + -4 \cdot \left(x \cdot i\right)\\ t_3 := -4 \cdot \left(t \cdot a\right) + \left(j \cdot k\right) \cdot -27\\ \mathbf{if}\;b \cdot c \leq -1 \cdot 10^{+206}:\\ \;\;\;\;b \cdot c + t\_1\\ \mathbf{elif}\;b \cdot c \leq -10:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{-156}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;b \cdot c \leq 5 \cdot 10^{-249}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;b \cdot c \leq 10^{-128}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;b \cdot c \leq 2.4 \cdot 10^{-42}:\\ \;\;\;\;t\_1 + a \cdot \left(t \cdot -4\right)\\ \mathbf{elif}\;b \cdot c \leq 10^{+62}:\\ \;\;\;\;t \cdot \left(a \cdot -4\right) - 4 \cdot \left(x \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(c + -27 \cdot \left(j \cdot \frac{k}{b}\right)\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1 (* j (* k -27.0)))
        (t_2 (+ t_1 (* -4.0 (* x i))))
        (t_3 (+ (* -4.0 (* t a)) (* (* j k) -27.0))))
   (if (<= (* b c) -1e+206)
     (+ (* b c) t_1)
     (if (<= (* b c) -10.0)
       t_3
       (if (<= (* b c) -1e-156)
         t_2
         (if (<= (* b c) 5e-249)
           t_3
           (if (<= (* b c) 1e-128)
             t_2
             (if (<= (* b c) 2.4e-42)
               (+ t_1 (* a (* t -4.0)))
               (if (<= (* b c) 1e+62)
                 (- (* t (* a -4.0)) (* 4.0 (* x i)))
                 (* b (+ c (* -27.0 (* j (/ k b))))))))))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = j * (k * -27.0);
	double t_2 = t_1 + (-4.0 * (x * i));
	double t_3 = (-4.0 * (t * a)) + ((j * k) * -27.0);
	double tmp;
	if ((b * c) <= -1e+206) {
		tmp = (b * c) + t_1;
	} else if ((b * c) <= -10.0) {
		tmp = t_3;
	} else if ((b * c) <= -1e-156) {
		tmp = t_2;
	} else if ((b * c) <= 5e-249) {
		tmp = t_3;
	} else if ((b * c) <= 1e-128) {
		tmp = t_2;
	} else if ((b * c) <= 2.4e-42) {
		tmp = t_1 + (a * (t * -4.0));
	} else if ((b * c) <= 1e+62) {
		tmp = (t * (a * -4.0)) - (4.0 * (x * i));
	} else {
		tmp = b * (c + (-27.0 * (j * (k / b))));
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = j * (k * (-27.0d0))
    t_2 = t_1 + ((-4.0d0) * (x * i))
    t_3 = ((-4.0d0) * (t * a)) + ((j * k) * (-27.0d0))
    if ((b * c) <= (-1d+206)) then
        tmp = (b * c) + t_1
    else if ((b * c) <= (-10.0d0)) then
        tmp = t_3
    else if ((b * c) <= (-1d-156)) then
        tmp = t_2
    else if ((b * c) <= 5d-249) then
        tmp = t_3
    else if ((b * c) <= 1d-128) then
        tmp = t_2
    else if ((b * c) <= 2.4d-42) then
        tmp = t_1 + (a * (t * (-4.0d0)))
    else if ((b * c) <= 1d+62) then
        tmp = (t * (a * (-4.0d0))) - (4.0d0 * (x * i))
    else
        tmp = b * (c + ((-27.0d0) * (j * (k / b))))
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = j * (k * -27.0);
	double t_2 = t_1 + (-4.0 * (x * i));
	double t_3 = (-4.0 * (t * a)) + ((j * k) * -27.0);
	double tmp;
	if ((b * c) <= -1e+206) {
		tmp = (b * c) + t_1;
	} else if ((b * c) <= -10.0) {
		tmp = t_3;
	} else if ((b * c) <= -1e-156) {
		tmp = t_2;
	} else if ((b * c) <= 5e-249) {
		tmp = t_3;
	} else if ((b * c) <= 1e-128) {
		tmp = t_2;
	} else if ((b * c) <= 2.4e-42) {
		tmp = t_1 + (a * (t * -4.0));
	} else if ((b * c) <= 1e+62) {
		tmp = (t * (a * -4.0)) - (4.0 * (x * i));
	} else {
		tmp = b * (c + (-27.0 * (j * (k / b))));
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	t_1 = j * (k * -27.0)
	t_2 = t_1 + (-4.0 * (x * i))
	t_3 = (-4.0 * (t * a)) + ((j * k) * -27.0)
	tmp = 0
	if (b * c) <= -1e+206:
		tmp = (b * c) + t_1
	elif (b * c) <= -10.0:
		tmp = t_3
	elif (b * c) <= -1e-156:
		tmp = t_2
	elif (b * c) <= 5e-249:
		tmp = t_3
	elif (b * c) <= 1e-128:
		tmp = t_2
	elif (b * c) <= 2.4e-42:
		tmp = t_1 + (a * (t * -4.0))
	elif (b * c) <= 1e+62:
		tmp = (t * (a * -4.0)) - (4.0 * (x * i))
	else:
		tmp = b * (c + (-27.0 * (j * (k / b))))
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(j * Float64(k * -27.0))
	t_2 = Float64(t_1 + Float64(-4.0 * Float64(x * i)))
	t_3 = Float64(Float64(-4.0 * Float64(t * a)) + Float64(Float64(j * k) * -27.0))
	tmp = 0.0
	if (Float64(b * c) <= -1e+206)
		tmp = Float64(Float64(b * c) + t_1);
	elseif (Float64(b * c) <= -10.0)
		tmp = t_3;
	elseif (Float64(b * c) <= -1e-156)
		tmp = t_2;
	elseif (Float64(b * c) <= 5e-249)
		tmp = t_3;
	elseif (Float64(b * c) <= 1e-128)
		tmp = t_2;
	elseif (Float64(b * c) <= 2.4e-42)
		tmp = Float64(t_1 + Float64(a * Float64(t * -4.0)));
	elseif (Float64(b * c) <= 1e+62)
		tmp = Float64(Float64(t * Float64(a * -4.0)) - Float64(4.0 * Float64(x * i)));
	else
		tmp = Float64(b * Float64(c + Float64(-27.0 * Float64(j * Float64(k / b)))));
	end
	return tmp
end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	t_1 = j * (k * -27.0);
	t_2 = t_1 + (-4.0 * (x * i));
	t_3 = (-4.0 * (t * a)) + ((j * k) * -27.0);
	tmp = 0.0;
	if ((b * c) <= -1e+206)
		tmp = (b * c) + t_1;
	elseif ((b * c) <= -10.0)
		tmp = t_3;
	elseif ((b * c) <= -1e-156)
		tmp = t_2;
	elseif ((b * c) <= 5e-249)
		tmp = t_3;
	elseif ((b * c) <= 1e-128)
		tmp = t_2;
	elseif ((b * c) <= 2.4e-42)
		tmp = t_1 + (a * (t * -4.0));
	elseif ((b * c) <= 1e+62)
		tmp = (t * (a * -4.0)) - (4.0 * (x * i));
	else
		tmp = b * (c + (-27.0 * (j * (k / b))));
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(N[(j * k), $MachinePrecision] * -27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -1e+206], N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -10.0], t$95$3, If[LessEqual[N[(b * c), $MachinePrecision], -1e-156], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], 5e-249], t$95$3, If[LessEqual[N[(b * c), $MachinePrecision], 1e-128], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], 2.4e-42], N[(t$95$1 + N[(a * N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 1e+62], N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(c + N[(-27.0 * N[(j * N[(k / b), $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])\\
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := t\_1 + -4 \cdot \left(x \cdot i\right)\\
t_3 := -4 \cdot \left(t \cdot a\right) + \left(j \cdot k\right) \cdot -27\\
\mathbf{if}\;b \cdot c \leq -1 \cdot 10^{+206}:\\
\;\;\;\;b \cdot c + t\_1\\

\mathbf{elif}\;b \cdot c \leq -10:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{-156}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;b \cdot c \leq 5 \cdot 10^{-249}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;b \cdot c \leq 10^{-128}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;b \cdot c \leq 2.4 \cdot 10^{-42}:\\
\;\;\;\;t\_1 + a \cdot \left(t \cdot -4\right)\\

\mathbf{elif}\;b \cdot c \leq 10^{+62}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right) - 4 \cdot \left(x \cdot i\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(c + -27 \cdot \left(j \cdot \frac{k}{b}\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if (*.f64 b c) < -1e206

    1. Initial program 70.0%

      \[\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 \]
    2. Simplified83.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in b around inf 76.7%

      \[\leadsto \color{blue}{b \cdot c} + j \cdot \left(k \cdot -27\right) \]

    if -1e206 < (*.f64 b c) < -10 or -1.00000000000000004e-156 < (*.f64 b c) < 4.9999999999999999e-249

    1. Initial program 88.7%

      \[\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 \]
    2. Simplified86.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 59.5%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right)} + j \cdot \left(k \cdot -27\right) \]
    5. Step-by-step derivation
      1. metadata-eval59.5%

        \[\leadsto \color{blue}{\left(-4\right)} \cdot \left(a \cdot t\right) + j \cdot \left(k \cdot -27\right) \]
      2. distribute-lft-neg-in59.5%

        \[\leadsto \color{blue}{\left(-4 \cdot \left(a \cdot t\right)\right)} + j \cdot \left(k \cdot -27\right) \]
      3. *-commutative59.5%

        \[\leadsto \left(-4 \cdot \color{blue}{\left(t \cdot a\right)}\right) + j \cdot \left(k \cdot -27\right) \]
      4. associate-*l*59.5%

        \[\leadsto \left(-\color{blue}{\left(4 \cdot t\right) \cdot a}\right) + j \cdot \left(k \cdot -27\right) \]
      5. distribute-lft-neg-in59.5%

        \[\leadsto \color{blue}{\left(-4 \cdot t\right) \cdot a} + j \cdot \left(k \cdot -27\right) \]
      6. distribute-lft-neg-in59.5%

        \[\leadsto \color{blue}{\left(\left(-4\right) \cdot t\right)} \cdot a + j \cdot \left(k \cdot -27\right) \]
      7. metadata-eval59.5%

        \[\leadsto \left(\color{blue}{-4} \cdot t\right) \cdot a + j \cdot \left(k \cdot -27\right) \]
    6. Simplified59.5%

      \[\leadsto \color{blue}{\left(-4 \cdot t\right) \cdot a} + j \cdot \left(k \cdot -27\right) \]
    7. Taylor expanded in t around 0 59.6%

      \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right) + -4 \cdot \left(a \cdot t\right)} \]

    if -10 < (*.f64 b c) < -1.00000000000000004e-156 or 4.9999999999999999e-249 < (*.f64 b c) < 1.00000000000000005e-128

    1. Initial program 81.7%

      \[\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 \]
    2. Simplified84.7%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in i around inf 60.1%

      \[\leadsto \color{blue}{-4 \cdot \left(i \cdot x\right)} + j \cdot \left(k \cdot -27\right) \]

    if 1.00000000000000005e-128 < (*.f64 b c) < 2.40000000000000003e-42

    1. Initial program 79.0%

      \[\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 \]
    2. Simplified79.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 79.2%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right)} + j \cdot \left(k \cdot -27\right) \]
    5. Step-by-step derivation
      1. metadata-eval79.2%

        \[\leadsto \color{blue}{\left(-4\right)} \cdot \left(a \cdot t\right) + j \cdot \left(k \cdot -27\right) \]
      2. distribute-lft-neg-in79.2%

        \[\leadsto \color{blue}{\left(-4 \cdot \left(a \cdot t\right)\right)} + j \cdot \left(k \cdot -27\right) \]
      3. *-commutative79.2%

        \[\leadsto \left(-4 \cdot \color{blue}{\left(t \cdot a\right)}\right) + j \cdot \left(k \cdot -27\right) \]
      4. associate-*l*79.2%

        \[\leadsto \left(-\color{blue}{\left(4 \cdot t\right) \cdot a}\right) + j \cdot \left(k \cdot -27\right) \]
      5. distribute-lft-neg-in79.2%

        \[\leadsto \color{blue}{\left(-4 \cdot t\right) \cdot a} + j \cdot \left(k \cdot -27\right) \]
      6. distribute-lft-neg-in79.2%

        \[\leadsto \color{blue}{\left(\left(-4\right) \cdot t\right)} \cdot a + j \cdot \left(k \cdot -27\right) \]
      7. metadata-eval79.2%

        \[\leadsto \left(\color{blue}{-4} \cdot t\right) \cdot a + j \cdot \left(k \cdot -27\right) \]
    6. Simplified79.2%

      \[\leadsto \color{blue}{\left(-4 \cdot t\right) \cdot a} + j \cdot \left(k \cdot -27\right) \]

    if 2.40000000000000003e-42 < (*.f64 b c) < 1.00000000000000004e62

    1. Initial program 100.0%

      \[\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 \]
    2. Simplified100.0%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in j around 0 91.2%

      \[\leadsto \color{blue}{\left(b \cdot c + t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)\right) - 4 \cdot \left(i \cdot x\right)} \]
    5. Taylor expanded in a around inf 61.0%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right)} - 4 \cdot \left(i \cdot x\right) \]
    6. Step-by-step derivation
      1. *-commutative61.0%

        \[\leadsto \color{blue}{\left(a \cdot t\right) \cdot -4} - 4 \cdot \left(i \cdot x\right) \]
      2. *-commutative61.0%

        \[\leadsto \color{blue}{\left(t \cdot a\right)} \cdot -4 - 4 \cdot \left(i \cdot x\right) \]
      3. associate-*r*61.0%

        \[\leadsto \color{blue}{t \cdot \left(a \cdot -4\right)} - 4 \cdot \left(i \cdot x\right) \]
    7. Simplified61.0%

      \[\leadsto \color{blue}{t \cdot \left(a \cdot -4\right)} - 4 \cdot \left(i \cdot x\right) \]

    if 1.00000000000000004e62 < (*.f64 b c)

    1. Initial program 87.9%

      \[\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 \]
    2. Simplified89.5%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 79.4%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
    5. Taylor expanded in i around 0 74.4%

      \[\leadsto \color{blue}{b \cdot c - 27 \cdot \left(j \cdot k\right)} \]
    6. Taylor expanded in b around inf 72.8%

      \[\leadsto \color{blue}{b \cdot \left(c + -27 \cdot \frac{j \cdot k}{b}\right)} \]
    7. Step-by-step derivation
      1. *-commutative72.8%

        \[\leadsto b \cdot \left(c + \color{blue}{\frac{j \cdot k}{b} \cdot -27}\right) \]
      2. associate-/l*74.6%

        \[\leadsto b \cdot \left(c + \color{blue}{\left(j \cdot \frac{k}{b}\right)} \cdot -27\right) \]
    8. Simplified74.6%

      \[\leadsto \color{blue}{b \cdot \left(c + \left(j \cdot \frac{k}{b}\right) \cdot -27\right)} \]
  3. Recombined 6 regimes into one program.
  4. Final simplification66.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \cdot c \leq -1 \cdot 10^{+206}:\\ \;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\ \mathbf{elif}\;b \cdot c \leq -10:\\ \;\;\;\;-4 \cdot \left(t \cdot a\right) + \left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{-156}:\\ \;\;\;\;j \cdot \left(k \cdot -27\right) + -4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;b \cdot c \leq 5 \cdot 10^{-249}:\\ \;\;\;\;-4 \cdot \left(t \cdot a\right) + \left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;b \cdot c \leq 10^{-128}:\\ \;\;\;\;j \cdot \left(k \cdot -27\right) + -4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;b \cdot c \leq 2.4 \cdot 10^{-42}:\\ \;\;\;\;j \cdot \left(k \cdot -27\right) + a \cdot \left(t \cdot -4\right)\\ \mathbf{elif}\;b \cdot c \leq 10^{+62}:\\ \;\;\;\;t \cdot \left(a \cdot -4\right) - 4 \cdot \left(x \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(c + -27 \cdot \left(j \cdot \frac{k}{b}\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 53.0% accurate, 0.5× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := j \cdot \left(k \cdot -27\right)\\ t_2 := t\_1 + -4 \cdot \left(x \cdot i\right)\\ t_3 := a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + t \cdot -4\right)\\ \mathbf{if}\;b \cdot c \leq -1 \cdot 10^{+206}:\\ \;\;\;\;b \cdot c + t\_1\\ \mathbf{elif}\;b \cdot c \leq -10:\\ \;\;\;\;-4 \cdot \left(t \cdot a\right) + \left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;b \cdot c \leq -5 \cdot 10^{-182}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;b \cdot c \leq -5 \cdot 10^{-283}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;b \cdot c \leq 0:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;b \cdot c \leq 5 \cdot 10^{-46}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;b \cdot c \leq 2 \cdot 10^{+47}:\\ \;\;\;\;t \cdot \left(a \cdot -4\right) - 4 \cdot \left(x \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(c + -27 \cdot \left(j \cdot \frac{k}{b}\right)\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1 (* j (* k -27.0)))
        (t_2 (+ t_1 (* -4.0 (* x i))))
        (t_3 (* a (+ (* -27.0 (/ (* j k) a)) (* t -4.0)))))
   (if (<= (* b c) -1e+206)
     (+ (* b c) t_1)
     (if (<= (* b c) -10.0)
       (+ (* -4.0 (* t a)) (* (* j k) -27.0))
       (if (<= (* b c) -5e-182)
         t_2
         (if (<= (* b c) -5e-283)
           t_3
           (if (<= (* b c) 0.0)
             t_2
             (if (<= (* b c) 5e-46)
               t_3
               (if (<= (* b c) 2e+47)
                 (- (* t (* a -4.0)) (* 4.0 (* x i)))
                 (* b (+ c (* -27.0 (* j (/ k b))))))))))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = j * (k * -27.0);
	double t_2 = t_1 + (-4.0 * (x * i));
	double t_3 = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
	double tmp;
	if ((b * c) <= -1e+206) {
		tmp = (b * c) + t_1;
	} else if ((b * c) <= -10.0) {
		tmp = (-4.0 * (t * a)) + ((j * k) * -27.0);
	} else if ((b * c) <= -5e-182) {
		tmp = t_2;
	} else if ((b * c) <= -5e-283) {
		tmp = t_3;
	} else if ((b * c) <= 0.0) {
		tmp = t_2;
	} else if ((b * c) <= 5e-46) {
		tmp = t_3;
	} else if ((b * c) <= 2e+47) {
		tmp = (t * (a * -4.0)) - (4.0 * (x * i));
	} else {
		tmp = b * (c + (-27.0 * (j * (k / b))));
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = j * (k * (-27.0d0))
    t_2 = t_1 + ((-4.0d0) * (x * i))
    t_3 = a * (((-27.0d0) * ((j * k) / a)) + (t * (-4.0d0)))
    if ((b * c) <= (-1d+206)) then
        tmp = (b * c) + t_1
    else if ((b * c) <= (-10.0d0)) then
        tmp = ((-4.0d0) * (t * a)) + ((j * k) * (-27.0d0))
    else if ((b * c) <= (-5d-182)) then
        tmp = t_2
    else if ((b * c) <= (-5d-283)) then
        tmp = t_3
    else if ((b * c) <= 0.0d0) then
        tmp = t_2
    else if ((b * c) <= 5d-46) then
        tmp = t_3
    else if ((b * c) <= 2d+47) then
        tmp = (t * (a * (-4.0d0))) - (4.0d0 * (x * i))
    else
        tmp = b * (c + ((-27.0d0) * (j * (k / b))))
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = j * (k * -27.0);
	double t_2 = t_1 + (-4.0 * (x * i));
	double t_3 = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
	double tmp;
	if ((b * c) <= -1e+206) {
		tmp = (b * c) + t_1;
	} else if ((b * c) <= -10.0) {
		tmp = (-4.0 * (t * a)) + ((j * k) * -27.0);
	} else if ((b * c) <= -5e-182) {
		tmp = t_2;
	} else if ((b * c) <= -5e-283) {
		tmp = t_3;
	} else if ((b * c) <= 0.0) {
		tmp = t_2;
	} else if ((b * c) <= 5e-46) {
		tmp = t_3;
	} else if ((b * c) <= 2e+47) {
		tmp = (t * (a * -4.0)) - (4.0 * (x * i));
	} else {
		tmp = b * (c + (-27.0 * (j * (k / b))));
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	t_1 = j * (k * -27.0)
	t_2 = t_1 + (-4.0 * (x * i))
	t_3 = a * ((-27.0 * ((j * k) / a)) + (t * -4.0))
	tmp = 0
	if (b * c) <= -1e+206:
		tmp = (b * c) + t_1
	elif (b * c) <= -10.0:
		tmp = (-4.0 * (t * a)) + ((j * k) * -27.0)
	elif (b * c) <= -5e-182:
		tmp = t_2
	elif (b * c) <= -5e-283:
		tmp = t_3
	elif (b * c) <= 0.0:
		tmp = t_2
	elif (b * c) <= 5e-46:
		tmp = t_3
	elif (b * c) <= 2e+47:
		tmp = (t * (a * -4.0)) - (4.0 * (x * i))
	else:
		tmp = b * (c + (-27.0 * (j * (k / b))))
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(j * Float64(k * -27.0))
	t_2 = Float64(t_1 + Float64(-4.0 * Float64(x * i)))
	t_3 = Float64(a * Float64(Float64(-27.0 * Float64(Float64(j * k) / a)) + Float64(t * -4.0)))
	tmp = 0.0
	if (Float64(b * c) <= -1e+206)
		tmp = Float64(Float64(b * c) + t_1);
	elseif (Float64(b * c) <= -10.0)
		tmp = Float64(Float64(-4.0 * Float64(t * a)) + Float64(Float64(j * k) * -27.0));
	elseif (Float64(b * c) <= -5e-182)
		tmp = t_2;
	elseif (Float64(b * c) <= -5e-283)
		tmp = t_3;
	elseif (Float64(b * c) <= 0.0)
		tmp = t_2;
	elseif (Float64(b * c) <= 5e-46)
		tmp = t_3;
	elseif (Float64(b * c) <= 2e+47)
		tmp = Float64(Float64(t * Float64(a * -4.0)) - Float64(4.0 * Float64(x * i)));
	else
		tmp = Float64(b * Float64(c + Float64(-27.0 * Float64(j * Float64(k / b)))));
	end
	return tmp
end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	t_1 = j * (k * -27.0);
	t_2 = t_1 + (-4.0 * (x * i));
	t_3 = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
	tmp = 0.0;
	if ((b * c) <= -1e+206)
		tmp = (b * c) + t_1;
	elseif ((b * c) <= -10.0)
		tmp = (-4.0 * (t * a)) + ((j * k) * -27.0);
	elseif ((b * c) <= -5e-182)
		tmp = t_2;
	elseif ((b * c) <= -5e-283)
		tmp = t_3;
	elseif ((b * c) <= 0.0)
		tmp = t_2;
	elseif ((b * c) <= 5e-46)
		tmp = t_3;
	elseif ((b * c) <= 2e+47)
		tmp = (t * (a * -4.0)) - (4.0 * (x * i));
	else
		tmp = b * (c + (-27.0 * (j * (k / b))));
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(-27.0 * N[(N[(j * k), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] + N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -1e+206], N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -10.0], N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(N[(j * k), $MachinePrecision] * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -5e-182], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], -5e-283], t$95$3, If[LessEqual[N[(b * c), $MachinePrecision], 0.0], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], 5e-46], t$95$3, If[LessEqual[N[(b * c), $MachinePrecision], 2e+47], N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(c + N[(-27.0 * N[(j * N[(k / b), $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])\\
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := t\_1 + -4 \cdot \left(x \cdot i\right)\\
t_3 := a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + t \cdot -4\right)\\
\mathbf{if}\;b \cdot c \leq -1 \cdot 10^{+206}:\\
\;\;\;\;b \cdot c + t\_1\\

\mathbf{elif}\;b \cdot c \leq -10:\\
\;\;\;\;-4 \cdot \left(t \cdot a\right) + \left(j \cdot k\right) \cdot -27\\

\mathbf{elif}\;b \cdot c \leq -5 \cdot 10^{-182}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;b \cdot c \leq -5 \cdot 10^{-283}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;b \cdot c \leq 0:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;b \cdot c \leq 5 \cdot 10^{-46}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;b \cdot c \leq 2 \cdot 10^{+47}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right) - 4 \cdot \left(x \cdot i\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(c + -27 \cdot \left(j \cdot \frac{k}{b}\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if (*.f64 b c) < -1e206

    1. Initial program 70.0%

      \[\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 \]
    2. Simplified83.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in b around inf 76.7%

      \[\leadsto \color{blue}{b \cdot c} + j \cdot \left(k \cdot -27\right) \]

    if -1e206 < (*.f64 b c) < -10

    1. Initial program 89.8%

      \[\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 \]
    2. Simplified96.5%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 53.2%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right)} + j \cdot \left(k \cdot -27\right) \]
    5. Step-by-step derivation
      1. metadata-eval53.2%

        \[\leadsto \color{blue}{\left(-4\right)} \cdot \left(a \cdot t\right) + j \cdot \left(k \cdot -27\right) \]
      2. distribute-lft-neg-in53.2%

        \[\leadsto \color{blue}{\left(-4 \cdot \left(a \cdot t\right)\right)} + j \cdot \left(k \cdot -27\right) \]
      3. *-commutative53.2%

        \[\leadsto \left(-4 \cdot \color{blue}{\left(t \cdot a\right)}\right) + j \cdot \left(k \cdot -27\right) \]
      4. associate-*l*53.2%

        \[\leadsto \left(-\color{blue}{\left(4 \cdot t\right) \cdot a}\right) + j \cdot \left(k \cdot -27\right) \]
      5. distribute-lft-neg-in53.2%

        \[\leadsto \color{blue}{\left(-4 \cdot t\right) \cdot a} + j \cdot \left(k \cdot -27\right) \]
      6. distribute-lft-neg-in53.2%

        \[\leadsto \color{blue}{\left(\left(-4\right) \cdot t\right)} \cdot a + j \cdot \left(k \cdot -27\right) \]
      7. metadata-eval53.2%

        \[\leadsto \left(\color{blue}{-4} \cdot t\right) \cdot a + j \cdot \left(k \cdot -27\right) \]
    6. Simplified53.2%

      \[\leadsto \color{blue}{\left(-4 \cdot t\right) \cdot a} + j \cdot \left(k \cdot -27\right) \]
    7. Taylor expanded in t around 0 53.2%

      \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right) + -4 \cdot \left(a \cdot t\right)} \]

    if -10 < (*.f64 b c) < -5.00000000000000024e-182 or -5.0000000000000001e-283 < (*.f64 b c) < 0.0

    1. Initial program 88.8%

      \[\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 \]
    2. Simplified81.4%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in i around inf 56.3%

      \[\leadsto \color{blue}{-4 \cdot \left(i \cdot x\right)} + j \cdot \left(k \cdot -27\right) \]

    if -5.00000000000000024e-182 < (*.f64 b c) < -5.0000000000000001e-283 or 0.0 < (*.f64 b c) < 4.99999999999999992e-46

    1. Initial program 79.2%

      \[\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 \]
    2. Simplified83.2%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 70.0%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right)} + j \cdot \left(k \cdot -27\right) \]
    5. Step-by-step derivation
      1. metadata-eval70.0%

        \[\leadsto \color{blue}{\left(-4\right)} \cdot \left(a \cdot t\right) + j \cdot \left(k \cdot -27\right) \]
      2. distribute-lft-neg-in70.0%

        \[\leadsto \color{blue}{\left(-4 \cdot \left(a \cdot t\right)\right)} + j \cdot \left(k \cdot -27\right) \]
      3. *-commutative70.0%

        \[\leadsto \left(-4 \cdot \color{blue}{\left(t \cdot a\right)}\right) + j \cdot \left(k \cdot -27\right) \]
      4. associate-*l*70.0%

        \[\leadsto \left(-\color{blue}{\left(4 \cdot t\right) \cdot a}\right) + j \cdot \left(k \cdot -27\right) \]
      5. distribute-lft-neg-in70.0%

        \[\leadsto \color{blue}{\left(-4 \cdot t\right) \cdot a} + j \cdot \left(k \cdot -27\right) \]
      6. distribute-lft-neg-in70.0%

        \[\leadsto \color{blue}{\left(\left(-4\right) \cdot t\right)} \cdot a + j \cdot \left(k \cdot -27\right) \]
      7. metadata-eval70.0%

        \[\leadsto \left(\color{blue}{-4} \cdot t\right) \cdot a + j \cdot \left(k \cdot -27\right) \]
    6. Simplified70.0%

      \[\leadsto \color{blue}{\left(-4 \cdot t\right) \cdot a} + j \cdot \left(k \cdot -27\right) \]
    7. Taylor expanded in a around inf 73.7%

      \[\leadsto \color{blue}{a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + -4 \cdot t\right)} \]

    if 4.99999999999999992e-46 < (*.f64 b c) < 2.0000000000000001e47

    1. Initial program 100.0%

      \[\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 \]
    2. Simplified100.0%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in j around 0 95.6%

      \[\leadsto \color{blue}{\left(b \cdot c + t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)\right) - 4 \cdot \left(i \cdot x\right)} \]
    5. Taylor expanded in a around inf 63.9%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right)} - 4 \cdot \left(i \cdot x\right) \]
    6. Step-by-step derivation
      1. *-commutative63.9%

        \[\leadsto \color{blue}{\left(a \cdot t\right) \cdot -4} - 4 \cdot \left(i \cdot x\right) \]
      2. *-commutative63.9%

        \[\leadsto \color{blue}{\left(t \cdot a\right)} \cdot -4 - 4 \cdot \left(i \cdot x\right) \]
      3. associate-*r*63.9%

        \[\leadsto \color{blue}{t \cdot \left(a \cdot -4\right)} - 4 \cdot \left(i \cdot x\right) \]
    7. Simplified63.9%

      \[\leadsto \color{blue}{t \cdot \left(a \cdot -4\right)} - 4 \cdot \left(i \cdot x\right) \]

    if 2.0000000000000001e47 < (*.f64 b c)

    1. Initial program 88.3%

      \[\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 \]
    2. Simplified89.9%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 80.1%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
    5. Taylor expanded in i around 0 73.7%

      \[\leadsto \color{blue}{b \cdot c - 27 \cdot \left(j \cdot k\right)} \]
    6. Taylor expanded in b around inf 72.1%

      \[\leadsto \color{blue}{b \cdot \left(c + -27 \cdot \frac{j \cdot k}{b}\right)} \]
    7. Step-by-step derivation
      1. *-commutative72.1%

        \[\leadsto b \cdot \left(c + \color{blue}{\frac{j \cdot k}{b} \cdot -27}\right) \]
      2. associate-/l*73.9%

        \[\leadsto b \cdot \left(c + \color{blue}{\left(j \cdot \frac{k}{b}\right)} \cdot -27\right) \]
    8. Simplified73.9%

      \[\leadsto \color{blue}{b \cdot \left(c + \left(j \cdot \frac{k}{b}\right) \cdot -27\right)} \]
  3. Recombined 6 regimes into one program.
  4. Final simplification66.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \cdot c \leq -1 \cdot 10^{+206}:\\ \;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\ \mathbf{elif}\;b \cdot c \leq -10:\\ \;\;\;\;-4 \cdot \left(t \cdot a\right) + \left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;b \cdot c \leq -5 \cdot 10^{-182}:\\ \;\;\;\;j \cdot \left(k \cdot -27\right) + -4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;b \cdot c \leq -5 \cdot 10^{-283}:\\ \;\;\;\;a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + t \cdot -4\right)\\ \mathbf{elif}\;b \cdot c \leq 0:\\ \;\;\;\;j \cdot \left(k \cdot -27\right) + -4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;b \cdot c \leq 5 \cdot 10^{-46}:\\ \;\;\;\;a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + t \cdot -4\right)\\ \mathbf{elif}\;b \cdot c \leq 2 \cdot 10^{+47}:\\ \;\;\;\;t \cdot \left(a \cdot -4\right) - 4 \cdot \left(x \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(c + -27 \cdot \left(j \cdot \frac{k}{b}\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 56.7% accurate, 0.5× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := j \cdot \left(k \cdot -27\right)\\ t_2 := b \cdot c - 27 \cdot \left(j \cdot k\right)\\ t_3 := t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \mathbf{if}\;t \leq -7.6 \cdot 10^{+98}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t \leq 5.8 \cdot 10^{-254}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq 1.7 \cdot 10^{-162}:\\ \;\;\;\;t\_1 + -4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;t \leq 1.52 \cdot 10^{-33}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq 5.5 \cdot 10^{-6}:\\ \;\;\;\;t \cdot \left(a \cdot -4\right) - 4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;t \leq 1.35 \cdot 10^{+36}:\\ \;\;\;\;a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + t \cdot -4\right)\\ \mathbf{elif}\;t \leq 3 \cdot 10^{+56}:\\ \;\;\;\;b \cdot c + t\_1\\ \mathbf{elif}\;t \leq 10^{+178} \lor \neg \left(t \leq 1.25 \cdot 10^{+220}\right):\\ \;\;\;\;t\_3\\ \mathbf{else}:\\ \;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1 (* j (* k -27.0)))
        (t_2 (- (* b c) (* 27.0 (* j k))))
        (t_3 (* t (- (* 18.0 (* x (* y z))) (* a 4.0)))))
   (if (<= t -7.6e+98)
     t_3
     (if (<= t 5.8e-254)
       t_2
       (if (<= t 1.7e-162)
         (+ t_1 (* -4.0 (* x i)))
         (if (<= t 1.52e-33)
           t_2
           (if (<= t 5.5e-6)
             (- (* t (* a -4.0)) (* 4.0 (* x i)))
             (if (<= t 1.35e+36)
               (* a (+ (* -27.0 (/ (* j k) a)) (* t -4.0)))
               (if (<= t 3e+56)
                 (+ (* b c) t_1)
                 (if (or (<= t 1e+178) (not (<= t 1.25e+220)))
                   t_3
                   (- (* b c) (* x (* 4.0 i)))))))))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = j * (k * -27.0);
	double t_2 = (b * c) - (27.0 * (j * k));
	double t_3 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
	double tmp;
	if (t <= -7.6e+98) {
		tmp = t_3;
	} else if (t <= 5.8e-254) {
		tmp = t_2;
	} else if (t <= 1.7e-162) {
		tmp = t_1 + (-4.0 * (x * i));
	} else if (t <= 1.52e-33) {
		tmp = t_2;
	} else if (t <= 5.5e-6) {
		tmp = (t * (a * -4.0)) - (4.0 * (x * i));
	} else if (t <= 1.35e+36) {
		tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
	} else if (t <= 3e+56) {
		tmp = (b * c) + t_1;
	} else if ((t <= 1e+178) || !(t <= 1.25e+220)) {
		tmp = t_3;
	} else {
		tmp = (b * c) - (x * (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.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = j * (k * (-27.0d0))
    t_2 = (b * c) - (27.0d0 * (j * k))
    t_3 = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
    if (t <= (-7.6d+98)) then
        tmp = t_3
    else if (t <= 5.8d-254) then
        tmp = t_2
    else if (t <= 1.7d-162) then
        tmp = t_1 + ((-4.0d0) * (x * i))
    else if (t <= 1.52d-33) then
        tmp = t_2
    else if (t <= 5.5d-6) then
        tmp = (t * (a * (-4.0d0))) - (4.0d0 * (x * i))
    else if (t <= 1.35d+36) then
        tmp = a * (((-27.0d0) * ((j * k) / a)) + (t * (-4.0d0)))
    else if (t <= 3d+56) then
        tmp = (b * c) + t_1
    else if ((t <= 1d+178) .or. (.not. (t <= 1.25d+220))) then
        tmp = t_3
    else
        tmp = (b * c) - (x * (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;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = j * (k * -27.0);
	double t_2 = (b * c) - (27.0 * (j * k));
	double t_3 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
	double tmp;
	if (t <= -7.6e+98) {
		tmp = t_3;
	} else if (t <= 5.8e-254) {
		tmp = t_2;
	} else if (t <= 1.7e-162) {
		tmp = t_1 + (-4.0 * (x * i));
	} else if (t <= 1.52e-33) {
		tmp = t_2;
	} else if (t <= 5.5e-6) {
		tmp = (t * (a * -4.0)) - (4.0 * (x * i));
	} else if (t <= 1.35e+36) {
		tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
	} else if (t <= 3e+56) {
		tmp = (b * c) + t_1;
	} else if ((t <= 1e+178) || !(t <= 1.25e+220)) {
		tmp = t_3;
	} else {
		tmp = (b * c) - (x * (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])
def code(x, y, z, t, a, b, c, i, j, k):
	t_1 = j * (k * -27.0)
	t_2 = (b * c) - (27.0 * (j * k))
	t_3 = t * ((18.0 * (x * (y * z))) - (a * 4.0))
	tmp = 0
	if t <= -7.6e+98:
		tmp = t_3
	elif t <= 5.8e-254:
		tmp = t_2
	elif t <= 1.7e-162:
		tmp = t_1 + (-4.0 * (x * i))
	elif t <= 1.52e-33:
		tmp = t_2
	elif t <= 5.5e-6:
		tmp = (t * (a * -4.0)) - (4.0 * (x * i))
	elif t <= 1.35e+36:
		tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0))
	elif t <= 3e+56:
		tmp = (b * c) + t_1
	elif (t <= 1e+178) or not (t <= 1.25e+220):
		tmp = t_3
	else:
		tmp = (b * c) - (x * (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])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(j * Float64(k * -27.0))
	t_2 = Float64(Float64(b * c) - Float64(27.0 * Float64(j * k)))
	t_3 = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0)))
	tmp = 0.0
	if (t <= -7.6e+98)
		tmp = t_3;
	elseif (t <= 5.8e-254)
		tmp = t_2;
	elseif (t <= 1.7e-162)
		tmp = Float64(t_1 + Float64(-4.0 * Float64(x * i)));
	elseif (t <= 1.52e-33)
		tmp = t_2;
	elseif (t <= 5.5e-6)
		tmp = Float64(Float64(t * Float64(a * -4.0)) - Float64(4.0 * Float64(x * i)));
	elseif (t <= 1.35e+36)
		tmp = Float64(a * Float64(Float64(-27.0 * Float64(Float64(j * k) / a)) + Float64(t * -4.0)));
	elseif (t <= 3e+56)
		tmp = Float64(Float64(b * c) + t_1);
	elseif ((t <= 1e+178) || !(t <= 1.25e+220))
		tmp = t_3;
	else
		tmp = Float64(Float64(b * c) - Float64(x * 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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	t_1 = j * (k * -27.0);
	t_2 = (b * c) - (27.0 * (j * k));
	t_3 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
	tmp = 0.0;
	if (t <= -7.6e+98)
		tmp = t_3;
	elseif (t <= 5.8e-254)
		tmp = t_2;
	elseif (t <= 1.7e-162)
		tmp = t_1 + (-4.0 * (x * i));
	elseif (t <= 1.52e-33)
		tmp = t_2;
	elseif (t <= 5.5e-6)
		tmp = (t * (a * -4.0)) - (4.0 * (x * i));
	elseif (t <= 1.35e+36)
		tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
	elseif (t <= 3e+56)
		tmp = (b * c) + t_1;
	elseif ((t <= 1e+178) || ~((t <= 1.25e+220)))
		tmp = t_3;
	else
		tmp = (b * c) - (x * (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.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * c), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.6e+98], t$95$3, If[LessEqual[t, 5.8e-254], t$95$2, If[LessEqual[t, 1.7e-162], N[(t$95$1 + N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.52e-33], t$95$2, If[LessEqual[t, 5.5e-6], N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e+36], N[(a * N[(N[(-27.0 * N[(N[(j * k), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] + N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e+56], N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision], If[Or[LessEqual[t, 1e+178], N[Not[LessEqual[t, 1.25e+220]], $MachinePrecision]], t$95$3, N[(N[(b * c), $MachinePrecision] - N[(x * 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])\\
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := b \cdot c - 27 \cdot \left(j \cdot k\right)\\
t_3 := t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -7.6 \cdot 10^{+98}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;t \leq 5.8 \cdot 10^{-254}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t \leq 1.7 \cdot 10^{-162}:\\
\;\;\;\;t\_1 + -4 \cdot \left(x \cdot i\right)\\

\mathbf{elif}\;t \leq 1.52 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t \leq 5.5 \cdot 10^{-6}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right) - 4 \cdot \left(x \cdot i\right)\\

\mathbf{elif}\;t \leq 1.35 \cdot 10^{+36}:\\
\;\;\;\;a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + t \cdot -4\right)\\

\mathbf{elif}\;t \leq 3 \cdot 10^{+56}:\\
\;\;\;\;b \cdot c + t\_1\\

\mathbf{elif}\;t \leq 10^{+178} \lor \neg \left(t \leq 1.25 \cdot 10^{+220}\right):\\
\;\;\;\;t\_3\\

\mathbf{else}:\\
\;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if t < -7.5999999999999998e98 or 3.00000000000000006e56 < t < 1.0000000000000001e178 or 1.2500000000000001e220 < t

    1. Initial program 80.5%

      \[\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 \]
    2. Simplified81.0%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around inf 74.8%

      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]

    if -7.5999999999999998e98 < t < 5.7999999999999999e-254 or 1.7e-162 < t < 1.52e-33

    1. Initial program 89.4%

      \[\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 \]
    2. Simplified89.5%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 81.3%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
    5. Taylor expanded in i around 0 71.2%

      \[\leadsto \color{blue}{b \cdot c - 27 \cdot \left(j \cdot k\right)} \]

    if 5.7999999999999999e-254 < t < 1.7e-162

    1. Initial program 81.0%

      \[\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 \]
    2. Simplified77.2%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in i around inf 66.6%

      \[\leadsto \color{blue}{-4 \cdot \left(i \cdot x\right)} + j \cdot \left(k \cdot -27\right) \]

    if 1.52e-33 < t < 5.4999999999999999e-6

    1. Initial program 100.0%

      \[\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 \]
    2. Simplified100.0%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in j around 0 100.0%

      \[\leadsto \color{blue}{\left(b \cdot c + t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)\right) - 4 \cdot \left(i \cdot x\right)} \]
    5. Taylor expanded in a around inf 95.7%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right)} - 4 \cdot \left(i \cdot x\right) \]
    6. Step-by-step derivation
      1. *-commutative95.7%

        \[\leadsto \color{blue}{\left(a \cdot t\right) \cdot -4} - 4 \cdot \left(i \cdot x\right) \]
      2. *-commutative95.7%

        \[\leadsto \color{blue}{\left(t \cdot a\right)} \cdot -4 - 4 \cdot \left(i \cdot x\right) \]
      3. associate-*r*95.7%

        \[\leadsto \color{blue}{t \cdot \left(a \cdot -4\right)} - 4 \cdot \left(i \cdot x\right) \]
    7. Simplified95.7%

      \[\leadsto \color{blue}{t \cdot \left(a \cdot -4\right)} - 4 \cdot \left(i \cdot x\right) \]

    if 5.4999999999999999e-6 < t < 1.35e36

    1. Initial program 100.0%

      \[\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 \]
    2. Simplified100.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 72.4%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right)} + j \cdot \left(k \cdot -27\right) \]
    5. Step-by-step derivation
      1. metadata-eval72.4%

        \[\leadsto \color{blue}{\left(-4\right)} \cdot \left(a \cdot t\right) + j \cdot \left(k \cdot -27\right) \]
      2. distribute-lft-neg-in72.4%

        \[\leadsto \color{blue}{\left(-4 \cdot \left(a \cdot t\right)\right)} + j \cdot \left(k \cdot -27\right) \]
      3. *-commutative72.4%

        \[\leadsto \left(-4 \cdot \color{blue}{\left(t \cdot a\right)}\right) + j \cdot \left(k \cdot -27\right) \]
      4. associate-*l*72.4%

        \[\leadsto \left(-\color{blue}{\left(4 \cdot t\right) \cdot a}\right) + j \cdot \left(k \cdot -27\right) \]
      5. distribute-lft-neg-in72.4%

        \[\leadsto \color{blue}{\left(-4 \cdot t\right) \cdot a} + j \cdot \left(k \cdot -27\right) \]
      6. distribute-lft-neg-in72.4%

        \[\leadsto \color{blue}{\left(\left(-4\right) \cdot t\right)} \cdot a + j \cdot \left(k \cdot -27\right) \]
      7. metadata-eval72.4%

        \[\leadsto \left(\color{blue}{-4} \cdot t\right) \cdot a + j \cdot \left(k \cdot -27\right) \]
    6. Simplified72.4%

      \[\leadsto \color{blue}{\left(-4 \cdot t\right) \cdot a} + j \cdot \left(k \cdot -27\right) \]
    7. Taylor expanded in a around inf 72.8%

      \[\leadsto \color{blue}{a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + -4 \cdot t\right)} \]

    if 1.35e36 < t < 3.00000000000000006e56

    1. Initial program 83.3%

      \[\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 \]
    2. Simplified83.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in b around inf 83.3%

      \[\leadsto \color{blue}{b \cdot c} + j \cdot \left(k \cdot -27\right) \]

    if 1.0000000000000001e178 < t < 1.2500000000000001e220

    1. Initial program 80.0%

      \[\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 \]
    2. Simplified80.0%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 90.0%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
    5. Taylor expanded in i around inf 81.2%

      \[\leadsto b \cdot c - \color{blue}{4 \cdot \left(i \cdot x\right)} \]
    6. Step-by-step derivation
      1. associate-*r*81.2%

        \[\leadsto b \cdot c - \color{blue}{\left(4 \cdot i\right) \cdot x} \]
      2. *-commutative81.2%

        \[\leadsto b \cdot c - \color{blue}{x \cdot \left(4 \cdot i\right)} \]
    7. Simplified81.2%

      \[\leadsto b \cdot c - \color{blue}{x \cdot \left(4 \cdot i\right)} \]
  3. Recombined 7 regimes into one program.
  4. Final simplification73.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -7.6 \cdot 10^{+98}:\\ \;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \mathbf{elif}\;t \leq 5.8 \cdot 10^{-254}:\\ \;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\ \mathbf{elif}\;t \leq 1.7 \cdot 10^{-162}:\\ \;\;\;\;j \cdot \left(k \cdot -27\right) + -4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;t \leq 1.52 \cdot 10^{-33}:\\ \;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\ \mathbf{elif}\;t \leq 5.5 \cdot 10^{-6}:\\ \;\;\;\;t \cdot \left(a \cdot -4\right) - 4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;t \leq 1.35 \cdot 10^{+36}:\\ \;\;\;\;a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + t \cdot -4\right)\\ \mathbf{elif}\;t \leq 3 \cdot 10^{+56}:\\ \;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\ \mathbf{elif}\;t \leq 10^{+178} \lor \neg \left(t \leq 1.25 \cdot 10^{+220}\right):\\ \;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 56.6% accurate, 0.5× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := j \cdot \left(k \cdot -27\right)\\ t_2 := b \cdot c - 27 \cdot \left(j \cdot k\right)\\ t_3 := t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \mathbf{if}\;t \leq -6.2 \cdot 10^{+94}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t \leq 6.8 \cdot 10^{-253}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq 2.6 \cdot 10^{-160}:\\ \;\;\;\;t\_1 + -4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;t \leq 3.7 \cdot 10^{-33}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq 9 \cdot 10^{-8}:\\ \;\;\;\;t \cdot \left(a \cdot -4\right) - 4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;t \leq 2.4 \cdot 10^{+36}:\\ \;\;\;\;a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + t \cdot -4\right)\\ \mathbf{elif}\;t \leq 1.05 \cdot 10^{+59}:\\ \;\;\;\;b \cdot c + t\_1\\ \mathbf{elif}\;t \leq 10^{+178}:\\ \;\;\;\;t \cdot \left(z \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)\\ \mathbf{elif}\;t \leq 1.25 \cdot 10^{+220}:\\ \;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;t\_3\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1 (* j (* k -27.0)))
        (t_2 (- (* b c) (* 27.0 (* j k))))
        (t_3 (* t (- (* 18.0 (* x (* y z))) (* a 4.0)))))
   (if (<= t -6.2e+94)
     t_3
     (if (<= t 6.8e-253)
       t_2
       (if (<= t 2.6e-160)
         (+ t_1 (* -4.0 (* x i)))
         (if (<= t 3.7e-33)
           t_2
           (if (<= t 9e-8)
             (- (* t (* a -4.0)) (* 4.0 (* x i)))
             (if (<= t 2.4e+36)
               (* a (+ (* -27.0 (/ (* j k) a)) (* t -4.0)))
               (if (<= t 1.05e+59)
                 (+ (* b c) t_1)
                 (if (<= t 1e+178)
                   (* t (* z (+ (* -4.0 (/ a z)) (* 18.0 (* x y)))))
                   (if (<= t 1.25e+220)
                     (- (* b c) (* x (* 4.0 i)))
                     t_3)))))))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = j * (k * -27.0);
	double t_2 = (b * c) - (27.0 * (j * k));
	double t_3 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
	double tmp;
	if (t <= -6.2e+94) {
		tmp = t_3;
	} else if (t <= 6.8e-253) {
		tmp = t_2;
	} else if (t <= 2.6e-160) {
		tmp = t_1 + (-4.0 * (x * i));
	} else if (t <= 3.7e-33) {
		tmp = t_2;
	} else if (t <= 9e-8) {
		tmp = (t * (a * -4.0)) - (4.0 * (x * i));
	} else if (t <= 2.4e+36) {
		tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
	} else if (t <= 1.05e+59) {
		tmp = (b * c) + t_1;
	} else if (t <= 1e+178) {
		tmp = t * (z * ((-4.0 * (a / z)) + (18.0 * (x * y))));
	} else if (t <= 1.25e+220) {
		tmp = (b * c) - (x * (4.0 * i));
	} else {
		tmp = t_3;
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = j * (k * (-27.0d0))
    t_2 = (b * c) - (27.0d0 * (j * k))
    t_3 = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
    if (t <= (-6.2d+94)) then
        tmp = t_3
    else if (t <= 6.8d-253) then
        tmp = t_2
    else if (t <= 2.6d-160) then
        tmp = t_1 + ((-4.0d0) * (x * i))
    else if (t <= 3.7d-33) then
        tmp = t_2
    else if (t <= 9d-8) then
        tmp = (t * (a * (-4.0d0))) - (4.0d0 * (x * i))
    else if (t <= 2.4d+36) then
        tmp = a * (((-27.0d0) * ((j * k) / a)) + (t * (-4.0d0)))
    else if (t <= 1.05d+59) then
        tmp = (b * c) + t_1
    else if (t <= 1d+178) then
        tmp = t * (z * (((-4.0d0) * (a / z)) + (18.0d0 * (x * y))))
    else if (t <= 1.25d+220) then
        tmp = (b * c) - (x * (4.0d0 * i))
    else
        tmp = t_3
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = j * (k * -27.0);
	double t_2 = (b * c) - (27.0 * (j * k));
	double t_3 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
	double tmp;
	if (t <= -6.2e+94) {
		tmp = t_3;
	} else if (t <= 6.8e-253) {
		tmp = t_2;
	} else if (t <= 2.6e-160) {
		tmp = t_1 + (-4.0 * (x * i));
	} else if (t <= 3.7e-33) {
		tmp = t_2;
	} else if (t <= 9e-8) {
		tmp = (t * (a * -4.0)) - (4.0 * (x * i));
	} else if (t <= 2.4e+36) {
		tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
	} else if (t <= 1.05e+59) {
		tmp = (b * c) + t_1;
	} else if (t <= 1e+178) {
		tmp = t * (z * ((-4.0 * (a / z)) + (18.0 * (x * y))));
	} else if (t <= 1.25e+220) {
		tmp = (b * c) - (x * (4.0 * i));
	} else {
		tmp = t_3;
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	t_1 = j * (k * -27.0)
	t_2 = (b * c) - (27.0 * (j * k))
	t_3 = t * ((18.0 * (x * (y * z))) - (a * 4.0))
	tmp = 0
	if t <= -6.2e+94:
		tmp = t_3
	elif t <= 6.8e-253:
		tmp = t_2
	elif t <= 2.6e-160:
		tmp = t_1 + (-4.0 * (x * i))
	elif t <= 3.7e-33:
		tmp = t_2
	elif t <= 9e-8:
		tmp = (t * (a * -4.0)) - (4.0 * (x * i))
	elif t <= 2.4e+36:
		tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0))
	elif t <= 1.05e+59:
		tmp = (b * c) + t_1
	elif t <= 1e+178:
		tmp = t * (z * ((-4.0 * (a / z)) + (18.0 * (x * y))))
	elif t <= 1.25e+220:
		tmp = (b * c) - (x * (4.0 * i))
	else:
		tmp = t_3
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(j * Float64(k * -27.0))
	t_2 = Float64(Float64(b * c) - Float64(27.0 * Float64(j * k)))
	t_3 = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0)))
	tmp = 0.0
	if (t <= -6.2e+94)
		tmp = t_3;
	elseif (t <= 6.8e-253)
		tmp = t_2;
	elseif (t <= 2.6e-160)
		tmp = Float64(t_1 + Float64(-4.0 * Float64(x * i)));
	elseif (t <= 3.7e-33)
		tmp = t_2;
	elseif (t <= 9e-8)
		tmp = Float64(Float64(t * Float64(a * -4.0)) - Float64(4.0 * Float64(x * i)));
	elseif (t <= 2.4e+36)
		tmp = Float64(a * Float64(Float64(-27.0 * Float64(Float64(j * k) / a)) + Float64(t * -4.0)));
	elseif (t <= 1.05e+59)
		tmp = Float64(Float64(b * c) + t_1);
	elseif (t <= 1e+178)
		tmp = Float64(t * Float64(z * Float64(Float64(-4.0 * Float64(a / z)) + Float64(18.0 * Float64(x * y)))));
	elseif (t <= 1.25e+220)
		tmp = Float64(Float64(b * c) - Float64(x * Float64(4.0 * i)));
	else
		tmp = t_3;
	end
	return tmp
end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	t_1 = j * (k * -27.0);
	t_2 = (b * c) - (27.0 * (j * k));
	t_3 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
	tmp = 0.0;
	if (t <= -6.2e+94)
		tmp = t_3;
	elseif (t <= 6.8e-253)
		tmp = t_2;
	elseif (t <= 2.6e-160)
		tmp = t_1 + (-4.0 * (x * i));
	elseif (t <= 3.7e-33)
		tmp = t_2;
	elseif (t <= 9e-8)
		tmp = (t * (a * -4.0)) - (4.0 * (x * i));
	elseif (t <= 2.4e+36)
		tmp = a * ((-27.0 * ((j * k) / a)) + (t * -4.0));
	elseif (t <= 1.05e+59)
		tmp = (b * c) + t_1;
	elseif (t <= 1e+178)
		tmp = t * (z * ((-4.0 * (a / z)) + (18.0 * (x * y))));
	elseif (t <= 1.25e+220)
		tmp = (b * c) - (x * (4.0 * i));
	else
		tmp = t_3;
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * c), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.2e+94], t$95$3, If[LessEqual[t, 6.8e-253], t$95$2, If[LessEqual[t, 2.6e-160], N[(t$95$1 + N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.7e-33], t$95$2, If[LessEqual[t, 9e-8], N[(N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e+36], N[(a * N[(N[(-27.0 * N[(N[(j * k), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] + N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e+59], N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[t, 1e+178], N[(t * N[(z * N[(N[(-4.0 * N[(a / z), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.25e+220], N[(N[(b * c), $MachinePrecision] - N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := b \cdot c - 27 \cdot \left(j \cdot k\right)\\
t_3 := t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -6.2 \cdot 10^{+94}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;t \leq 6.8 \cdot 10^{-253}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t \leq 2.6 \cdot 10^{-160}:\\
\;\;\;\;t\_1 + -4 \cdot \left(x \cdot i\right)\\

\mathbf{elif}\;t \leq 3.7 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t \leq 9 \cdot 10^{-8}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right) - 4 \cdot \left(x \cdot i\right)\\

\mathbf{elif}\;t \leq 2.4 \cdot 10^{+36}:\\
\;\;\;\;a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + t \cdot -4\right)\\

\mathbf{elif}\;t \leq 1.05 \cdot 10^{+59}:\\
\;\;\;\;b \cdot c + t\_1\\

\mathbf{elif}\;t \leq 10^{+178}:\\
\;\;\;\;t \cdot \left(z \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)\\

\mathbf{elif}\;t \leq 1.25 \cdot 10^{+220}:\\
\;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\

\mathbf{else}:\\
\;\;\;\;t\_3\\


\end{array}
\end{array}
Derivation
  1. Split input into 8 regimes
  2. if t < -6.19999999999999983e94 or 1.2500000000000001e220 < t

    1. Initial program 78.7%

      \[\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 \]
    2. Simplified83.1%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around inf 78.1%

      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]

    if -6.19999999999999983e94 < t < 6.79999999999999971e-253 or 2.60000000000000003e-160 < t < 3.70000000000000014e-33

    1. Initial program 89.4%

      \[\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 \]
    2. Simplified89.5%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 81.3%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
    5. Taylor expanded in i around 0 71.2%

      \[\leadsto \color{blue}{b \cdot c - 27 \cdot \left(j \cdot k\right)} \]

    if 6.79999999999999971e-253 < t < 2.60000000000000003e-160

    1. Initial program 81.0%

      \[\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 \]
    2. Simplified77.2%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in i around inf 66.6%

      \[\leadsto \color{blue}{-4 \cdot \left(i \cdot x\right)} + j \cdot \left(k \cdot -27\right) \]

    if 3.70000000000000014e-33 < t < 8.99999999999999986e-8

    1. Initial program 100.0%

      \[\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 \]
    2. Simplified100.0%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in j around 0 100.0%

      \[\leadsto \color{blue}{\left(b \cdot c + t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)\right) - 4 \cdot \left(i \cdot x\right)} \]
    5. Taylor expanded in a around inf 95.7%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right)} - 4 \cdot \left(i \cdot x\right) \]
    6. Step-by-step derivation
      1. *-commutative95.7%

        \[\leadsto \color{blue}{\left(a \cdot t\right) \cdot -4} - 4 \cdot \left(i \cdot x\right) \]
      2. *-commutative95.7%

        \[\leadsto \color{blue}{\left(t \cdot a\right)} \cdot -4 - 4 \cdot \left(i \cdot x\right) \]
      3. associate-*r*95.7%

        \[\leadsto \color{blue}{t \cdot \left(a \cdot -4\right)} - 4 \cdot \left(i \cdot x\right) \]
    7. Simplified95.7%

      \[\leadsto \color{blue}{t \cdot \left(a \cdot -4\right)} - 4 \cdot \left(i \cdot x\right) \]

    if 8.99999999999999986e-8 < t < 2.39999999999999992e36

    1. Initial program 100.0%

      \[\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 \]
    2. Simplified100.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 72.4%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right)} + j \cdot \left(k \cdot -27\right) \]
    5. Step-by-step derivation
      1. metadata-eval72.4%

        \[\leadsto \color{blue}{\left(-4\right)} \cdot \left(a \cdot t\right) + j \cdot \left(k \cdot -27\right) \]
      2. distribute-lft-neg-in72.4%

        \[\leadsto \color{blue}{\left(-4 \cdot \left(a \cdot t\right)\right)} + j \cdot \left(k \cdot -27\right) \]
      3. *-commutative72.4%

        \[\leadsto \left(-4 \cdot \color{blue}{\left(t \cdot a\right)}\right) + j \cdot \left(k \cdot -27\right) \]
      4. associate-*l*72.4%

        \[\leadsto \left(-\color{blue}{\left(4 \cdot t\right) \cdot a}\right) + j \cdot \left(k \cdot -27\right) \]
      5. distribute-lft-neg-in72.4%

        \[\leadsto \color{blue}{\left(-4 \cdot t\right) \cdot a} + j \cdot \left(k \cdot -27\right) \]
      6. distribute-lft-neg-in72.4%

        \[\leadsto \color{blue}{\left(\left(-4\right) \cdot t\right)} \cdot a + j \cdot \left(k \cdot -27\right) \]
      7. metadata-eval72.4%

        \[\leadsto \left(\color{blue}{-4} \cdot t\right) \cdot a + j \cdot \left(k \cdot -27\right) \]
    6. Simplified72.4%

      \[\leadsto \color{blue}{\left(-4 \cdot t\right) \cdot a} + j \cdot \left(k \cdot -27\right) \]
    7. Taylor expanded in a around inf 72.8%

      \[\leadsto \color{blue}{a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + -4 \cdot t\right)} \]

    if 2.39999999999999992e36 < t < 1.04999999999999992e59

    1. Initial program 83.3%

      \[\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 \]
    2. Simplified83.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in b around inf 83.3%

      \[\leadsto \color{blue}{b \cdot c} + j \cdot \left(k \cdot -27\right) \]

    if 1.04999999999999992e59 < t < 1.0000000000000001e178

    1. Initial program 88.0%

      \[\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 \]
    2. Simplified72.2%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around inf 61.0%

      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]
    5. Taylor expanded in z around inf 71.3%

      \[\leadsto t \cdot \color{blue}{\left(z \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)} \]

    if 1.0000000000000001e178 < t < 1.2500000000000001e220

    1. Initial program 80.0%

      \[\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 \]
    2. Simplified80.0%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 90.0%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
    5. Taylor expanded in i around inf 81.2%

      \[\leadsto b \cdot c - \color{blue}{4 \cdot \left(i \cdot x\right)} \]
    6. Step-by-step derivation
      1. associate-*r*81.2%

        \[\leadsto b \cdot c - \color{blue}{\left(4 \cdot i\right) \cdot x} \]
      2. *-commutative81.2%

        \[\leadsto b \cdot c - \color{blue}{x \cdot \left(4 \cdot i\right)} \]
    7. Simplified81.2%

      \[\leadsto b \cdot c - \color{blue}{x \cdot \left(4 \cdot i\right)} \]
  3. Recombined 8 regimes into one program.
  4. Final simplification74.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -6.2 \cdot 10^{+94}:\\ \;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \mathbf{elif}\;t \leq 6.8 \cdot 10^{-253}:\\ \;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\ \mathbf{elif}\;t \leq 2.6 \cdot 10^{-160}:\\ \;\;\;\;j \cdot \left(k \cdot -27\right) + -4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;t \leq 3.7 \cdot 10^{-33}:\\ \;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\ \mathbf{elif}\;t \leq 9 \cdot 10^{-8}:\\ \;\;\;\;t \cdot \left(a \cdot -4\right) - 4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;t \leq 2.4 \cdot 10^{+36}:\\ \;\;\;\;a \cdot \left(-27 \cdot \frac{j \cdot k}{a} + t \cdot -4\right)\\ \mathbf{elif}\;t \leq 1.05 \cdot 10^{+59}:\\ \;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\ \mathbf{elif}\;t \leq 10^{+178}:\\ \;\;\;\;t \cdot \left(z \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)\\ \mathbf{elif}\;t \leq 1.25 \cdot 10^{+220}:\\ \;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 56.2% accurate, 0.6× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := x \cdot \left(y \cdot z\right)\\ t_2 := j \cdot \left(k \cdot -27\right)\\ t_3 := b \cdot c - x \cdot \left(4 \cdot i\right)\\ t_4 := t \cdot \left(18 \cdot t\_1 - a \cdot 4\right)\\ \mathbf{if}\;t \leq -7.2 \cdot 10^{+103}:\\ \;\;\;\;t\_4\\ \mathbf{elif}\;t \leq -4000000000000:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t \leq -7.6 \cdot 10^{-8}:\\ \;\;\;\;18 \cdot \left(t \cdot t\_1\right) + t\_2\\ \mathbf{elif}\;t \leq 9 \cdot 10^{-253}:\\ \;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\ \mathbf{elif}\;t \leq 1.4 \cdot 10^{-23}:\\ \;\;\;\;t\_2 + -4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;t \leq 1.05 \cdot 10^{+59}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\ \mathbf{elif}\;t \leq 10^{+178}:\\ \;\;\;\;t \cdot \left(z \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)\\ \mathbf{elif}\;t \leq 1.25 \cdot 10^{+220}:\\ \;\;\;\;t\_3\\ \mathbf{else}:\\ \;\;\;\;t\_4\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1 (* x (* y z)))
        (t_2 (* j (* k -27.0)))
        (t_3 (- (* b c) (* x (* 4.0 i))))
        (t_4 (* t (- (* 18.0 t_1) (* a 4.0)))))
   (if (<= t -7.2e+103)
     t_4
     (if (<= t -4000000000000.0)
       t_3
       (if (<= t -7.6e-8)
         (+ (* 18.0 (* t t_1)) t_2)
         (if (<= t 9e-253)
           (- (* b c) (* 27.0 (* j k)))
           (if (<= t 1.4e-23)
             (+ t_2 (* -4.0 (* x i)))
             (if (<= t 1.05e+59)
               (+ (* b c) (* -4.0 (* t a)))
               (if (<= t 1e+178)
                 (* t (* z (+ (* -4.0 (/ a z)) (* 18.0 (* x y)))))
                 (if (<= t 1.25e+220) t_3 t_4))))))))))
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);
	double t_2 = j * (k * -27.0);
	double t_3 = (b * c) - (x * (4.0 * i));
	double t_4 = t * ((18.0 * t_1) - (a * 4.0));
	double tmp;
	if (t <= -7.2e+103) {
		tmp = t_4;
	} else if (t <= -4000000000000.0) {
		tmp = t_3;
	} else if (t <= -7.6e-8) {
		tmp = (18.0 * (t * t_1)) + t_2;
	} else if (t <= 9e-253) {
		tmp = (b * c) - (27.0 * (j * k));
	} else if (t <= 1.4e-23) {
		tmp = t_2 + (-4.0 * (x * i));
	} else if (t <= 1.05e+59) {
		tmp = (b * c) + (-4.0 * (t * a));
	} else if (t <= 1e+178) {
		tmp = t * (z * ((-4.0 * (a / z)) + (18.0 * (x * y))));
	} else if (t <= 1.25e+220) {
		tmp = t_3;
	} else {
		tmp = t_4;
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: t_4
    real(8) :: tmp
    t_1 = x * (y * z)
    t_2 = j * (k * (-27.0d0))
    t_3 = (b * c) - (x * (4.0d0 * i))
    t_4 = t * ((18.0d0 * t_1) - (a * 4.0d0))
    if (t <= (-7.2d+103)) then
        tmp = t_4
    else if (t <= (-4000000000000.0d0)) then
        tmp = t_3
    else if (t <= (-7.6d-8)) then
        tmp = (18.0d0 * (t * t_1)) + t_2
    else if (t <= 9d-253) then
        tmp = (b * c) - (27.0d0 * (j * k))
    else if (t <= 1.4d-23) then
        tmp = t_2 + ((-4.0d0) * (x * i))
    else if (t <= 1.05d+59) then
        tmp = (b * c) + ((-4.0d0) * (t * a))
    else if (t <= 1d+178) then
        tmp = t * (z * (((-4.0d0) * (a / z)) + (18.0d0 * (x * y))))
    else if (t <= 1.25d+220) then
        tmp = t_3
    else
        tmp = t_4
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
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);
	double t_2 = j * (k * -27.0);
	double t_3 = (b * c) - (x * (4.0 * i));
	double t_4 = t * ((18.0 * t_1) - (a * 4.0));
	double tmp;
	if (t <= -7.2e+103) {
		tmp = t_4;
	} else if (t <= -4000000000000.0) {
		tmp = t_3;
	} else if (t <= -7.6e-8) {
		tmp = (18.0 * (t * t_1)) + t_2;
	} else if (t <= 9e-253) {
		tmp = (b * c) - (27.0 * (j * k));
	} else if (t <= 1.4e-23) {
		tmp = t_2 + (-4.0 * (x * i));
	} else if (t <= 1.05e+59) {
		tmp = (b * c) + (-4.0 * (t * a));
	} else if (t <= 1e+178) {
		tmp = t * (z * ((-4.0 * (a / z)) + (18.0 * (x * y))));
	} else if (t <= 1.25e+220) {
		tmp = t_3;
	} else {
		tmp = t_4;
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	t_1 = x * (y * z)
	t_2 = j * (k * -27.0)
	t_3 = (b * c) - (x * (4.0 * i))
	t_4 = t * ((18.0 * t_1) - (a * 4.0))
	tmp = 0
	if t <= -7.2e+103:
		tmp = t_4
	elif t <= -4000000000000.0:
		tmp = t_3
	elif t <= -7.6e-8:
		tmp = (18.0 * (t * t_1)) + t_2
	elif t <= 9e-253:
		tmp = (b * c) - (27.0 * (j * k))
	elif t <= 1.4e-23:
		tmp = t_2 + (-4.0 * (x * i))
	elif t <= 1.05e+59:
		tmp = (b * c) + (-4.0 * (t * a))
	elif t <= 1e+178:
		tmp = t * (z * ((-4.0 * (a / z)) + (18.0 * (x * y))))
	elif t <= 1.25e+220:
		tmp = t_3
	else:
		tmp = t_4
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(x * Float64(y * z))
	t_2 = Float64(j * Float64(k * -27.0))
	t_3 = Float64(Float64(b * c) - Float64(x * Float64(4.0 * i)))
	t_4 = Float64(t * Float64(Float64(18.0 * t_1) - Float64(a * 4.0)))
	tmp = 0.0
	if (t <= -7.2e+103)
		tmp = t_4;
	elseif (t <= -4000000000000.0)
		tmp = t_3;
	elseif (t <= -7.6e-8)
		tmp = Float64(Float64(18.0 * Float64(t * t_1)) + t_2);
	elseif (t <= 9e-253)
		tmp = Float64(Float64(b * c) - Float64(27.0 * Float64(j * k)));
	elseif (t <= 1.4e-23)
		tmp = Float64(t_2 + Float64(-4.0 * Float64(x * i)));
	elseif (t <= 1.05e+59)
		tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a)));
	elseif (t <= 1e+178)
		tmp = Float64(t * Float64(z * Float64(Float64(-4.0 * Float64(a / z)) + Float64(18.0 * Float64(x * y)))));
	elseif (t <= 1.25e+220)
		tmp = t_3;
	else
		tmp = t_4;
	end
	return tmp
end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	t_1 = x * (y * z);
	t_2 = j * (k * -27.0);
	t_3 = (b * c) - (x * (4.0 * i));
	t_4 = t * ((18.0 * t_1) - (a * 4.0));
	tmp = 0.0;
	if (t <= -7.2e+103)
		tmp = t_4;
	elseif (t <= -4000000000000.0)
		tmp = t_3;
	elseif (t <= -7.6e-8)
		tmp = (18.0 * (t * t_1)) + t_2;
	elseif (t <= 9e-253)
		tmp = (b * c) - (27.0 * (j * k));
	elseif (t <= 1.4e-23)
		tmp = t_2 + (-4.0 * (x * i));
	elseif (t <= 1.05e+59)
		tmp = (b * c) + (-4.0 * (t * a));
	elseif (t <= 1e+178)
		tmp = t * (z * ((-4.0 * (a / z)) + (18.0 * (x * y))));
	elseif (t <= 1.25e+220)
		tmp = t_3;
	else
		tmp = t_4;
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b * c), $MachinePrecision] - N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t * N[(N[(18.0 * t$95$1), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.2e+103], t$95$4, If[LessEqual[t, -4000000000000.0], t$95$3, If[LessEqual[t, -7.6e-8], N[(N[(18.0 * N[(t * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[t, 9e-253], N[(N[(b * c), $MachinePrecision] - N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.4e-23], N[(t$95$2 + N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e+59], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e+178], N[(t * N[(z * N[(N[(-4.0 * N[(a / z), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.25e+220], t$95$3, t$95$4]]]]]]]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := j \cdot \left(k \cdot -27\right)\\
t_3 := b \cdot c - x \cdot \left(4 \cdot i\right)\\
t_4 := t \cdot \left(18 \cdot t\_1 - a \cdot 4\right)\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{+103}:\\
\;\;\;\;t\_4\\

\mathbf{elif}\;t \leq -4000000000000:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;t \leq -7.6 \cdot 10^{-8}:\\
\;\;\;\;18 \cdot \left(t \cdot t\_1\right) + t\_2\\

\mathbf{elif}\;t \leq 9 \cdot 10^{-253}:\\
\;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\

\mathbf{elif}\;t \leq 1.4 \cdot 10^{-23}:\\
\;\;\;\;t\_2 + -4 \cdot \left(x \cdot i\right)\\

\mathbf{elif}\;t \leq 1.05 \cdot 10^{+59}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\

\mathbf{elif}\;t \leq 10^{+178}:\\
\;\;\;\;t \cdot \left(z \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)\\

\mathbf{elif}\;t \leq 1.25 \cdot 10^{+220}:\\
\;\;\;\;t\_3\\

\mathbf{else}:\\
\;\;\;\;t\_4\\


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if t < -7.20000000000000033e103 or 1.2500000000000001e220 < t

    1. Initial program 78.4%

      \[\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 \]
    2. Simplified82.9%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around inf 79.2%

      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]

    if -7.20000000000000033e103 < t < -4e12 or 1.0000000000000001e178 < t < 1.2500000000000001e220

    1. Initial program 92.5%

      \[\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 \]
    2. Simplified88.8%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 85.3%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
    5. Taylor expanded in i around inf 78.3%

      \[\leadsto b \cdot c - \color{blue}{4 \cdot \left(i \cdot x\right)} \]
    6. Step-by-step derivation
      1. associate-*r*78.3%

        \[\leadsto b \cdot c - \color{blue}{\left(4 \cdot i\right) \cdot x} \]
      2. *-commutative78.3%

        \[\leadsto b \cdot c - \color{blue}{x \cdot \left(4 \cdot i\right)} \]
    7. Simplified78.3%

      \[\leadsto b \cdot c - \color{blue}{x \cdot \left(4 \cdot i\right)} \]

    if -4e12 < t < -7.60000000000000056e-8

    1. Initial program 100.0%

      \[\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 \]
    2. Simplified99.7%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in y around inf 83.4%

      \[\leadsto \color{blue}{18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)} + j \cdot \left(k \cdot -27\right) \]

    if -7.60000000000000056e-8 < t < 9.00000000000000057e-253

    1. Initial program 87.4%

      \[\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 \]
    2. Simplified90.2%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 82.7%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
    5. Taylor expanded in i around 0 70.5%

      \[\leadsto \color{blue}{b \cdot c - 27 \cdot \left(j \cdot k\right)} \]

    if 9.00000000000000057e-253 < t < 1.3999999999999999e-23

    1. Initial program 84.0%

      \[\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 \]
    2. Simplified80.1%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in i around inf 72.6%

      \[\leadsto \color{blue}{-4 \cdot \left(i \cdot x\right)} + j \cdot \left(k \cdot -27\right) \]

    if 1.3999999999999999e-23 < t < 1.04999999999999992e59

    1. Initial program 93.8%

      \[\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 \]
    2. Simplified93.8%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in x around 0 87.6%

      \[\leadsto \color{blue}{\left(-4 \cdot \left(a \cdot t\right) + b \cdot c\right) - 27 \cdot \left(j \cdot k\right)} \]
    5. Taylor expanded in j around 0 63.5%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right) + b \cdot c} \]

    if 1.04999999999999992e59 < t < 1.0000000000000001e178

    1. Initial program 88.0%

      \[\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 \]
    2. Simplified72.2%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around inf 61.0%

      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]
    5. Taylor expanded in z around inf 71.3%

      \[\leadsto t \cdot \color{blue}{\left(z \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)} \]
  3. Recombined 7 regimes into one program.
  4. Final simplification74.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -7.2 \cdot 10^{+103}:\\ \;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \mathbf{elif}\;t \leq -4000000000000:\\ \;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\ \mathbf{elif}\;t \leq -7.6 \cdot 10^{-8}:\\ \;\;\;\;18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right) + j \cdot \left(k \cdot -27\right)\\ \mathbf{elif}\;t \leq 9 \cdot 10^{-253}:\\ \;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\ \mathbf{elif}\;t \leq 1.4 \cdot 10^{-23}:\\ \;\;\;\;j \cdot \left(k \cdot -27\right) + -4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;t \leq 1.05 \cdot 10^{+59}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\ \mathbf{elif}\;t \leq 10^{+178}:\\ \;\;\;\;t \cdot \left(z \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)\\ \mathbf{elif}\;t \leq 1.25 \cdot 10^{+220}:\\ \;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 53.7% accurate, 0.7× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := j \cdot \left(k \cdot -27\right)\\ t_2 := t\_1 + -4 \cdot \left(x \cdot i\right)\\ t_3 := -4 \cdot \left(t \cdot a\right) + \left(j \cdot k\right) \cdot -27\\ \mathbf{if}\;b \cdot c \leq -1 \cdot 10^{+206}:\\ \;\;\;\;b \cdot c + t\_1\\ \mathbf{elif}\;b \cdot c \leq -10:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{-156}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;b \cdot c \leq 5 \cdot 10^{-249}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;b \cdot c \leq 10^{+62}:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(c + -27 \cdot \left(j \cdot \frac{k}{b}\right)\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1 (* j (* k -27.0)))
        (t_2 (+ t_1 (* -4.0 (* x i))))
        (t_3 (+ (* -4.0 (* t a)) (* (* j k) -27.0))))
   (if (<= (* b c) -1e+206)
     (+ (* b c) t_1)
     (if (<= (* b c) -10.0)
       t_3
       (if (<= (* b c) -1e-156)
         t_2
         (if (<= (* b c) 5e-249)
           t_3
           (if (<= (* b c) 1e+62)
             t_2
             (* b (+ c (* -27.0 (* j (/ k b))))))))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = j * (k * -27.0);
	double t_2 = t_1 + (-4.0 * (x * i));
	double t_3 = (-4.0 * (t * a)) + ((j * k) * -27.0);
	double tmp;
	if ((b * c) <= -1e+206) {
		tmp = (b * c) + t_1;
	} else if ((b * c) <= -10.0) {
		tmp = t_3;
	} else if ((b * c) <= -1e-156) {
		tmp = t_2;
	} else if ((b * c) <= 5e-249) {
		tmp = t_3;
	} else if ((b * c) <= 1e+62) {
		tmp = t_2;
	} else {
		tmp = b * (c + (-27.0 * (j * (k / b))));
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = j * (k * (-27.0d0))
    t_2 = t_1 + ((-4.0d0) * (x * i))
    t_3 = ((-4.0d0) * (t * a)) + ((j * k) * (-27.0d0))
    if ((b * c) <= (-1d+206)) then
        tmp = (b * c) + t_1
    else if ((b * c) <= (-10.0d0)) then
        tmp = t_3
    else if ((b * c) <= (-1d-156)) then
        tmp = t_2
    else if ((b * c) <= 5d-249) then
        tmp = t_3
    else if ((b * c) <= 1d+62) then
        tmp = t_2
    else
        tmp = b * (c + ((-27.0d0) * (j * (k / b))))
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = j * (k * -27.0);
	double t_2 = t_1 + (-4.0 * (x * i));
	double t_3 = (-4.0 * (t * a)) + ((j * k) * -27.0);
	double tmp;
	if ((b * c) <= -1e+206) {
		tmp = (b * c) + t_1;
	} else if ((b * c) <= -10.0) {
		tmp = t_3;
	} else if ((b * c) <= -1e-156) {
		tmp = t_2;
	} else if ((b * c) <= 5e-249) {
		tmp = t_3;
	} else if ((b * c) <= 1e+62) {
		tmp = t_2;
	} else {
		tmp = b * (c + (-27.0 * (j * (k / b))));
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	t_1 = j * (k * -27.0)
	t_2 = t_1 + (-4.0 * (x * i))
	t_3 = (-4.0 * (t * a)) + ((j * k) * -27.0)
	tmp = 0
	if (b * c) <= -1e+206:
		tmp = (b * c) + t_1
	elif (b * c) <= -10.0:
		tmp = t_3
	elif (b * c) <= -1e-156:
		tmp = t_2
	elif (b * c) <= 5e-249:
		tmp = t_3
	elif (b * c) <= 1e+62:
		tmp = t_2
	else:
		tmp = b * (c + (-27.0 * (j * (k / b))))
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(j * Float64(k * -27.0))
	t_2 = Float64(t_1 + Float64(-4.0 * Float64(x * i)))
	t_3 = Float64(Float64(-4.0 * Float64(t * a)) + Float64(Float64(j * k) * -27.0))
	tmp = 0.0
	if (Float64(b * c) <= -1e+206)
		tmp = Float64(Float64(b * c) + t_1);
	elseif (Float64(b * c) <= -10.0)
		tmp = t_3;
	elseif (Float64(b * c) <= -1e-156)
		tmp = t_2;
	elseif (Float64(b * c) <= 5e-249)
		tmp = t_3;
	elseif (Float64(b * c) <= 1e+62)
		tmp = t_2;
	else
		tmp = Float64(b * Float64(c + Float64(-27.0 * Float64(j * Float64(k / b)))));
	end
	return tmp
end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	t_1 = j * (k * -27.0);
	t_2 = t_1 + (-4.0 * (x * i));
	t_3 = (-4.0 * (t * a)) + ((j * k) * -27.0);
	tmp = 0.0;
	if ((b * c) <= -1e+206)
		tmp = (b * c) + t_1;
	elseif ((b * c) <= -10.0)
		tmp = t_3;
	elseif ((b * c) <= -1e-156)
		tmp = t_2;
	elseif ((b * c) <= 5e-249)
		tmp = t_3;
	elseif ((b * c) <= 1e+62)
		tmp = t_2;
	else
		tmp = b * (c + (-27.0 * (j * (k / b))));
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(N[(j * k), $MachinePrecision] * -27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -1e+206], N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -10.0], t$95$3, If[LessEqual[N[(b * c), $MachinePrecision], -1e-156], t$95$2, If[LessEqual[N[(b * c), $MachinePrecision], 5e-249], t$95$3, If[LessEqual[N[(b * c), $MachinePrecision], 1e+62], t$95$2, N[(b * N[(c + N[(-27.0 * N[(j * N[(k / b), $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])\\
\\
\begin{array}{l}
t_1 := j \cdot \left(k \cdot -27\right)\\
t_2 := t\_1 + -4 \cdot \left(x \cdot i\right)\\
t_3 := -4 \cdot \left(t \cdot a\right) + \left(j \cdot k\right) \cdot -27\\
\mathbf{if}\;b \cdot c \leq -1 \cdot 10^{+206}:\\
\;\;\;\;b \cdot c + t\_1\\

\mathbf{elif}\;b \cdot c \leq -10:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{-156}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;b \cdot c \leq 5 \cdot 10^{-249}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;b \cdot c \leq 10^{+62}:\\
\;\;\;\;t\_2\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(c + -27 \cdot \left(j \cdot \frac{k}{b}\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if (*.f64 b c) < -1e206

    1. Initial program 70.0%

      \[\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 \]
    2. Simplified83.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in b around inf 76.7%

      \[\leadsto \color{blue}{b \cdot c} + j \cdot \left(k \cdot -27\right) \]

    if -1e206 < (*.f64 b c) < -10 or -1.00000000000000004e-156 < (*.f64 b c) < 4.9999999999999999e-249

    1. Initial program 88.7%

      \[\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 \]
    2. Simplified86.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 59.5%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right)} + j \cdot \left(k \cdot -27\right) \]
    5. Step-by-step derivation
      1. metadata-eval59.5%

        \[\leadsto \color{blue}{\left(-4\right)} \cdot \left(a \cdot t\right) + j \cdot \left(k \cdot -27\right) \]
      2. distribute-lft-neg-in59.5%

        \[\leadsto \color{blue}{\left(-4 \cdot \left(a \cdot t\right)\right)} + j \cdot \left(k \cdot -27\right) \]
      3. *-commutative59.5%

        \[\leadsto \left(-4 \cdot \color{blue}{\left(t \cdot a\right)}\right) + j \cdot \left(k \cdot -27\right) \]
      4. associate-*l*59.5%

        \[\leadsto \left(-\color{blue}{\left(4 \cdot t\right) \cdot a}\right) + j \cdot \left(k \cdot -27\right) \]
      5. distribute-lft-neg-in59.5%

        \[\leadsto \color{blue}{\left(-4 \cdot t\right) \cdot a} + j \cdot \left(k \cdot -27\right) \]
      6. distribute-lft-neg-in59.5%

        \[\leadsto \color{blue}{\left(\left(-4\right) \cdot t\right)} \cdot a + j \cdot \left(k \cdot -27\right) \]
      7. metadata-eval59.5%

        \[\leadsto \left(\color{blue}{-4} \cdot t\right) \cdot a + j \cdot \left(k \cdot -27\right) \]
    6. Simplified59.5%

      \[\leadsto \color{blue}{\left(-4 \cdot t\right) \cdot a} + j \cdot \left(k \cdot -27\right) \]
    7. Taylor expanded in t around 0 59.6%

      \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right) + -4 \cdot \left(a \cdot t\right)} \]

    if -10 < (*.f64 b c) < -1.00000000000000004e-156 or 4.9999999999999999e-249 < (*.f64 b c) < 1.00000000000000004e62

    1. Initial program 86.1%

      \[\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 \]
    2. Simplified87.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in i around inf 58.7%

      \[\leadsto \color{blue}{-4 \cdot \left(i \cdot x\right)} + j \cdot \left(k \cdot -27\right) \]

    if 1.00000000000000004e62 < (*.f64 b c)

    1. Initial program 87.9%

      \[\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 \]
    2. Simplified89.5%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 79.4%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
    5. Taylor expanded in i around 0 74.4%

      \[\leadsto \color{blue}{b \cdot c - 27 \cdot \left(j \cdot k\right)} \]
    6. Taylor expanded in b around inf 72.8%

      \[\leadsto \color{blue}{b \cdot \left(c + -27 \cdot \frac{j \cdot k}{b}\right)} \]
    7. Step-by-step derivation
      1. *-commutative72.8%

        \[\leadsto b \cdot \left(c + \color{blue}{\frac{j \cdot k}{b} \cdot -27}\right) \]
      2. associate-/l*74.6%

        \[\leadsto b \cdot \left(c + \color{blue}{\left(j \cdot \frac{k}{b}\right)} \cdot -27\right) \]
    8. Simplified74.6%

      \[\leadsto \color{blue}{b \cdot \left(c + \left(j \cdot \frac{k}{b}\right) \cdot -27\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification64.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \cdot c \leq -1 \cdot 10^{+206}:\\ \;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\ \mathbf{elif}\;b \cdot c \leq -10:\\ \;\;\;\;-4 \cdot \left(t \cdot a\right) + \left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;b \cdot c \leq -1 \cdot 10^{-156}:\\ \;\;\;\;j \cdot \left(k \cdot -27\right) + -4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;b \cdot c \leq 5 \cdot 10^{-249}:\\ \;\;\;\;-4 \cdot \left(t \cdot a\right) + \left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;b \cdot c \leq 10^{+62}:\\ \;\;\;\;j \cdot \left(k \cdot -27\right) + -4 \cdot \left(x \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(c + -27 \cdot \left(j \cdot \frac{k}{b}\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 88.8% accurate, 0.8× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} \mathbf{if}\;t \leq -1 \cdot 10^{+34}:\\ \;\;\;\;\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)\\ \mathbf{elif}\;t \leq 1.35 \cdot 10^{+248}:\\ \;\;\;\;\left(\left(b \cdot c + \left(y \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot t\right)\right) - t \cdot \left(a \cdot 4\right)\right)\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(z \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (if (<= t -1e+34)
   (-
    (+ (* b c) (* t (- (* (* x 18.0) (* y z)) (* a 4.0))))
    (+ (* x (* 4.0 i)) (* j (* 27.0 k))))
   (if (<= t 1.35e+248)
     (-
      (-
       (+ (* b c) (- (* y (* (* x 18.0) (* z t))) (* t (* a 4.0))))
       (* (* x 4.0) i))
      (* (* j 27.0) k))
     (* t (* z (+ (* -4.0 (/ a z)) (* 18.0 (* x y))))))))
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 <= -1e+34) {
		tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k)));
	} else if (t <= 1.35e+248) {
		tmp = (((b * c) + ((y * ((x * 18.0) * (z * t))) - (t * (a * 4.0)))) - ((x * 4.0) * i)) - ((j * 27.0) * k);
	} else {
		tmp = t * (z * ((-4.0 * (a / z)) + (18.0 * (x * y))));
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 <= (-1d+34)) then
        tmp = ((b * c) + (t * (((x * 18.0d0) * (y * z)) - (a * 4.0d0)))) - ((x * (4.0d0 * i)) + (j * (27.0d0 * k)))
    else if (t <= 1.35d+248) then
        tmp = (((b * c) + ((y * ((x * 18.0d0) * (z * t))) - (t * (a * 4.0d0)))) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
    else
        tmp = t * (z * (((-4.0d0) * (a / z)) + (18.0d0 * (x * y))))
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
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 <= -1e+34) {
		tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k)));
	} else if (t <= 1.35e+248) {
		tmp = (((b * c) + ((y * ((x * 18.0) * (z * t))) - (t * (a * 4.0)))) - ((x * 4.0) * i)) - ((j * 27.0) * k);
	} else {
		tmp = t * (z * ((-4.0 * (a / z)) + (18.0 * (x * y))));
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	tmp = 0
	if t <= -1e+34:
		tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k)))
	elif t <= 1.35e+248:
		tmp = (((b * c) + ((y * ((x * 18.0) * (z * t))) - (t * (a * 4.0)))) - ((x * 4.0) * i)) - ((j * 27.0) * k)
	else:
		tmp = t * (z * ((-4.0 * (a / z)) + (18.0 * (x * y))))
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0
	if (t <= -1e+34)
		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))));
	elseif (t <= 1.35e+248)
		tmp = Float64(Float64(Float64(Float64(b * c) + Float64(Float64(y * Float64(Float64(x * 18.0) * Float64(z * t))) - Float64(t * Float64(a * 4.0)))) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k));
	else
		tmp = Float64(t * Float64(z * Float64(Float64(-4.0 * Float64(a / z)) + Float64(18.0 * Float64(x * y)))));
	end
	return tmp
end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0;
	if (t <= -1e+34)
		tmp = ((b * c) + (t * (((x * 18.0) * (y * z)) - (a * 4.0)))) - ((x * (4.0 * i)) + (j * (27.0 * k)));
	elseif (t <= 1.35e+248)
		tmp = (((b * c) + ((y * ((x * 18.0) * (z * t))) - (t * (a * 4.0)))) - ((x * 4.0) * i)) - ((j * 27.0) * k);
	else
		tmp = t * (z * ((-4.0 * (a / z)) + (18.0 * (x * y))));
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[t, -1e+34], 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], If[LessEqual[t, 1.35e+248], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(N[(y * N[(N[(x * 18.0), $MachinePrecision] * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], N[(t * N[(z * N[(N[(-4.0 * N[(a / z), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{+34}:\\
\;\;\;\;\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)\\

\mathbf{elif}\;t \leq 1.35 \cdot 10^{+248}:\\
\;\;\;\;\left(\left(b \cdot c + \left(y \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot t\right)\right) - t \cdot \left(a \cdot 4\right)\right)\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\

\mathbf{else}:\\
\;\;\;\;t \cdot \left(z \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -9.99999999999999946e33

    1. Initial program 82.4%

      \[\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 \]
    2. Simplified87.3%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing

    if -9.99999999999999946e33 < t < 1.34999999999999994e248

    1. Initial program 87.9%

      \[\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 \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. pow187.9%

        \[\leadsto \left(\left(\left(\color{blue}{{\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t\right)}^{1}} - \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 \]
      2. associate-*l*89.4%

        \[\leadsto \left(\left(\left({\color{blue}{\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot \left(z \cdot t\right)\right)}}^{1} - \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 \]
      3. *-commutative89.4%

        \[\leadsto \left(\left(\left({\left(\color{blue}{\left(y \cdot \left(x \cdot 18\right)\right)} \cdot \left(z \cdot t\right)\right)}^{1} - \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 \]
    4. Applied egg-rr89.4%

      \[\leadsto \left(\left(\left(\color{blue}{{\left(\left(y \cdot \left(x \cdot 18\right)\right) \cdot \left(z \cdot t\right)\right)}^{1}} - \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 \]
    5. Step-by-step derivation
      1. unpow189.4%

        \[\leadsto \left(\left(\left(\color{blue}{\left(y \cdot \left(x \cdot 18\right)\right) \cdot \left(z \cdot t\right)} - \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 \]
      2. associate-*l*91.7%

        \[\leadsto \left(\left(\left(\color{blue}{y \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot t\right)\right)} - \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 \]
      3. *-commutative91.7%

        \[\leadsto \left(\left(\left(y \cdot \left(\left(x \cdot 18\right) \cdot \color{blue}{\left(t \cdot z\right)}\right) - \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 \]
    6. Simplified91.7%

      \[\leadsto \left(\left(\left(\color{blue}{y \cdot \left(\left(x \cdot 18\right) \cdot \left(t \cdot z\right)\right)} - \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 \]

    if 1.34999999999999994e248 < t

    1. Initial program 66.4%

      \[\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 \]
    2. Simplified66.4%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around inf 99.7%

      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]
    5. Taylor expanded in z around inf 99.9%

      \[\leadsto t \cdot \color{blue}{\left(z \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification91.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1 \cdot 10^{+34}:\\ \;\;\;\;\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)\\ \mathbf{elif}\;t \leq 1.35 \cdot 10^{+248}:\\ \;\;\;\;\left(\left(b \cdot c + \left(y \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot t\right)\right) - t \cdot \left(a \cdot 4\right)\right)\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(z \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 52.4% accurate, 0.8× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := -4 \cdot \left(t \cdot a\right) + \left(j \cdot k\right) \cdot -27\\ \mathbf{if}\;b \cdot c \leq -1 \cdot 10^{+206}:\\ \;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\ \mathbf{elif}\;b \cdot c \leq -2 \cdot 10^{-18}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \cdot c \leq -5 \cdot 10^{-125}:\\ \;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\ \mathbf{elif}\;b \cdot c \leq 2 \cdot 10^{+38}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(c + -27 \cdot \left(j \cdot \frac{k}{b}\right)\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1 (+ (* -4.0 (* t a)) (* (* j k) -27.0))))
   (if (<= (* b c) -1e+206)
     (+ (* b c) (* j (* k -27.0)))
     (if (<= (* b c) -2e-18)
       t_1
       (if (<= (* b c) -5e-125)
         (- (* b c) (* x (* 4.0 i)))
         (if (<= (* b c) 2e+38) t_1 (* b (+ c (* -27.0 (* j (/ k b)))))))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = (-4.0 * (t * a)) + ((j * k) * -27.0);
	double tmp;
	if ((b * c) <= -1e+206) {
		tmp = (b * c) + (j * (k * -27.0));
	} else if ((b * c) <= -2e-18) {
		tmp = t_1;
	} else if ((b * c) <= -5e-125) {
		tmp = (b * c) - (x * (4.0 * i));
	} else if ((b * c) <= 2e+38) {
		tmp = t_1;
	} else {
		tmp = b * (c + (-27.0 * (j * (k / b))));
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: t_1
    real(8) :: tmp
    t_1 = ((-4.0d0) * (t * a)) + ((j * k) * (-27.0d0))
    if ((b * c) <= (-1d+206)) then
        tmp = (b * c) + (j * (k * (-27.0d0)))
    else if ((b * c) <= (-2d-18)) then
        tmp = t_1
    else if ((b * c) <= (-5d-125)) then
        tmp = (b * c) - (x * (4.0d0 * i))
    else if ((b * c) <= 2d+38) then
        tmp = t_1
    else
        tmp = b * (c + ((-27.0d0) * (j * (k / b))))
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = (-4.0 * (t * a)) + ((j * k) * -27.0);
	double tmp;
	if ((b * c) <= -1e+206) {
		tmp = (b * c) + (j * (k * -27.0));
	} else if ((b * c) <= -2e-18) {
		tmp = t_1;
	} else if ((b * c) <= -5e-125) {
		tmp = (b * c) - (x * (4.0 * i));
	} else if ((b * c) <= 2e+38) {
		tmp = t_1;
	} else {
		tmp = b * (c + (-27.0 * (j * (k / b))));
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	t_1 = (-4.0 * (t * a)) + ((j * k) * -27.0)
	tmp = 0
	if (b * c) <= -1e+206:
		tmp = (b * c) + (j * (k * -27.0))
	elif (b * c) <= -2e-18:
		tmp = t_1
	elif (b * c) <= -5e-125:
		tmp = (b * c) - (x * (4.0 * i))
	elif (b * c) <= 2e+38:
		tmp = t_1
	else:
		tmp = b * (c + (-27.0 * (j * (k / b))))
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(Float64(-4.0 * Float64(t * a)) + Float64(Float64(j * k) * -27.0))
	tmp = 0.0
	if (Float64(b * c) <= -1e+206)
		tmp = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0)));
	elseif (Float64(b * c) <= -2e-18)
		tmp = t_1;
	elseif (Float64(b * c) <= -5e-125)
		tmp = Float64(Float64(b * c) - Float64(x * Float64(4.0 * i)));
	elseif (Float64(b * c) <= 2e+38)
		tmp = t_1;
	else
		tmp = Float64(b * Float64(c + Float64(-27.0 * Float64(j * Float64(k / b)))));
	end
	return tmp
end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	t_1 = (-4.0 * (t * a)) + ((j * k) * -27.0);
	tmp = 0.0;
	if ((b * c) <= -1e+206)
		tmp = (b * c) + (j * (k * -27.0));
	elseif ((b * c) <= -2e-18)
		tmp = t_1;
	elseif ((b * c) <= -5e-125)
		tmp = (b * c) - (x * (4.0 * i));
	elseif ((b * c) <= 2e+38)
		tmp = t_1;
	else
		tmp = b * (c + (-27.0 * (j * (k / b))));
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(N[(j * k), $MachinePrecision] * -27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b * c), $MachinePrecision], -1e+206], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], -2e-18], t$95$1, If[LessEqual[N[(b * c), $MachinePrecision], -5e-125], N[(N[(b * c), $MachinePrecision] - N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b * c), $MachinePrecision], 2e+38], t$95$1, N[(b * N[(c + N[(-27.0 * N[(j * N[(k / b), $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])\\
\\
\begin{array}{l}
t_1 := -4 \cdot \left(t \cdot a\right) + \left(j \cdot k\right) \cdot -27\\
\mathbf{if}\;b \cdot c \leq -1 \cdot 10^{+206}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\

\mathbf{elif}\;b \cdot c \leq -2 \cdot 10^{-18}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;b \cdot c \leq -5 \cdot 10^{-125}:\\
\;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\

\mathbf{elif}\;b \cdot c \leq 2 \cdot 10^{+38}:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(c + -27 \cdot \left(j \cdot \frac{k}{b}\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if (*.f64 b c) < -1e206

    1. Initial program 70.0%

      \[\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 \]
    2. Simplified83.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in b around inf 76.7%

      \[\leadsto \color{blue}{b \cdot c} + j \cdot \left(k \cdot -27\right) \]

    if -1e206 < (*.f64 b c) < -2.0000000000000001e-18 or -4.99999999999999967e-125 < (*.f64 b c) < 1.99999999999999995e38

    1. Initial program 87.1%

      \[\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 \]
    2. Simplified86.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 56.9%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right)} + j \cdot \left(k \cdot -27\right) \]
    5. Step-by-step derivation
      1. metadata-eval56.9%

        \[\leadsto \color{blue}{\left(-4\right)} \cdot \left(a \cdot t\right) + j \cdot \left(k \cdot -27\right) \]
      2. distribute-lft-neg-in56.9%

        \[\leadsto \color{blue}{\left(-4 \cdot \left(a \cdot t\right)\right)} + j \cdot \left(k \cdot -27\right) \]
      3. *-commutative56.9%

        \[\leadsto \left(-4 \cdot \color{blue}{\left(t \cdot a\right)}\right) + j \cdot \left(k \cdot -27\right) \]
      4. associate-*l*56.9%

        \[\leadsto \left(-\color{blue}{\left(4 \cdot t\right) \cdot a}\right) + j \cdot \left(k \cdot -27\right) \]
      5. distribute-lft-neg-in56.9%

        \[\leadsto \color{blue}{\left(-4 \cdot t\right) \cdot a} + j \cdot \left(k \cdot -27\right) \]
      6. distribute-lft-neg-in56.9%

        \[\leadsto \color{blue}{\left(\left(-4\right) \cdot t\right)} \cdot a + j \cdot \left(k \cdot -27\right) \]
      7. metadata-eval56.9%

        \[\leadsto \left(\color{blue}{-4} \cdot t\right) \cdot a + j \cdot \left(k \cdot -27\right) \]
    6. Simplified56.9%

      \[\leadsto \color{blue}{\left(-4 \cdot t\right) \cdot a} + j \cdot \left(k \cdot -27\right) \]
    7. Taylor expanded in t around 0 56.9%

      \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right) + -4 \cdot \left(a \cdot t\right)} \]

    if -2.0000000000000001e-18 < (*.f64 b c) < -4.99999999999999967e-125

    1. Initial program 87.6%

      \[\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 \]
    2. Simplified94.1%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 60.4%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
    5. Taylor expanded in i around inf 50.9%

      \[\leadsto b \cdot c - \color{blue}{4 \cdot \left(i \cdot x\right)} \]
    6. Step-by-step derivation
      1. associate-*r*50.9%

        \[\leadsto b \cdot c - \color{blue}{\left(4 \cdot i\right) \cdot x} \]
      2. *-commutative50.9%

        \[\leadsto b \cdot c - \color{blue}{x \cdot \left(4 \cdot i\right)} \]
    7. Simplified50.9%

      \[\leadsto b \cdot c - \color{blue}{x \cdot \left(4 \cdot i\right)} \]

    if 1.99999999999999995e38 < (*.f64 b c)

    1. Initial program 88.8%

      \[\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 \]
    2. Simplified90.4%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 79.5%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
    5. Taylor expanded in i around 0 70.3%

      \[\leadsto \color{blue}{b \cdot c - 27 \cdot \left(j \cdot k\right)} \]
    6. Taylor expanded in b around inf 68.8%

      \[\leadsto \color{blue}{b \cdot \left(c + -27 \cdot \frac{j \cdot k}{b}\right)} \]
    7. Step-by-step derivation
      1. *-commutative68.8%

        \[\leadsto b \cdot \left(c + \color{blue}{\frac{j \cdot k}{b} \cdot -27}\right) \]
      2. associate-/l*70.5%

        \[\leadsto b \cdot \left(c + \color{blue}{\left(j \cdot \frac{k}{b}\right)} \cdot -27\right) \]
    8. Simplified70.5%

      \[\leadsto \color{blue}{b \cdot \left(c + \left(j \cdot \frac{k}{b}\right) \cdot -27\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification62.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \cdot c \leq -1 \cdot 10^{+206}:\\ \;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\ \mathbf{elif}\;b \cdot c \leq -2 \cdot 10^{-18}:\\ \;\;\;\;-4 \cdot \left(t \cdot a\right) + \left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;b \cdot c \leq -5 \cdot 10^{-125}:\\ \;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\ \mathbf{elif}\;b \cdot c \leq 2 \cdot 10^{+38}:\\ \;\;\;\;-4 \cdot \left(t \cdot a\right) + \left(j \cdot k\right) \cdot -27\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(c + -27 \cdot \left(j \cdot \frac{k}{b}\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 86.4% accurate, 0.9× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} \mathbf{if}\;x \leq -7.5 \cdot 10^{+113}:\\ \;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b \cdot c + \left(y \cdot \left(18 \cdot \left(t \cdot \left(x \cdot z\right)\right)\right) - t \cdot \left(a \cdot 4\right)\right)\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (if (<= x -7.5e+113)
   (* x (- (* 18.0 (* t (* y z))) (* 4.0 i)))
   (-
    (-
     (+ (* b c) (- (* y (* 18.0 (* t (* x z)))) (* t (* 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);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double tmp;
	if (x <= -7.5e+113) {
		tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
	} else {
		tmp = (((b * c) + ((y * (18.0 * (t * (x * z)))) - (t * (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.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: tmp
    if (x <= (-7.5d+113)) then
        tmp = x * ((18.0d0 * (t * (y * z))) - (4.0d0 * i))
    else
        tmp = (((b * c) + ((y * (18.0d0 * (t * (x * z)))) - (t * (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;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double tmp;
	if (x <= -7.5e+113) {
		tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
	} else {
		tmp = (((b * c) + ((y * (18.0 * (t * (x * z)))) - (t * (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])
def code(x, y, z, t, a, b, c, i, j, k):
	tmp = 0
	if x <= -7.5e+113:
		tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i))
	else:
		tmp = (((b * c) + ((y * (18.0 * (t * (x * z)))) - (t * (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])
function code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0
	if (x <= -7.5e+113)
		tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i)));
	else
		tmp = Float64(Float64(Float64(Float64(b * c) + Float64(Float64(y * Float64(18.0 * Float64(t * Float64(x * z)))) - Float64(t * Float64(a * 4.0)))) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0;
	if (x <= -7.5e+113)
		tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
	else
		tmp = (((b * c) + ((y * (18.0 * (t * (x * z)))) - (t * (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.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[x, -7.5e+113], N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(b * c), $MachinePrecision] + N[(N[(y * N[(18.0 * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.5 \cdot 10^{+113}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\

\mathbf{else}:\\
\;\;\;\;\left(\left(b \cdot c + \left(y \cdot \left(18 \cdot \left(t \cdot \left(x \cdot z\right)\right)\right) - t \cdot \left(a \cdot 4\right)\right)\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -7.5000000000000001e113

    1. Initial program 65.1%

      \[\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 \]
    2. Simplified75.1%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in x around inf 82.8%

      \[\leadsto \color{blue}{x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)} \]

    if -7.5000000000000001e113 < x

    1. Initial program 89.3%

      \[\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 \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. pow189.3%

        \[\leadsto \left(\left(\left(\color{blue}{{\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t\right)}^{1}} - \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 \]
      2. associate-*l*87.4%

        \[\leadsto \left(\left(\left({\color{blue}{\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot \left(z \cdot t\right)\right)}}^{1} - \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 \]
      3. *-commutative87.4%

        \[\leadsto \left(\left(\left({\left(\color{blue}{\left(y \cdot \left(x \cdot 18\right)\right)} \cdot \left(z \cdot t\right)\right)}^{1} - \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 \]
    4. Applied egg-rr87.4%

      \[\leadsto \left(\left(\left(\color{blue}{{\left(\left(y \cdot \left(x \cdot 18\right)\right) \cdot \left(z \cdot t\right)\right)}^{1}} - \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 \]
    5. Step-by-step derivation
      1. unpow187.4%

        \[\leadsto \left(\left(\left(\color{blue}{\left(y \cdot \left(x \cdot 18\right)\right) \cdot \left(z \cdot t\right)} - \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 \]
      2. associate-*l*87.9%

        \[\leadsto \left(\left(\left(\color{blue}{y \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot t\right)\right)} - \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 \]
      3. *-commutative87.9%

        \[\leadsto \left(\left(\left(y \cdot \left(\left(x \cdot 18\right) \cdot \color{blue}{\left(t \cdot z\right)}\right) - \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 \]
    6. Simplified87.9%

      \[\leadsto \left(\left(\left(\color{blue}{y \cdot \left(\left(x \cdot 18\right) \cdot \left(t \cdot z\right)\right)} - \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 \]
    7. Taylor expanded in x around 0 89.3%

      \[\leadsto \left(\left(\left(y \cdot \color{blue}{\left(18 \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)} - \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 \]
  3. Recombined 2 regimes into one program.
  4. Final simplification88.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -7.5 \cdot 10^{+113}:\\ \;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b \cdot c + \left(y \cdot \left(18 \cdot \left(t \cdot \left(x \cdot z\right)\right)\right) - t \cdot \left(a \cdot 4\right)\right)\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 69.7% accurate, 0.9× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := b \cdot c - \left(4 \cdot \left(x \cdot i\right) + 27 \cdot \left(j \cdot k\right)\right)\\ t_2 := t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \mathbf{if}\;t \leq -2.4 \cdot 10^{+103}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq 6 \cdot 10^{+58}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 4.7 \cdot 10^{+151}:\\ \;\;\;\;t \cdot \left(z \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)\\ \mathbf{elif}\;t \leq 1.25 \cdot 10^{+220}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1 (- (* b c) (+ (* 4.0 (* x i)) (* 27.0 (* j k)))))
        (t_2 (* t (- (* 18.0 (* x (* y z))) (* a 4.0)))))
   (if (<= t -2.4e+103)
     t_2
     (if (<= t 6e+58)
       t_1
       (if (<= t 4.7e+151)
         (* t (* z (+ (* -4.0 (/ a z)) (* 18.0 (* x y)))))
         (if (<= t 1.25e+220) t_1 t_2))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
	double t_2 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
	double tmp;
	if (t <= -2.4e+103) {
		tmp = t_2;
	} else if (t <= 6e+58) {
		tmp = t_1;
	} else if (t <= 4.7e+151) {
		tmp = t * (z * ((-4.0 * (a / z)) + (18.0 * (x * y))));
	} else if (t <= 1.25e+220) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = (b * c) - ((4.0d0 * (x * i)) + (27.0d0 * (j * k)))
    t_2 = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
    if (t <= (-2.4d+103)) then
        tmp = t_2
    else if (t <= 6d+58) then
        tmp = t_1
    else if (t <= 4.7d+151) then
        tmp = t * (z * (((-4.0d0) * (a / z)) + (18.0d0 * (x * y))))
    else if (t <= 1.25d+220) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
	double t_2 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
	double tmp;
	if (t <= -2.4e+103) {
		tmp = t_2;
	} else if (t <= 6e+58) {
		tmp = t_1;
	} else if (t <= 4.7e+151) {
		tmp = t * (z * ((-4.0 * (a / z)) + (18.0 * (x * y))));
	} else if (t <= 1.25e+220) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	t_1 = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)))
	t_2 = t * ((18.0 * (x * (y * z))) - (a * 4.0))
	tmp = 0
	if t <= -2.4e+103:
		tmp = t_2
	elif t <= 6e+58:
		tmp = t_1
	elif t <= 4.7e+151:
		tmp = t * (z * ((-4.0 * (a / z)) + (18.0 * (x * y))))
	elif t <= 1.25e+220:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(x * i)) + Float64(27.0 * Float64(j * k))))
	t_2 = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0)))
	tmp = 0.0
	if (t <= -2.4e+103)
		tmp = t_2;
	elseif (t <= 6e+58)
		tmp = t_1;
	elseif (t <= 4.7e+151)
		tmp = Float64(t * Float64(z * Float64(Float64(-4.0 * Float64(a / z)) + Float64(18.0 * Float64(x * y)))));
	elseif (t <= 1.25e+220)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	t_1 = (b * c) - ((4.0 * (x * i)) + (27.0 * (j * k)));
	t_2 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
	tmp = 0.0;
	if (t <= -2.4e+103)
		tmp = t_2;
	elseif (t <= 6e+58)
		tmp = t_1;
	elseif (t <= 4.7e+151)
		tmp = t * (z * ((-4.0 * (a / z)) + (18.0 * (x * y))));
	elseif (t <= 1.25e+220)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.4e+103], t$95$2, If[LessEqual[t, 6e+58], t$95$1, If[LessEqual[t, 4.7e+151], N[(t * N[(z * N[(N[(-4.0 * N[(a / z), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.25e+220], t$95$1, t$95$2]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := b \cdot c - \left(4 \cdot \left(x \cdot i\right) + 27 \cdot \left(j \cdot k\right)\right)\\
t_2 := t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -2.4 \cdot 10^{+103}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t \leq 6 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 4.7 \cdot 10^{+151}:\\
\;\;\;\;t \cdot \left(z \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)\\

\mathbf{elif}\;t \leq 1.25 \cdot 10^{+220}:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;t\_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -2.3999999999999998e103 or 1.2500000000000001e220 < t

    1. Initial program 78.4%

      \[\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 \]
    2. Simplified82.9%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around inf 79.2%

      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]

    if -2.3999999999999998e103 < t < 6.0000000000000005e58 or 4.69999999999999989e151 < t < 1.2500000000000001e220

    1. Initial program 88.6%

      \[\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 \]
    2. Simplified87.5%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 80.3%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]

    if 6.0000000000000005e58 < t < 4.69999999999999989e151

    1. Initial program 83.1%

      \[\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 \]
    2. Simplified68.4%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around inf 68.7%

      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]
    5. Taylor expanded in z around inf 83.4%

      \[\leadsto t \cdot \color{blue}{\left(z \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification80.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.4 \cdot 10^{+103}:\\ \;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \mathbf{elif}\;t \leq 6 \cdot 10^{+58}:\\ \;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + 27 \cdot \left(j \cdot k\right)\right)\\ \mathbf{elif}\;t \leq 4.7 \cdot 10^{+151}:\\ \;\;\;\;t \cdot \left(z \cdot \left(-4 \cdot \frac{a}{z} + 18 \cdot \left(x \cdot y\right)\right)\right)\\ \mathbf{elif}\;t \leq 1.25 \cdot 10^{+220}:\\ \;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + 27 \cdot \left(j \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 86.0% accurate, 0.9× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} \mathbf{if}\;x \leq -3.4 \cdot 10^{+146}:\\ \;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\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} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (if (<= x -3.4e+146)
   (* x (- (* 18.0 (* t (* y z))) (* 4.0 i)))
   (-
    (+ (* 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);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double tmp;
	if (x <= -3.4e+146) {
		tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
	} 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.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: tmp
    if (x <= (-3.4d+146)) then
        tmp = x * ((18.0d0 * (t * (y * z))) - (4.0d0 * i))
    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;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double tmp;
	if (x <= -3.4e+146) {
		tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
	} 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])
def code(x, y, z, t, a, b, c, i, j, k):
	tmp = 0
	if x <= -3.4e+146:
		tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i))
	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])
function code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0
	if (x <= -3.4e+146)
		tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i)));
	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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0;
	if (x <= -3.4e+146)
		tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
	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.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[x, -3.4e+146], N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $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])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.4 \cdot 10^{+146}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\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}
Derivation
  1. Split input into 2 regimes
  2. if x < -3.39999999999999991e146

    1. Initial program 65.8%

      \[\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 \]
    2. Simplified75.1%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in x around inf 87.8%

      \[\leadsto \color{blue}{x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)} \]

    if -3.39999999999999991e146 < x

    1. Initial program 88.4%

      \[\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 \]
    2. Simplified86.8%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
  3. Recombined 2 regimes into one program.
  4. Final simplification86.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -3.4 \cdot 10^{+146}:\\ \;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\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} \]
  5. Add Preprocessing

Alternative 13: 79.2% accurate, 1.0× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} \mathbf{if}\;t \leq -8 \cdot 10^{+191} \lor \neg \left(t \leq 1.9 \cdot 10^{+221}\right):\\ \;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (if (or (<= t -8e+191) (not (<= t 1.9e+221)))
   (* t (- (* 18.0 (* x (* y z))) (* a 4.0)))
   (- (- (- (* b c) (* 4.0 (* t a))) (* (* 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);
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 <= -8e+191) || !(t <= 1.9e+221)) {
		tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
	} else {
		tmp = (((b * c) - (4.0 * (t * a))) - ((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.
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 <= (-8d+191)) .or. (.not. (t <= 1.9d+221))) then
        tmp = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
    else
        tmp = (((b * c) - (4.0d0 * (t * a))) - ((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;
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 <= -8e+191) || !(t <= 1.9e+221)) {
		tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
	} else {
		tmp = (((b * c) - (4.0 * (t * a))) - ((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])
def code(x, y, z, t, a, b, c, i, j, k):
	tmp = 0
	if (t <= -8e+191) or not (t <= 1.9e+221):
		tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0))
	else:
		tmp = (((b * c) - (4.0 * (t * a))) - ((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])
function code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0
	if ((t <= -8e+191) || !(t <= 1.9e+221))
		tmp = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0)));
	else
		tmp = Float64(Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0;
	if ((t <= -8e+191) || ~((t <= 1.9e+221)))
		tmp = t * ((18.0 * (x * (y * z))) - (a * 4.0));
	else
		tmp = (((b * c) - (4.0 * (t * a))) - ((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.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -8e+191], N[Not[LessEqual[t, 1.9e+221]], $MachinePrecision]], N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{+191} \lor \neg \left(t \leq 1.9 \cdot 10^{+221}\right):\\
\;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\

\mathbf{else}:\\
\;\;\;\;\left(\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -8.00000000000000058e191 or 1.90000000000000017e221 < t

    1. Initial program 75.4%

      \[\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 \]
    2. Simplified79.4%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around inf 84.8%

      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]

    if -8.00000000000000058e191 < t < 1.90000000000000017e221

    1. Initial program 87.9%

      \[\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 \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0 85.9%

      \[\leadsto \left(\color{blue}{\left(b \cdot c - 4 \cdot \left(a \cdot t\right)\right)} - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]
  3. Recombined 2 regimes into one program.
  4. Final simplification85.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -8 \cdot 10^{+191} \lor \neg \left(t \leq 1.9 \cdot 10^{+221}\right):\\ \;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 80.1% accurate, 1.0× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \mathbf{if}\;t \leq -4.1 \cdot 10^{+113}:\\ \;\;\;\;\left(b \cdot c + t\_1\right) - 4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;t \leq 3.1 \cdot 10^{+220}:\\ \;\;\;\;\left(\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1 (* t (- (* 18.0 (* x (* y z))) (* a 4.0)))))
   (if (<= t -4.1e+113)
     (- (+ (* b c) t_1) (* 4.0 (* x i)))
     (if (<= t 3.1e+220)
       (- (- (- (* b c) (* 4.0 (* t a))) (* (* x 4.0) i)) (* (* j 27.0) k))
       t_1))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
	double tmp;
	if (t <= -4.1e+113) {
		tmp = ((b * c) + t_1) - (4.0 * (x * i));
	} else if (t <= 3.1e+220) {
		tmp = (((b * c) - (4.0 * (t * a))) - ((x * 4.0) * i)) - ((j * 27.0) * k);
	} else {
		tmp = t_1;
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: t_1
    real(8) :: tmp
    t_1 = t * ((18.0d0 * (x * (y * z))) - (a * 4.0d0))
    if (t <= (-4.1d+113)) then
        tmp = ((b * c) + t_1) - (4.0d0 * (x * i))
    else if (t <= 3.1d+220) then
        tmp = (((b * c) - (4.0d0 * (t * a))) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
    else
        tmp = t_1
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
	double tmp;
	if (t <= -4.1e+113) {
		tmp = ((b * c) + t_1) - (4.0 * (x * i));
	} else if (t <= 3.1e+220) {
		tmp = (((b * c) - (4.0 * (t * a))) - ((x * 4.0) * i)) - ((j * 27.0) * k);
	} else {
		tmp = t_1;
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	t_1 = t * ((18.0 * (x * (y * z))) - (a * 4.0))
	tmp = 0
	if t <= -4.1e+113:
		tmp = ((b * c) + t_1) - (4.0 * (x * i))
	elif t <= 3.1e+220:
		tmp = (((b * c) - (4.0 * (t * a))) - ((x * 4.0) * i)) - ((j * 27.0) * k)
	else:
		tmp = t_1
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(t * Float64(Float64(18.0 * Float64(x * Float64(y * z))) - Float64(a * 4.0)))
	tmp = 0.0
	if (t <= -4.1e+113)
		tmp = Float64(Float64(Float64(b * c) + t_1) - Float64(4.0 * Float64(x * i)));
	elseif (t <= 3.1e+220)
		tmp = Float64(Float64(Float64(Float64(b * c) - Float64(4.0 * Float64(t * a))) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k));
	else
		tmp = t_1;
	end
	return tmp
end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	t_1 = t * ((18.0 * (x * (y * z))) - (a * 4.0));
	tmp = 0.0;
	if (t <= -4.1e+113)
		tmp = ((b * c) + t_1) - (4.0 * (x * i));
	elseif (t <= 3.1e+220)
		tmp = (((b * c) - (4.0 * (t * a))) - ((x * 4.0) * i)) - ((j * 27.0) * k);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(t * N[(N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.1e+113], N[(N[(N[(b * c), $MachinePrecision] + t$95$1), $MachinePrecision] - N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.1e+220], N[(N[(N[(N[(b * c), $MachinePrecision] - N[(4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\
\mathbf{if}\;t \leq -4.1 \cdot 10^{+113}:\\
\;\;\;\;\left(b \cdot c + t\_1\right) - 4 \cdot \left(x \cdot i\right)\\

\mathbf{elif}\;t \leq 3.1 \cdot 10^{+220}:\\
\;\;\;\;\left(\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -4.09999999999999993e113

    1. Initial program 75.9%

      \[\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 \]
    2. Simplified82.7%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in j around 0 77.5%

      \[\leadsto \color{blue}{\left(b \cdot c + t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)\right) - 4 \cdot \left(i \cdot x\right)} \]

    if -4.09999999999999993e113 < t < 3.1000000000000001e220

    1. Initial program 88.3%

      \[\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 \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0 87.7%

      \[\leadsto \left(\color{blue}{\left(b \cdot c - 4 \cdot \left(a \cdot t\right)\right)} - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]

    if 3.1000000000000001e220 < t

    1. Initial program 81.7%

      \[\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 \]
    2. Simplified81.7%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around inf 90.8%

      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification86.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.1 \cdot 10^{+113}:\\ \;\;\;\;\left(b \cdot c + t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\right) - 4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;t \leq 3.1 \cdot 10^{+220}:\\ \;\;\;\;\left(\left(b \cdot c - 4 \cdot \left(t \cdot a\right)\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - a \cdot 4\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 32.3% accurate, 1.1× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} \mathbf{if}\;t \leq -9 \cdot 10^{+158}:\\ \;\;\;\;\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t\\ \mathbf{elif}\;t \leq -1200000:\\ \;\;\;\;t \cdot \left(a \cdot -4\right)\\ \mathbf{elif}\;t \leq -4.5 \cdot 10^{-106} \lor \neg \left(t \leq 2.2 \cdot 10^{+36}\right):\\ \;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot k\right) \cdot -27\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (if (<= t -9e+158)
   (* (* (* (* x 18.0) y) z) t)
   (if (<= t -1200000.0)
     (* t (* a -4.0))
     (if (or (<= t -4.5e-106) (not (<= t 2.2e+36)))
       (* t (* 18.0 (* y (* x z))))
       (* (* j k) -27.0)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double tmp;
	if (t <= -9e+158) {
		tmp = (((x * 18.0) * y) * z) * t;
	} else if (t <= -1200000.0) {
		tmp = t * (a * -4.0);
	} else if ((t <= -4.5e-106) || !(t <= 2.2e+36)) {
		tmp = t * (18.0 * (y * (x * z)));
	} else {
		tmp = (j * k) * -27.0;
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: tmp
    if (t <= (-9d+158)) then
        tmp = (((x * 18.0d0) * y) * z) * t
    else if (t <= (-1200000.0d0)) then
        tmp = t * (a * (-4.0d0))
    else if ((t <= (-4.5d-106)) .or. (.not. (t <= 2.2d+36))) then
        tmp = t * (18.0d0 * (y * (x * z)))
    else
        tmp = (j * k) * (-27.0d0)
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double tmp;
	if (t <= -9e+158) {
		tmp = (((x * 18.0) * y) * z) * t;
	} else if (t <= -1200000.0) {
		tmp = t * (a * -4.0);
	} else if ((t <= -4.5e-106) || !(t <= 2.2e+36)) {
		tmp = t * (18.0 * (y * (x * z)));
	} else {
		tmp = (j * k) * -27.0;
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	tmp = 0
	if t <= -9e+158:
		tmp = (((x * 18.0) * y) * z) * t
	elif t <= -1200000.0:
		tmp = t * (a * -4.0)
	elif (t <= -4.5e-106) or not (t <= 2.2e+36):
		tmp = t * (18.0 * (y * (x * z)))
	else:
		tmp = (j * k) * -27.0
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0
	if (t <= -9e+158)
		tmp = Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t);
	elseif (t <= -1200000.0)
		tmp = Float64(t * Float64(a * -4.0));
	elseif ((t <= -4.5e-106) || !(t <= 2.2e+36))
		tmp = Float64(t * Float64(18.0 * Float64(y * Float64(x * z))));
	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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0;
	if (t <= -9e+158)
		tmp = (((x * 18.0) * y) * z) * t;
	elseif (t <= -1200000.0)
		tmp = t * (a * -4.0);
	elseif ((t <= -4.5e-106) || ~((t <= 2.2e+36)))
		tmp = t * (18.0 * (y * (x * z)));
	else
		tmp = (j * k) * -27.0;
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[t, -9e+158], N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[t, -1200000.0], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -4.5e-106], N[Not[LessEqual[t, 2.2e+36]], $MachinePrecision]], N[(t * N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9 \cdot 10^{+158}:\\
\;\;\;\;\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t\\

\mathbf{elif}\;t \leq -1200000:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\

\mathbf{elif}\;t \leq -4.5 \cdot 10^{-106} \lor \neg \left(t \leq 2.2 \cdot 10^{+36}\right):\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\left(j \cdot k\right) \cdot -27\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -9.00000000000000092e158

    1. Initial program 74.8%

      \[\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 \]
    2. Simplified80.7%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around inf 74.4%

      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]
    5. Taylor expanded in x around inf 44.6%

      \[\leadsto t \cdot \color{blue}{\left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*44.6%

        \[\leadsto t \cdot \color{blue}{\left(\left(18 \cdot x\right) \cdot \left(y \cdot z\right)\right)} \]
      2. associate-*r*47.0%

        \[\leadsto t \cdot \color{blue}{\left(\left(\left(18 \cdot x\right) \cdot y\right) \cdot z\right)} \]
    7. Simplified47.0%

      \[\leadsto t \cdot \color{blue}{\left(\left(\left(18 \cdot x\right) \cdot y\right) \cdot z\right)} \]

    if -9.00000000000000092e158 < t < -1.2e6

    1. Initial program 93.7%

      \[\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 \]
    2. Simplified93.6%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around inf 43.9%

      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]
    5. Taylor expanded in x around 0 31.3%

      \[\leadsto t \cdot \color{blue}{\left(-4 \cdot a\right)} \]
    6. Step-by-step derivation
      1. *-commutative31.3%

        \[\leadsto t \cdot \color{blue}{\left(a \cdot -4\right)} \]
    7. Simplified31.3%

      \[\leadsto t \cdot \color{blue}{\left(a \cdot -4\right)} \]

    if -1.2e6 < t < -4.49999999999999955e-106 or 2.2e36 < t

    1. Initial program 82.9%

      \[\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 \]
    2. Simplified80.7%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around inf 55.4%

      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]
    5. Taylor expanded in x around inf 39.7%

      \[\leadsto t \cdot \color{blue}{\left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative39.7%

        \[\leadsto t \cdot \left(18 \cdot \left(x \cdot \color{blue}{\left(z \cdot y\right)}\right)\right) \]
      2. associate-*r*43.3%

        \[\leadsto t \cdot \left(18 \cdot \color{blue}{\left(\left(x \cdot z\right) \cdot y\right)}\right) \]
    7. Simplified43.3%

      \[\leadsto t \cdot \color{blue}{\left(18 \cdot \left(\left(x \cdot z\right) \cdot y\right)\right)} \]

    if -4.49999999999999955e-106 < t < 2.2e36

    1. Initial program 88.4%

      \[\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 \]
    2. Simplified87.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in j around inf 42.2%

      \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification41.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -9 \cdot 10^{+158}:\\ \;\;\;\;\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t\\ \mathbf{elif}\;t \leq -1200000:\\ \;\;\;\;t \cdot \left(a \cdot -4\right)\\ \mathbf{elif}\;t \leq -4.5 \cdot 10^{-106} \lor \neg \left(t \leq 2.2 \cdot 10^{+36}\right):\\ \;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot k\right) \cdot -27\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 43.7% accurate, 1.1× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := b \cdot c + -4 \cdot \left(t \cdot a\right)\\ t_2 := \left(j \cdot k\right) \cdot -27\\ \mathbf{if}\;j \leq -3.5 \cdot 10^{+149}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;j \leq -1500:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -2.1 \cdot 10^{-56}:\\ \;\;\;\;-4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;j \leq 2.6 \cdot 10^{-12}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1 (+ (* b c) (* -4.0 (* t a)))) (t_2 (* (* j k) -27.0)))
   (if (<= j -3.5e+149)
     t_2
     (if (<= j -1500.0)
       t_1
       (if (<= j -2.1e-56) (* -4.0 (* x i)) (if (<= j 2.6e-12) t_1 t_2))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = (b * c) + (-4.0 * (t * a));
	double t_2 = (j * k) * -27.0;
	double tmp;
	if (j <= -3.5e+149) {
		tmp = t_2;
	} else if (j <= -1500.0) {
		tmp = t_1;
	} else if (j <= -2.1e-56) {
		tmp = -4.0 * (x * i);
	} else if (j <= 2.6e-12) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = (b * c) + ((-4.0d0) * (t * a))
    t_2 = (j * k) * (-27.0d0)
    if (j <= (-3.5d+149)) then
        tmp = t_2
    else if (j <= (-1500.0d0)) then
        tmp = t_1
    else if (j <= (-2.1d-56)) then
        tmp = (-4.0d0) * (x * i)
    else if (j <= 2.6d-12) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = (b * c) + (-4.0 * (t * a));
	double t_2 = (j * k) * -27.0;
	double tmp;
	if (j <= -3.5e+149) {
		tmp = t_2;
	} else if (j <= -1500.0) {
		tmp = t_1;
	} else if (j <= -2.1e-56) {
		tmp = -4.0 * (x * i);
	} else if (j <= 2.6e-12) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	t_1 = (b * c) + (-4.0 * (t * a))
	t_2 = (j * k) * -27.0
	tmp = 0
	if j <= -3.5e+149:
		tmp = t_2
	elif j <= -1500.0:
		tmp = t_1
	elif j <= -2.1e-56:
		tmp = -4.0 * (x * i)
	elif j <= 2.6e-12:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a)))
	t_2 = Float64(Float64(j * k) * -27.0)
	tmp = 0.0
	if (j <= -3.5e+149)
		tmp = t_2;
	elseif (j <= -1500.0)
		tmp = t_1;
	elseif (j <= -2.1e-56)
		tmp = Float64(-4.0 * Float64(x * i));
	elseif (j <= 2.6e-12)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	t_1 = (b * c) + (-4.0 * (t * a));
	t_2 = (j * k) * -27.0;
	tmp = 0.0;
	if (j <= -3.5e+149)
		tmp = t_2;
	elseif (j <= -1500.0)
		tmp = t_1;
	elseif (j <= -2.1e-56)
		tmp = -4.0 * (x * i);
	elseif (j <= 2.6e-12)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * k), $MachinePrecision] * -27.0), $MachinePrecision]}, If[LessEqual[j, -3.5e+149], t$95$2, If[LessEqual[j, -1500.0], t$95$1, If[LessEqual[j, -2.1e-56], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.6e-12], t$95$1, t$95$2]]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := b \cdot c + -4 \cdot \left(t \cdot a\right)\\
t_2 := \left(j \cdot k\right) \cdot -27\\
\mathbf{if}\;j \leq -3.5 \cdot 10^{+149}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;j \leq -1500:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;j \leq -2.1 \cdot 10^{-56}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\

\mathbf{elif}\;j \leq 2.6 \cdot 10^{-12}:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;t\_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if j < -3.50000000000000011e149 or 2.59999999999999983e-12 < j

    1. Initial program 80.8%

      \[\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 \]
    2. Simplified85.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in j around inf 47.5%

      \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]

    if -3.50000000000000011e149 < j < -1500 or -2.10000000000000006e-56 < j < 2.59999999999999983e-12

    1. Initial program 87.7%

      \[\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 \]
    2. Simplified85.2%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in x around 0 58.2%

      \[\leadsto \color{blue}{\left(-4 \cdot \left(a \cdot t\right) + b \cdot c\right) - 27 \cdot \left(j \cdot k\right)} \]
    5. Taylor expanded in j around 0 48.2%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right) + b \cdot c} \]

    if -1500 < j < -2.10000000000000006e-56

    1. Initial program 99.7%

      \[\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 \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. pow199.7%

        \[\leadsto \left(\left(\left(\color{blue}{{\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t\right)}^{1}} - \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 \]
      2. associate-*l*82.2%

        \[\leadsto \left(\left(\left({\color{blue}{\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot \left(z \cdot t\right)\right)}}^{1} - \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 \]
      3. *-commutative82.2%

        \[\leadsto \left(\left(\left({\left(\color{blue}{\left(y \cdot \left(x \cdot 18\right)\right)} \cdot \left(z \cdot t\right)\right)}^{1} - \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 \]
    4. Applied egg-rr82.2%

      \[\leadsto \left(\left(\left(\color{blue}{{\left(\left(y \cdot \left(x \cdot 18\right)\right) \cdot \left(z \cdot t\right)\right)}^{1}} - \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 \]
    5. Step-by-step derivation
      1. unpow182.2%

        \[\leadsto \left(\left(\left(\color{blue}{\left(y \cdot \left(x \cdot 18\right)\right) \cdot \left(z \cdot t\right)} - \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 \]
      2. associate-*l*82.2%

        \[\leadsto \left(\left(\left(\color{blue}{y \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot t\right)\right)} - \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 \]
      3. *-commutative82.2%

        \[\leadsto \left(\left(\left(y \cdot \left(\left(x \cdot 18\right) \cdot \color{blue}{\left(t \cdot z\right)}\right) - \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 \]
    6. Simplified82.2%

      \[\leadsto \left(\left(\left(\color{blue}{y \cdot \left(\left(x \cdot 18\right) \cdot \left(t \cdot z\right)\right)} - \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 \]
    7. Taylor expanded in i around inf 29.1%

      \[\leadsto \color{blue}{-4 \cdot \left(i \cdot x\right)} \]
    8. Step-by-step derivation
      1. *-commutative29.1%

        \[\leadsto -4 \cdot \color{blue}{\left(x \cdot i\right)} \]
    9. Simplified29.1%

      \[\leadsto \color{blue}{-4 \cdot \left(x \cdot i\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification47.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -3.5 \cdot 10^{+149}:\\ \;\;\;\;\left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;j \leq -1500:\\ \;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\ \mathbf{elif}\;j \leq -2.1 \cdot 10^{-56}:\\ \;\;\;\;-4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;j \leq 2.6 \cdot 10^{-12}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot k\right) \cdot -27\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 48.9% accurate, 1.2× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := b \cdot \left(c + -27 \cdot \left(j \cdot \frac{k}{b}\right)\right)\\ \mathbf{if}\;j \leq -7.5 \cdot 10^{+82}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -9 \cdot 10^{-247}:\\ \;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\ \mathbf{elif}\;j \leq 5.8 \cdot 10^{-97}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1 (* b (+ c (* -27.0 (* j (/ k b)))))))
   (if (<= j -7.5e+82)
     t_1
     (if (<= j -9e-247)
       (- (* b c) (* x (* 4.0 i)))
       (if (<= j 5.8e-97) (+ (* b c) (* -4.0 (* t a))) t_1)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = b * (c + (-27.0 * (j * (k / b))));
	double tmp;
	if (j <= -7.5e+82) {
		tmp = t_1;
	} else if (j <= -9e-247) {
		tmp = (b * c) - (x * (4.0 * i));
	} else if (j <= 5.8e-97) {
		tmp = (b * c) + (-4.0 * (t * a));
	} else {
		tmp = t_1;
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: t_1
    real(8) :: tmp
    t_1 = b * (c + ((-27.0d0) * (j * (k / b))))
    if (j <= (-7.5d+82)) then
        tmp = t_1
    else if (j <= (-9d-247)) then
        tmp = (b * c) - (x * (4.0d0 * i))
    else if (j <= 5.8d-97) then
        tmp = (b * c) + ((-4.0d0) * (t * a))
    else
        tmp = t_1
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = b * (c + (-27.0 * (j * (k / b))));
	double tmp;
	if (j <= -7.5e+82) {
		tmp = t_1;
	} else if (j <= -9e-247) {
		tmp = (b * c) - (x * (4.0 * i));
	} else if (j <= 5.8e-97) {
		tmp = (b * c) + (-4.0 * (t * a));
	} else {
		tmp = t_1;
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	t_1 = b * (c + (-27.0 * (j * (k / b))))
	tmp = 0
	if j <= -7.5e+82:
		tmp = t_1
	elif j <= -9e-247:
		tmp = (b * c) - (x * (4.0 * i))
	elif j <= 5.8e-97:
		tmp = (b * c) + (-4.0 * (t * a))
	else:
		tmp = t_1
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(b * Float64(c + Float64(-27.0 * Float64(j * Float64(k / b)))))
	tmp = 0.0
	if (j <= -7.5e+82)
		tmp = t_1;
	elseif (j <= -9e-247)
		tmp = Float64(Float64(b * c) - Float64(x * Float64(4.0 * i)));
	elseif (j <= 5.8e-97)
		tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a)));
	else
		tmp = t_1;
	end
	return tmp
end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	t_1 = b * (c + (-27.0 * (j * (k / b))));
	tmp = 0.0;
	if (j <= -7.5e+82)
		tmp = t_1;
	elseif (j <= -9e-247)
		tmp = (b * c) - (x * (4.0 * i));
	elseif (j <= 5.8e-97)
		tmp = (b * c) + (-4.0 * (t * a));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(b * N[(c + N[(-27.0 * N[(j * N[(k / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -7.5e+82], t$95$1, If[LessEqual[j, -9e-247], N[(N[(b * c), $MachinePrecision] - N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.8e-97], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := b \cdot \left(c + -27 \cdot \left(j \cdot \frac{k}{b}\right)\right)\\
\mathbf{if}\;j \leq -7.5 \cdot 10^{+82}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;j \leq -9 \cdot 10^{-247}:\\
\;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\

\mathbf{elif}\;j \leq 5.8 \cdot 10^{-97}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if j < -7.4999999999999999e82 or 5.7999999999999999e-97 < j

    1. Initial program 83.9%

      \[\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 \]
    2. Simplified83.3%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 72.4%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
    5. Taylor expanded in i around 0 62.8%

      \[\leadsto \color{blue}{b \cdot c - 27 \cdot \left(j \cdot k\right)} \]
    6. Taylor expanded in b around inf 61.4%

      \[\leadsto \color{blue}{b \cdot \left(c + -27 \cdot \frac{j \cdot k}{b}\right)} \]
    7. Step-by-step derivation
      1. *-commutative61.4%

        \[\leadsto b \cdot \left(c + \color{blue}{\frac{j \cdot k}{b} \cdot -27}\right) \]
      2. associate-/l*62.1%

        \[\leadsto b \cdot \left(c + \color{blue}{\left(j \cdot \frac{k}{b}\right)} \cdot -27\right) \]
    8. Simplified62.1%

      \[\leadsto \color{blue}{b \cdot \left(c + \left(j \cdot \frac{k}{b}\right) \cdot -27\right)} \]

    if -7.4999999999999999e82 < j < -9.0000000000000005e-247

    1. Initial program 91.0%

      \[\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 \]
    2. Simplified89.7%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 55.0%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
    5. Taylor expanded in i around inf 46.4%

      \[\leadsto b \cdot c - \color{blue}{4 \cdot \left(i \cdot x\right)} \]
    6. Step-by-step derivation
      1. associate-*r*46.4%

        \[\leadsto b \cdot c - \color{blue}{\left(4 \cdot i\right) \cdot x} \]
      2. *-commutative46.4%

        \[\leadsto b \cdot c - \color{blue}{x \cdot \left(4 \cdot i\right)} \]
    7. Simplified46.4%

      \[\leadsto b \cdot c - \color{blue}{x \cdot \left(4 \cdot i\right)} \]

    if -9.0000000000000005e-247 < j < 5.7999999999999999e-97

    1. Initial program 83.0%

      \[\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 \]
    2. Simplified84.9%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in x around 0 61.3%

      \[\leadsto \color{blue}{\left(-4 \cdot \left(a \cdot t\right) + b \cdot c\right) - 27 \cdot \left(j \cdot k\right)} \]
    5. Taylor expanded in j around 0 54.9%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right) + b \cdot c} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification56.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -7.5 \cdot 10^{+82}:\\ \;\;\;\;b \cdot \left(c + -27 \cdot \left(j \cdot \frac{k}{b}\right)\right)\\ \mathbf{elif}\;j \leq -9 \cdot 10^{-247}:\\ \;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\ \mathbf{elif}\;j \leq 5.8 \cdot 10^{-97}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(c + -27 \cdot \left(j \cdot \frac{k}{b}\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 18: 69.7% accurate, 1.2× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := 27 \cdot \left(j \cdot k\right)\\ \mathbf{if}\;x \leq -4.2 \cdot 10^{+114}:\\ \;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\ \mathbf{elif}\;x \leq 160:\\ \;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - t\_1\\ \mathbf{else}:\\ \;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + t\_1\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1 (* 27.0 (* j k))))
   (if (<= x -4.2e+114)
     (* x (- (* 18.0 (* t (* y z))) (* 4.0 i)))
     (if (<= x 160.0)
       (- (+ (* b c) (* -4.0 (* t a))) t_1)
       (- (* b c) (+ (* 4.0 (* x i)) t_1))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = 27.0 * (j * k);
	double tmp;
	if (x <= -4.2e+114) {
		tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
	} else if (x <= 160.0) {
		tmp = ((b * c) + (-4.0 * (t * a))) - t_1;
	} else {
		tmp = (b * c) - ((4.0 * (x * i)) + t_1);
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: t_1
    real(8) :: tmp
    t_1 = 27.0d0 * (j * k)
    if (x <= (-4.2d+114)) then
        tmp = x * ((18.0d0 * (t * (y * z))) - (4.0d0 * i))
    else if (x <= 160.0d0) then
        tmp = ((b * c) + ((-4.0d0) * (t * a))) - t_1
    else
        tmp = (b * c) - ((4.0d0 * (x * i)) + t_1)
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = 27.0 * (j * k);
	double tmp;
	if (x <= -4.2e+114) {
		tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
	} else if (x <= 160.0) {
		tmp = ((b * c) + (-4.0 * (t * a))) - t_1;
	} else {
		tmp = (b * c) - ((4.0 * (x * i)) + t_1);
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	t_1 = 27.0 * (j * k)
	tmp = 0
	if x <= -4.2e+114:
		tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i))
	elif x <= 160.0:
		tmp = ((b * c) + (-4.0 * (t * a))) - t_1
	else:
		tmp = (b * c) - ((4.0 * (x * i)) + t_1)
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(27.0 * Float64(j * k))
	tmp = 0.0
	if (x <= -4.2e+114)
		tmp = Float64(x * Float64(Float64(18.0 * Float64(t * Float64(y * z))) - Float64(4.0 * i)));
	elseif (x <= 160.0)
		tmp = Float64(Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a))) - t_1);
	else
		tmp = Float64(Float64(b * c) - Float64(Float64(4.0 * Float64(x * i)) + t_1));
	end
	return tmp
end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	t_1 = 27.0 * (j * k);
	tmp = 0.0;
	if (x <= -4.2e+114)
		tmp = x * ((18.0 * (t * (y * z))) - (4.0 * i));
	elseif (x <= 160.0)
		tmp = ((b * c) + (-4.0 * (t * a))) - t_1;
	else
		tmp = (b * c) - ((4.0 * (x * i)) + t_1);
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.2e+114], N[(x * N[(N[(18.0 * N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 160.0], N[(N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(b * c), $MachinePrecision] - N[(N[(4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := 27 \cdot \left(j \cdot k\right)\\
\mathbf{if}\;x \leq -4.2 \cdot 10^{+114}:\\
\;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\

\mathbf{elif}\;x \leq 160:\\
\;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - t\_1\\

\mathbf{else}:\\
\;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + t\_1\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -4.2000000000000001e114

    1. Initial program 66.8%

      \[\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 \]
    2. Simplified77.0%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in x around inf 84.9%

      \[\leadsto \color{blue}{x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)} \]

    if -4.2000000000000001e114 < x < 160

    1. Initial program 92.4%

      \[\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 \]
    2. Simplified88.3%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in x around 0 77.8%

      \[\leadsto \color{blue}{\left(-4 \cdot \left(a \cdot t\right) + b \cdot c\right) - 27 \cdot \left(j \cdot k\right)} \]

    if 160 < x

    1. Initial program 79.1%

      \[\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 \]
    2. Simplified82.6%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 66.4%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification76.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.2 \cdot 10^{+114}:\\ \;\;\;\;x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)\\ \mathbf{elif}\;x \leq 160:\\ \;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) - 27 \cdot \left(j \cdot k\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot c - \left(4 \cdot \left(x \cdot i\right) + 27 \cdot \left(j \cdot k\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 49.4% accurate, 1.3× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := b \cdot c + j \cdot \left(k \cdot -27\right)\\ \mathbf{if}\;j \leq -115:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -2.1 \cdot 10^{-56}:\\ \;\;\;\;-4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;j \leq 3.8 \cdot 10^{-97}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1 (+ (* b c) (* j (* k -27.0)))))
   (if (<= j -115.0)
     t_1
     (if (<= j -2.1e-56)
       (* -4.0 (* x i))
       (if (<= j 3.8e-97) (+ (* b c) (* -4.0 (* t a))) t_1)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = (b * c) + (j * (k * -27.0));
	double tmp;
	if (j <= -115.0) {
		tmp = t_1;
	} else if (j <= -2.1e-56) {
		tmp = -4.0 * (x * i);
	} else if (j <= 3.8e-97) {
		tmp = (b * c) + (-4.0 * (t * a));
	} else {
		tmp = t_1;
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (b * c) + (j * (k * (-27.0d0)))
    if (j <= (-115.0d0)) then
        tmp = t_1
    else if (j <= (-2.1d-56)) then
        tmp = (-4.0d0) * (x * i)
    else if (j <= 3.8d-97) then
        tmp = (b * c) + ((-4.0d0) * (t * a))
    else
        tmp = t_1
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = (b * c) + (j * (k * -27.0));
	double tmp;
	if (j <= -115.0) {
		tmp = t_1;
	} else if (j <= -2.1e-56) {
		tmp = -4.0 * (x * i);
	} else if (j <= 3.8e-97) {
		tmp = (b * c) + (-4.0 * (t * a));
	} else {
		tmp = t_1;
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	t_1 = (b * c) + (j * (k * -27.0))
	tmp = 0
	if j <= -115.0:
		tmp = t_1
	elif j <= -2.1e-56:
		tmp = -4.0 * (x * i)
	elif j <= 3.8e-97:
		tmp = (b * c) + (-4.0 * (t * a))
	else:
		tmp = t_1
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0)))
	tmp = 0.0
	if (j <= -115.0)
		tmp = t_1;
	elseif (j <= -2.1e-56)
		tmp = Float64(-4.0 * Float64(x * i));
	elseif (j <= 3.8e-97)
		tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a)));
	else
		tmp = t_1;
	end
	return tmp
end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	t_1 = (b * c) + (j * (k * -27.0));
	tmp = 0.0;
	if (j <= -115.0)
		tmp = t_1;
	elseif (j <= -2.1e-56)
		tmp = -4.0 * (x * i);
	elseif (j <= 3.8e-97)
		tmp = (b * c) + (-4.0 * (t * a));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -115.0], t$95$1, If[LessEqual[j, -2.1e-56], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.8e-97], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := b \cdot c + j \cdot \left(k \cdot -27\right)\\
\mathbf{if}\;j \leq -115:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;j \leq -2.1 \cdot 10^{-56}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\

\mathbf{elif}\;j \leq 3.8 \cdot 10^{-97}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if j < -115 or 3.8000000000000001e-97 < j

    1. Initial program 84.6%

      \[\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 \]
    2. Simplified85.5%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in b around inf 58.4%

      \[\leadsto \color{blue}{b \cdot c} + j \cdot \left(k \cdot -27\right) \]

    if -115 < j < -2.10000000000000006e-56

    1. Initial program 99.7%

      \[\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 \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. pow199.7%

        \[\leadsto \left(\left(\left(\color{blue}{{\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t\right)}^{1}} - \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 \]
      2. associate-*l*82.2%

        \[\leadsto \left(\left(\left({\color{blue}{\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot \left(z \cdot t\right)\right)}}^{1} - \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 \]
      3. *-commutative82.2%

        \[\leadsto \left(\left(\left({\left(\color{blue}{\left(y \cdot \left(x \cdot 18\right)\right)} \cdot \left(z \cdot t\right)\right)}^{1} - \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 \]
    4. Applied egg-rr82.2%

      \[\leadsto \left(\left(\left(\color{blue}{{\left(\left(y \cdot \left(x \cdot 18\right)\right) \cdot \left(z \cdot t\right)\right)}^{1}} - \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 \]
    5. Step-by-step derivation
      1. unpow182.2%

        \[\leadsto \left(\left(\left(\color{blue}{\left(y \cdot \left(x \cdot 18\right)\right) \cdot \left(z \cdot t\right)} - \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 \]
      2. associate-*l*82.2%

        \[\leadsto \left(\left(\left(\color{blue}{y \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot t\right)\right)} - \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 \]
      3. *-commutative82.2%

        \[\leadsto \left(\left(\left(y \cdot \left(\left(x \cdot 18\right) \cdot \color{blue}{\left(t \cdot z\right)}\right) - \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 \]
    6. Simplified82.2%

      \[\leadsto \left(\left(\left(\color{blue}{y \cdot \left(\left(x \cdot 18\right) \cdot \left(t \cdot z\right)\right)} - \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 \]
    7. Taylor expanded in i around inf 29.1%

      \[\leadsto \color{blue}{-4 \cdot \left(i \cdot x\right)} \]
    8. Step-by-step derivation
      1. *-commutative29.1%

        \[\leadsto -4 \cdot \color{blue}{\left(x \cdot i\right)} \]
    9. Simplified29.1%

      \[\leadsto \color{blue}{-4 \cdot \left(x \cdot i\right)} \]

    if -2.10000000000000006e-56 < j < 3.8000000000000001e-97

    1. Initial program 85.3%

      \[\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 \]
    2. Simplified85.5%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in x around 0 54.2%

      \[\leadsto \color{blue}{\left(-4 \cdot \left(a \cdot t\right) + b \cdot c\right) - 27 \cdot \left(j \cdot k\right)} \]
    5. Taylor expanded in j around 0 47.2%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right) + b \cdot c} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification53.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -115:\\ \;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\ \mathbf{elif}\;j \leq -2.1 \cdot 10^{-56}:\\ \;\;\;\;-4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;j \leq 3.8 \cdot 10^{-97}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 49.4% accurate, 1.3× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} \mathbf{if}\;j \leq -115:\\ \;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\ \mathbf{elif}\;j \leq -2.1 \cdot 10^{-56}:\\ \;\;\;\;-4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;j \leq 4.5 \cdot 10^{-99}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (if (<= j -115.0)
   (+ (* b c) (* j (* k -27.0)))
   (if (<= j -2.1e-56)
     (* -4.0 (* x i))
     (if (<= j 4.5e-99)
       (+ (* b c) (* -4.0 (* t a)))
       (- (* 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);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double tmp;
	if (j <= -115.0) {
		tmp = (b * c) + (j * (k * -27.0));
	} else if (j <= -2.1e-56) {
		tmp = -4.0 * (x * i);
	} else if (j <= 4.5e-99) {
		tmp = (b * c) + (-4.0 * (t * a));
	} 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.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: tmp
    if (j <= (-115.0d0)) then
        tmp = (b * c) + (j * (k * (-27.0d0)))
    else if (j <= (-2.1d-56)) then
        tmp = (-4.0d0) * (x * i)
    else if (j <= 4.5d-99) then
        tmp = (b * c) + ((-4.0d0) * (t * a))
    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;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double tmp;
	if (j <= -115.0) {
		tmp = (b * c) + (j * (k * -27.0));
	} else if (j <= -2.1e-56) {
		tmp = -4.0 * (x * i);
	} else if (j <= 4.5e-99) {
		tmp = (b * c) + (-4.0 * (t * a));
	} 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])
def code(x, y, z, t, a, b, c, i, j, k):
	tmp = 0
	if j <= -115.0:
		tmp = (b * c) + (j * (k * -27.0))
	elif j <= -2.1e-56:
		tmp = -4.0 * (x * i)
	elif j <= 4.5e-99:
		tmp = (b * c) + (-4.0 * (t * a))
	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])
function code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0
	if (j <= -115.0)
		tmp = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0)));
	elseif (j <= -2.1e-56)
		tmp = Float64(-4.0 * Float64(x * i));
	elseif (j <= 4.5e-99)
		tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a)));
	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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0;
	if (j <= -115.0)
		tmp = (b * c) + (j * (k * -27.0));
	elseif (j <= -2.1e-56)
		tmp = -4.0 * (x * i);
	elseif (j <= 4.5e-99)
		tmp = (b * c) + (-4.0 * (t * a));
	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.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[j, -115.0], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.1e-56], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.5e-99], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $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])\\
\\
\begin{array}{l}
\mathbf{if}\;j \leq -115:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\

\mathbf{elif}\;j \leq -2.1 \cdot 10^{-56}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\

\mathbf{elif}\;j \leq 4.5 \cdot 10^{-99}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if j < -115

    1. Initial program 90.8%

      \[\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 \]
    2. Simplified89.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in b around inf 59.8%

      \[\leadsto \color{blue}{b \cdot c} + j \cdot \left(k \cdot -27\right) \]

    if -115 < j < -2.10000000000000006e-56

    1. Initial program 99.7%

      \[\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 \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. pow199.7%

        \[\leadsto \left(\left(\left(\color{blue}{{\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t\right)}^{1}} - \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 \]
      2. associate-*l*82.2%

        \[\leadsto \left(\left(\left({\color{blue}{\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot \left(z \cdot t\right)\right)}}^{1} - \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 \]
      3. *-commutative82.2%

        \[\leadsto \left(\left(\left({\left(\color{blue}{\left(y \cdot \left(x \cdot 18\right)\right)} \cdot \left(z \cdot t\right)\right)}^{1} - \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 \]
    4. Applied egg-rr82.2%

      \[\leadsto \left(\left(\left(\color{blue}{{\left(\left(y \cdot \left(x \cdot 18\right)\right) \cdot \left(z \cdot t\right)\right)}^{1}} - \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 \]
    5. Step-by-step derivation
      1. unpow182.2%

        \[\leadsto \left(\left(\left(\color{blue}{\left(y \cdot \left(x \cdot 18\right)\right) \cdot \left(z \cdot t\right)} - \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 \]
      2. associate-*l*82.2%

        \[\leadsto \left(\left(\left(\color{blue}{y \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot t\right)\right)} - \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 \]
      3. *-commutative82.2%

        \[\leadsto \left(\left(\left(y \cdot \left(\left(x \cdot 18\right) \cdot \color{blue}{\left(t \cdot z\right)}\right) - \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 \]
    6. Simplified82.2%

      \[\leadsto \left(\left(\left(\color{blue}{y \cdot \left(\left(x \cdot 18\right) \cdot \left(t \cdot z\right)\right)} - \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 \]
    7. Taylor expanded in i around inf 29.1%

      \[\leadsto \color{blue}{-4 \cdot \left(i \cdot x\right)} \]
    8. Step-by-step derivation
      1. *-commutative29.1%

        \[\leadsto -4 \cdot \color{blue}{\left(x \cdot i\right)} \]
    9. Simplified29.1%

      \[\leadsto \color{blue}{-4 \cdot \left(x \cdot i\right)} \]

    if -2.10000000000000006e-56 < j < 4.5000000000000003e-99

    1. Initial program 85.3%

      \[\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 \]
    2. Simplified85.5%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in x around 0 54.2%

      \[\leadsto \color{blue}{\left(-4 \cdot \left(a \cdot t\right) + b \cdot c\right) - 27 \cdot \left(j \cdot k\right)} \]
    5. Taylor expanded in j around 0 47.2%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right) + b \cdot c} \]

    if 4.5000000000000003e-99 < j

    1. Initial program 79.9%

      \[\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 \]
    2. Simplified80.2%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 67.9%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
    5. Taylor expanded in i around 0 57.5%

      \[\leadsto \color{blue}{b \cdot c - 27 \cdot \left(j \cdot k\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification53.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -115:\\ \;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\ \mathbf{elif}\;j \leq -2.1 \cdot 10^{-56}:\\ \;\;\;\;-4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;j \leq 4.5 \cdot 10^{-99}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 21: 50.0% accurate, 1.3× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} \mathbf{if}\;j \leq -7.5 \cdot 10^{+81}:\\ \;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\ \mathbf{elif}\;j \leq -7.2 \cdot 10^{-248}:\\ \;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\ \mathbf{elif}\;j \leq 2.8 \cdot 10^{-97}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (if (<= j -7.5e+81)
   (+ (* b c) (* j (* k -27.0)))
   (if (<= j -7.2e-248)
     (- (* b c) (* x (* 4.0 i)))
     (if (<= j 2.8e-97)
       (+ (* b c) (* -4.0 (* t a)))
       (- (* 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);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double tmp;
	if (j <= -7.5e+81) {
		tmp = (b * c) + (j * (k * -27.0));
	} else if (j <= -7.2e-248) {
		tmp = (b * c) - (x * (4.0 * i));
	} else if (j <= 2.8e-97) {
		tmp = (b * c) + (-4.0 * (t * a));
	} 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.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: tmp
    if (j <= (-7.5d+81)) then
        tmp = (b * c) + (j * (k * (-27.0d0)))
    else if (j <= (-7.2d-248)) then
        tmp = (b * c) - (x * (4.0d0 * i))
    else if (j <= 2.8d-97) then
        tmp = (b * c) + ((-4.0d0) * (t * a))
    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;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double tmp;
	if (j <= -7.5e+81) {
		tmp = (b * c) + (j * (k * -27.0));
	} else if (j <= -7.2e-248) {
		tmp = (b * c) - (x * (4.0 * i));
	} else if (j <= 2.8e-97) {
		tmp = (b * c) + (-4.0 * (t * a));
	} 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])
def code(x, y, z, t, a, b, c, i, j, k):
	tmp = 0
	if j <= -7.5e+81:
		tmp = (b * c) + (j * (k * -27.0))
	elif j <= -7.2e-248:
		tmp = (b * c) - (x * (4.0 * i))
	elif j <= 2.8e-97:
		tmp = (b * c) + (-4.0 * (t * a))
	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])
function code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0
	if (j <= -7.5e+81)
		tmp = Float64(Float64(b * c) + Float64(j * Float64(k * -27.0)));
	elseif (j <= -7.2e-248)
		tmp = Float64(Float64(b * c) - Float64(x * Float64(4.0 * i)));
	elseif (j <= 2.8e-97)
		tmp = Float64(Float64(b * c) + Float64(-4.0 * Float64(t * a)));
	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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0;
	if (j <= -7.5e+81)
		tmp = (b * c) + (j * (k * -27.0));
	elseif (j <= -7.2e-248)
		tmp = (b * c) - (x * (4.0 * i));
	elseif (j <= 2.8e-97)
		tmp = (b * c) + (-4.0 * (t * a));
	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.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[j, -7.5e+81], N[(N[(b * c), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -7.2e-248], N[(N[(b * c), $MachinePrecision] - N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e-97], N[(N[(b * c), $MachinePrecision] + N[(-4.0 * N[(t * a), $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])\\
\\
\begin{array}{l}
\mathbf{if}\;j \leq -7.5 \cdot 10^{+81}:\\
\;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\

\mathbf{elif}\;j \leq -7.2 \cdot 10^{-248}:\\
\;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\

\mathbf{elif}\;j \leq 2.8 \cdot 10^{-97}:\\
\;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if j < -7.49999999999999973e81

    1. Initial program 91.2%

      \[\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 \]
    2. Simplified89.1%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in b around inf 72.6%

      \[\leadsto \color{blue}{b \cdot c} + j \cdot \left(k \cdot -27\right) \]

    if -7.49999999999999973e81 < j < -7.19999999999999969e-248

    1. Initial program 91.2%

      \[\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 \]
    2. Simplified89.8%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 54.2%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
    5. Taylor expanded in i around inf 45.7%

      \[\leadsto b \cdot c - \color{blue}{4 \cdot \left(i \cdot x\right)} \]
    6. Step-by-step derivation
      1. associate-*r*45.7%

        \[\leadsto b \cdot c - \color{blue}{\left(4 \cdot i\right) \cdot x} \]
      2. *-commutative45.7%

        \[\leadsto b \cdot c - \color{blue}{x \cdot \left(4 \cdot i\right)} \]
    7. Simplified45.7%

      \[\leadsto b \cdot c - \color{blue}{x \cdot \left(4 \cdot i\right)} \]

    if -7.19999999999999969e-248 < j < 2.8000000000000002e-97

    1. Initial program 82.7%

      \[\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 \]
    2. Simplified84.6%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in x around 0 60.7%

      \[\leadsto \color{blue}{\left(-4 \cdot \left(a \cdot t\right) + b \cdot c\right) - 27 \cdot \left(j \cdot k\right)} \]
    5. Taylor expanded in j around 0 54.1%

      \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right) + b \cdot c} \]

    if 2.8000000000000002e-97 < j

    1. Initial program 79.9%

      \[\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 \]
    2. Simplified80.2%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around 0 67.9%

      \[\leadsto \color{blue}{b \cdot c - \left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)} \]
    5. Taylor expanded in i around 0 57.5%

      \[\leadsto \color{blue}{b \cdot c - 27 \cdot \left(j \cdot k\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification56.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -7.5 \cdot 10^{+81}:\\ \;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\ \mathbf{elif}\;j \leq -7.2 \cdot 10^{-248}:\\ \;\;\;\;b \cdot c - x \cdot \left(4 \cdot i\right)\\ \mathbf{elif}\;j \leq 2.8 \cdot 10^{-97}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot c - 27 \cdot \left(j \cdot k\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 22: 30.6% accurate, 1.5× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := \left(j \cdot k\right) \cdot -27\\ \mathbf{if}\;j \leq -1.85 \cdot 10^{+81}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -1.02 \cdot 10^{-252}:\\ \;\;\;\;-4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;j \leq 1.4 \cdot 10^{-99}:\\ \;\;\;\;t \cdot \left(a \cdot -4\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1 (* (* j k) -27.0)))
   (if (<= j -1.85e+81)
     t_1
     (if (<= j -1.02e-252)
       (* -4.0 (* x i))
       (if (<= j 1.4e-99) (* t (* a -4.0)) t_1)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
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 (j <= -1.85e+81) {
		tmp = t_1;
	} else if (j <= -1.02e-252) {
		tmp = -4.0 * (x * i);
	} else if (j <= 1.4e-99) {
		tmp = t * (a * -4.0);
	} else {
		tmp = t_1;
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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 (j <= (-1.85d+81)) then
        tmp = t_1
    else if (j <= (-1.02d-252)) then
        tmp = (-4.0d0) * (x * i)
    else if (j <= 1.4d-99) then
        tmp = t * (a * (-4.0d0))
    else
        tmp = t_1
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
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 (j <= -1.85e+81) {
		tmp = t_1;
	} else if (j <= -1.02e-252) {
		tmp = -4.0 * (x * i);
	} else if (j <= 1.4e-99) {
		tmp = t * (a * -4.0);
	} else {
		tmp = t_1;
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	t_1 = (j * k) * -27.0
	tmp = 0
	if j <= -1.85e+81:
		tmp = t_1
	elif j <= -1.02e-252:
		tmp = -4.0 * (x * i)
	elif j <= 1.4e-99:
		tmp = t * (a * -4.0)
	else:
		tmp = t_1
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(Float64(j * k) * -27.0)
	tmp = 0.0
	if (j <= -1.85e+81)
		tmp = t_1;
	elseif (j <= -1.02e-252)
		tmp = Float64(-4.0 * Float64(x * i));
	elseif (j <= 1.4e-99)
		tmp = Float64(t * Float64(a * -4.0));
	else
		tmp = t_1;
	end
	return tmp
end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	t_1 = (j * k) * -27.0;
	tmp = 0.0;
	if (j <= -1.85e+81)
		tmp = t_1;
	elseif (j <= -1.02e-252)
		tmp = -4.0 * (x * i);
	elseif (j <= 1.4e-99)
		tmp = t * (a * -4.0);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
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[j, -1.85e+81], t$95$1, If[LessEqual[j, -1.02e-252], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.4e-99], N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := \left(j \cdot k\right) \cdot -27\\
\mathbf{if}\;j \leq -1.85 \cdot 10^{+81}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;j \leq -1.02 \cdot 10^{-252}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\

\mathbf{elif}\;j \leq 1.4 \cdot 10^{-99}:\\
\;\;\;\;t \cdot \left(a \cdot -4\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if j < -1.85e81 or 1.4e-99 < j

    1. Initial program 83.9%

      \[\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 \]
    2. Simplified84.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in j around inf 42.4%

      \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]

    if -1.85e81 < j < -1.02000000000000002e-252

    1. Initial program 91.2%

      \[\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 \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. pow191.2%

        \[\leadsto \left(\left(\left(\color{blue}{{\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t\right)}^{1}} - \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 \]
      2. associate-*l*90.9%

        \[\leadsto \left(\left(\left({\color{blue}{\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot \left(z \cdot t\right)\right)}}^{1} - \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 \]
      3. *-commutative90.9%

        \[\leadsto \left(\left(\left({\left(\color{blue}{\left(y \cdot \left(x \cdot 18\right)\right)} \cdot \left(z \cdot t\right)\right)}^{1} - \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 \]
    4. Applied egg-rr90.9%

      \[\leadsto \left(\left(\left(\color{blue}{{\left(\left(y \cdot \left(x \cdot 18\right)\right) \cdot \left(z \cdot t\right)\right)}^{1}} - \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 \]
    5. Step-by-step derivation
      1. unpow190.9%

        \[\leadsto \left(\left(\left(\color{blue}{\left(y \cdot \left(x \cdot 18\right)\right) \cdot \left(z \cdot t\right)} - \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 \]
      2. associate-*l*92.4%

        \[\leadsto \left(\left(\left(\color{blue}{y \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot t\right)\right)} - \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 \]
      3. *-commutative92.4%

        \[\leadsto \left(\left(\left(y \cdot \left(\left(x \cdot 18\right) \cdot \color{blue}{\left(t \cdot z\right)}\right) - \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 \]
    6. Simplified92.4%

      \[\leadsto \left(\left(\left(\color{blue}{y \cdot \left(\left(x \cdot 18\right) \cdot \left(t \cdot z\right)\right)} - \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 \]
    7. Taylor expanded in i around inf 32.5%

      \[\leadsto \color{blue}{-4 \cdot \left(i \cdot x\right)} \]
    8. Step-by-step derivation
      1. *-commutative32.5%

        \[\leadsto -4 \cdot \color{blue}{\left(x \cdot i\right)} \]
    9. Simplified32.5%

      \[\leadsto \color{blue}{-4 \cdot \left(x \cdot i\right)} \]

    if -1.02000000000000002e-252 < j < 1.4e-99

    1. Initial program 82.7%

      \[\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 \]
    2. Simplified84.6%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around inf 46.1%

      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]
    5. Taylor expanded in x around 0 23.1%

      \[\leadsto t \cdot \color{blue}{\left(-4 \cdot a\right)} \]
    6. Step-by-step derivation
      1. *-commutative23.1%

        \[\leadsto t \cdot \color{blue}{\left(a \cdot -4\right)} \]
    7. Simplified23.1%

      \[\leadsto t \cdot \color{blue}{\left(a \cdot -4\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification35.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.85 \cdot 10^{+81}:\\ \;\;\;\;\left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;j \leq -1.02 \cdot 10^{-252}:\\ \;\;\;\;-4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;j \leq 1.4 \cdot 10^{-99}:\\ \;\;\;\;t \cdot \left(a \cdot -4\right)\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot k\right) \cdot -27\\ \end{array} \]
  5. Add Preprocessing

Alternative 23: 33.0% accurate, 1.6× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} \mathbf{if}\;t \leq -1.6 \cdot 10^{-105} \lor \neg \left(t \leq 1.85 \cdot 10^{+36}\right):\\ \;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot k\right) \cdot -27\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (if (or (<= t -1.6e-105) (not (<= t 1.85e+36)))
   (* t (* 18.0 (* y (* x z))))
   (* (* j k) -27.0)))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double tmp;
	if ((t <= -1.6e-105) || !(t <= 1.85e+36)) {
		tmp = t * (18.0 * (y * (x * z)));
	} else {
		tmp = (j * k) * -27.0;
	}
	return tmp;
}
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: tmp
    if ((t <= (-1.6d-105)) .or. (.not. (t <= 1.85d+36))) then
        tmp = t * (18.0d0 * (y * (x * z)))
    else
        tmp = (j * k) * (-27.0d0)
    end if
    code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double tmp;
	if ((t <= -1.6e-105) || !(t <= 1.85e+36)) {
		tmp = t * (18.0 * (y * (x * z)));
	} else {
		tmp = (j * k) * -27.0;
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	tmp = 0
	if (t <= -1.6e-105) or not (t <= 1.85e+36):
		tmp = t * (18.0 * (y * (x * z)))
	else:
		tmp = (j * k) * -27.0
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0
	if ((t <= -1.6e-105) || !(t <= 1.85e+36))
		tmp = Float64(t * Float64(18.0 * Float64(y * Float64(x * z))));
	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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0;
	if ((t <= -1.6e-105) || ~((t <= 1.85e+36)))
		tmp = t * (18.0 * (y * (x * z)));
	else
		tmp = (j * k) * -27.0;
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[t, -1.6e-105], N[Not[LessEqual[t, 1.85e+36]], $MachinePrecision]], N[(t * N[(18.0 * N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.6 \cdot 10^{-105} \lor \neg \left(t \leq 1.85 \cdot 10^{+36}\right):\\
\;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\left(j \cdot k\right) \cdot -27\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.59999999999999991e-105 or 1.85000000000000014e36 < t

    1. Initial program 83.3%

      \[\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 \]
    2. Simplified83.6%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in t around inf 57.6%

      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]
    5. Taylor expanded in x around inf 36.1%

      \[\leadsto t \cdot \color{blue}{\left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative36.1%

        \[\leadsto t \cdot \left(18 \cdot \left(x \cdot \color{blue}{\left(z \cdot y\right)}\right)\right) \]
      2. associate-*r*39.9%

        \[\leadsto t \cdot \left(18 \cdot \color{blue}{\left(\left(x \cdot z\right) \cdot y\right)}\right) \]
    7. Simplified39.9%

      \[\leadsto t \cdot \color{blue}{\left(18 \cdot \left(\left(x \cdot z\right) \cdot y\right)\right)} \]

    if -1.59999999999999991e-105 < t < 1.85000000000000014e36

    1. Initial program 88.4%

      \[\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 \]
    2. Simplified87.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in j around inf 42.2%

      \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification40.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.6 \cdot 10^{-105} \lor \neg \left(t \leq 1.85 \cdot 10^{+36}\right):\\ \;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot k\right) \cdot -27\\ \end{array} \]
  5. Add Preprocessing

Alternative 24: 30.5% accurate, 2.1× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} \mathbf{if}\;j \leq -1.75 \cdot 10^{+81} \lor \neg \left(j \leq 2.7 \cdot 10^{-97}\right):\\ \;\;\;\;\left(j \cdot k\right) \cdot -27\\ \mathbf{else}:\\ \;\;\;\;-4 \cdot \left(x \cdot i\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (if (or (<= j -1.75e+81) (not (<= j 2.7e-97)))
   (* (* j k) -27.0)
   (* -4.0 (* x i))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double tmp;
	if ((j <= -1.75e+81) || !(j <= 2.7e-97)) {
		tmp = (j * k) * -27.0;
	} else {
		tmp = -4.0 * (x * 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.
real(8) function code(x, y, z, t, a, b, c, i, j, k)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8) :: tmp
    if ((j <= (-1.75d+81)) .or. (.not. (j <= 2.7d-97))) then
        tmp = (j * k) * (-27.0d0)
    else
        tmp = (-4.0d0) * (x * 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;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double tmp;
	if ((j <= -1.75e+81) || !(j <= 2.7e-97)) {
		tmp = (j * k) * -27.0;
	} else {
		tmp = -4.0 * (x * i);
	}
	return tmp;
}
[x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
def code(x, y, z, t, a, b, c, i, j, k):
	tmp = 0
	if (j <= -1.75e+81) or not (j <= 2.7e-97):
		tmp = (j * k) * -27.0
	else:
		tmp = -4.0 * (x * i)
	return tmp
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0
	if ((j <= -1.75e+81) || !(j <= 2.7e-97))
		tmp = Float64(Float64(j * k) * -27.0);
	else
		tmp = Float64(-4.0 * Float64(x * 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])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	tmp = 0.0;
	if ((j <= -1.75e+81) || ~((j <= 2.7e-97)))
		tmp = (j * k) * -27.0;
	else
		tmp = -4.0 * (x * 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.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[Or[LessEqual[j, -1.75e+81], N[Not[LessEqual[j, 2.7e-97]], $MachinePrecision]], N[(N[(j * k), $MachinePrecision] * -27.0), $MachinePrecision], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.75 \cdot 10^{+81} \lor \neg \left(j \leq 2.7 \cdot 10^{-97}\right):\\
\;\;\;\;\left(j \cdot k\right) \cdot -27\\

\mathbf{else}:\\
\;\;\;\;-4 \cdot \left(x \cdot i\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if j < -1.75e81 or 2.69999999999999985e-97 < j

    1. Initial program 83.9%

      \[\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 \]
    2. Simplified84.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in j around inf 42.4%

      \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]

    if -1.75e81 < j < 2.69999999999999985e-97

    1. Initial program 87.2%

      \[\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 \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. pow187.2%

        \[\leadsto \left(\left(\left(\color{blue}{{\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t\right)}^{1}} - \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 \]
      2. associate-*l*85.6%

        \[\leadsto \left(\left(\left({\color{blue}{\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot \left(z \cdot t\right)\right)}}^{1} - \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 \]
      3. *-commutative85.6%

        \[\leadsto \left(\left(\left({\left(\color{blue}{\left(y \cdot \left(x \cdot 18\right)\right)} \cdot \left(z \cdot t\right)\right)}^{1} - \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 \]
    4. Applied egg-rr85.6%

      \[\leadsto \left(\left(\left(\color{blue}{{\left(\left(y \cdot \left(x \cdot 18\right)\right) \cdot \left(z \cdot t\right)\right)}^{1}} - \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 \]
    5. Step-by-step derivation
      1. unpow185.6%

        \[\leadsto \left(\left(\left(\color{blue}{\left(y \cdot \left(x \cdot 18\right)\right) \cdot \left(z \cdot t\right)} - \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 \]
      2. associate-*l*87.1%

        \[\leadsto \left(\left(\left(\color{blue}{y \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot t\right)\right)} - \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 \]
      3. *-commutative87.1%

        \[\leadsto \left(\left(\left(y \cdot \left(\left(x \cdot 18\right) \cdot \color{blue}{\left(t \cdot z\right)}\right) - \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 \]
    6. Simplified87.1%

      \[\leadsto \left(\left(\left(\color{blue}{y \cdot \left(\left(x \cdot 18\right) \cdot \left(t \cdot z\right)\right)} - \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 \]
    7. Taylor expanded in i around inf 24.6%

      \[\leadsto \color{blue}{-4 \cdot \left(i \cdot x\right)} \]
    8. Step-by-step derivation
      1. *-commutative24.6%

        \[\leadsto -4 \cdot \color{blue}{\left(x \cdot i\right)} \]
    9. Simplified24.6%

      \[\leadsto \color{blue}{-4 \cdot \left(x \cdot i\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification33.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.75 \cdot 10^{+81} \lor \neg \left(j \leq 2.7 \cdot 10^{-97}\right):\\ \;\;\;\;\left(j \cdot k\right) \cdot -27\\ \mathbf{else}:\\ \;\;\;\;-4 \cdot \left(x \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 25: 23.9% accurate, 6.2× speedup?

\[\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])\\ \\ \left(j \cdot k\right) \cdot -27 \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k) :precision binary64 (* (* j k) -27.0))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	return (j * k) * -27.0;
}
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 = (j * k) * (-27.0d0)
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	return (j * k) * -27.0;
}
[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 (j * k) * -27.0
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(Float64(j * k) * -27.0)
end
x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
function tmp = code(x, y, z, t, a, b, c, i, j, k)
	tmp = (j * k) * -27.0;
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(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])\\
\\
\left(j \cdot k\right) \cdot -27
\end{array}
Derivation
  1. Initial program 85.5%

    \[\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 \]
  2. Simplified87.3%

    \[\leadsto \color{blue}{\mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right) + j \cdot \left(k \cdot -27\right)} \]
  3. Add Preprocessing
  4. Taylor expanded in j around inf 26.2%

    \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]
  5. Final simplification26.2%

    \[\leadsto \left(j \cdot k\right) \cdot -27 \]
  6. Add Preprocessing

Developer target: 89.3% accurate, 0.8× speedup?

\[\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} \]
(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}

Reproduce

?
herbie shell --seed 2024071 
(FPCore (x y z t a b c i j k)
  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, E"
  :precision binary64

  :alt
  (if (< t -1.6210815397541398e-69) (- (- (* (* 18.0 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4.0)) (- (* (* k j) 27.0) (* c b))) (if (< t 165.68027943805222) (+ (- (* (* 18.0 y) (* x (* z t))) (* (+ (* a t) (* i x)) 4.0)) (- (* c b) (* 27.0 (* k j)))) (- (- (* (* 18.0 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4.0)) (- (* (* k j) 27.0) (* c b)))))

  (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))