Linear.Matrix:det44 from linear-1.19.1.3

Percentage Accurate: 31.5% → 41.5%
Time: 46.6s
Alternatives: 30
Speedup: 4.5×

Specification

?
\[\begin{array}{l} \\ \left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (+
  (-
   (+
    (+
     (-
      (* (- (* x y) (* z t)) (- (* a b) (* c i)))
      (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
     (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
    (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
   (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
  (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
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 y0, double y1, double y2, double y3, double y4, double y5) {
	return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0))))
end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\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 30 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: 31.5% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (+
  (-
   (+
    (+
     (-
      (* (- (* x y) (* z t)) (- (* a b) (* c i)))
      (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
     (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
    (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
   (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
  (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
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 y0, double y1, double y2, double y3, double y4, double y5) {
	return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0))))
end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}

Alternative 1: 41.5% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(z \cdot t - x \cdot y\right)\\ t_2 := j \cdot y3 - k \cdot y2\\ \mathbf{if}\;y0 \leq -7 \cdot 10^{+119}:\\ \;\;\;\;i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + t\_1\right)\\ \mathbf{elif}\;y0 \leq -3.4 \cdot 10^{-130}:\\ \;\;\;\;j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;y0 \leq -4.8 \cdot 10^{-273}:\\ \;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(y0 \cdot t\_2 - i \cdot \left(t \cdot j - y \cdot k\right)\right)\right)\\ \mathbf{elif}\;y0 \leq 6.5 \cdot 10^{+78}:\\ \;\;\;\;i \cdot \left(y5 \cdot \left(\left(y \cdot k - t \cdot j\right) + \frac{y1 \cdot \left(x \cdot j - z \cdot k\right) + t\_1}{y5}\right)\right)\\ \mathbf{elif}\;y0 \leq 6 \cdot 10^{+191}:\\ \;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y0 \cdot \left(\left(y5 \cdot t\_2 + c \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (* c (- (* z t) (* x y)))) (t_2 (- (* j y3) (* k y2))))
   (if (<= y0 -7e+119)
     (* i (+ (* (- (* k y2) (* j y3)) (/ (- (* y1 y4) (* y0 y5)) i)) t_1))
     (if (<= y0 -3.4e-130)
       (*
        j
        (+
         (+ (* y3 (- (* y0 y5) (* y1 y4))) (* t (- (* b y4) (* i y5))))
         (* x (- (* i y1) (* b y0)))))
       (if (<= y0 -4.8e-273)
         (*
          y5
          (+
           (* a (- (* t y2) (* y y3)))
           (- (* y0 t_2) (* i (- (* t j) (* y k))))))
         (if (<= y0 6.5e+78)
           (*
            i
            (*
             y5
             (+
              (- (* y k) (* t j))
              (/ (+ (* y1 (- (* x j) (* z k))) t_1) y5))))
           (if (<= y0 6e+191)
             (* y2 (* x (- (* c y0) (* a y1))))
             (*
              y0
              (+
               (+ (* y5 t_2) (* c (- (* x y2) (* z y3))))
               (* b (- (* z k) (* x j))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = c * ((z * t) - (x * y));
	double t_2 = (j * y3) - (k * y2);
	double tmp;
	if (y0 <= -7e+119) {
		tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + t_1);
	} else if (y0 <= -3.4e-130) {
		tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))));
	} else if (y0 <= -4.8e-273) {
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * t_2) - (i * ((t * j) - (y * k)))));
	} else if (y0 <= 6.5e+78) {
		tmp = i * (y5 * (((y * k) - (t * j)) + (((y1 * ((x * j) - (z * k))) + t_1) / y5)));
	} else if (y0 <= 6e+191) {
		tmp = y2 * (x * ((c * y0) - (a * y1)));
	} else {
		tmp = y0 * (((y5 * t_2) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = c * ((z * t) - (x * y))
    t_2 = (j * y3) - (k * y2)
    if (y0 <= (-7d+119)) then
        tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + t_1)
    else if (y0 <= (-3.4d-130)) then
        tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))))
    else if (y0 <= (-4.8d-273)) then
        tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * t_2) - (i * ((t * j) - (y * k)))))
    else if (y0 <= 6.5d+78) then
        tmp = i * (y5 * (((y * k) - (t * j)) + (((y1 * ((x * j) - (z * k))) + t_1) / y5)))
    else if (y0 <= 6d+191) then
        tmp = y2 * (x * ((c * y0) - (a * y1)))
    else
        tmp = y0 * (((y5 * t_2) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = c * ((z * t) - (x * y));
	double t_2 = (j * y3) - (k * y2);
	double tmp;
	if (y0 <= -7e+119) {
		tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + t_1);
	} else if (y0 <= -3.4e-130) {
		tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))));
	} else if (y0 <= -4.8e-273) {
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * t_2) - (i * ((t * j) - (y * k)))));
	} else if (y0 <= 6.5e+78) {
		tmp = i * (y5 * (((y * k) - (t * j)) + (((y1 * ((x * j) - (z * k))) + t_1) / y5)));
	} else if (y0 <= 6e+191) {
		tmp = y2 * (x * ((c * y0) - (a * y1)));
	} else {
		tmp = y0 * (((y5 * t_2) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = c * ((z * t) - (x * y))
	t_2 = (j * y3) - (k * y2)
	tmp = 0
	if y0 <= -7e+119:
		tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + t_1)
	elif y0 <= -3.4e-130:
		tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))))
	elif y0 <= -4.8e-273:
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * t_2) - (i * ((t * j) - (y * k)))))
	elif y0 <= 6.5e+78:
		tmp = i * (y5 * (((y * k) - (t * j)) + (((y1 * ((x * j) - (z * k))) + t_1) / y5)))
	elif y0 <= 6e+191:
		tmp = y2 * (x * ((c * y0) - (a * y1)))
	else:
		tmp = y0 * (((y5 * t_2) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(c * Float64(Float64(z * t) - Float64(x * y)))
	t_2 = Float64(Float64(j * y3) - Float64(k * y2))
	tmp = 0.0
	if (y0 <= -7e+119)
		tmp = Float64(i * Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(Float64(y1 * y4) - Float64(y0 * y5)) / i)) + t_1));
	elseif (y0 <= -3.4e-130)
		tmp = Float64(j * Float64(Float64(Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))));
	elseif (y0 <= -4.8e-273)
		tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(y0 * t_2) - Float64(i * Float64(Float64(t * j) - Float64(y * k))))));
	elseif (y0 <= 6.5e+78)
		tmp = Float64(i * Float64(y5 * Float64(Float64(Float64(y * k) - Float64(t * j)) + Float64(Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + t_1) / y5))));
	elseif (y0 <= 6e+191)
		tmp = Float64(y2 * Float64(x * Float64(Float64(c * y0) - Float64(a * y1))));
	else
		tmp = Float64(y0 * Float64(Float64(Float64(y5 * t_2) + Float64(c * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(b * Float64(Float64(z * k) - Float64(x * j)))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = c * ((z * t) - (x * y));
	t_2 = (j * y3) - (k * y2);
	tmp = 0.0;
	if (y0 <= -7e+119)
		tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + t_1);
	elseif (y0 <= -3.4e-130)
		tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))));
	elseif (y0 <= -4.8e-273)
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * t_2) - (i * ((t * j) - (y * k)))));
	elseif (y0 <= 6.5e+78)
		tmp = i * (y5 * (((y * k) - (t * j)) + (((y1 * ((x * j) - (z * k))) + t_1) / y5)));
	elseif (y0 <= 6e+191)
		tmp = y2 * (x * ((c * y0) - (a * y1)));
	else
		tmp = y0 * (((y5 * t_2) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -7e+119], N[(i * N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -3.4e-130], N[(j * N[(N[(N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -4.8e-273], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * t$95$2), $MachinePrecision] - N[(i * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 6.5e+78], N[(i * N[(y5 * N[(N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] / y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 6e+191], N[(y2 * N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y0 * N[(N[(N[(y5 * t$95$2), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot t - x \cdot y\right)\\
t_2 := j \cdot y3 - k \cdot y2\\
\mathbf{if}\;y0 \leq -7 \cdot 10^{+119}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + t\_1\right)\\

\mathbf{elif}\;y0 \leq -3.4 \cdot 10^{-130}:\\
\;\;\;\;j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\

\mathbf{elif}\;y0 \leq -4.8 \cdot 10^{-273}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(y0 \cdot t\_2 - i \cdot \left(t \cdot j - y \cdot k\right)\right)\right)\\

\mathbf{elif}\;y0 \leq 6.5 \cdot 10^{+78}:\\
\;\;\;\;i \cdot \left(y5 \cdot \left(\left(y \cdot k - t \cdot j\right) + \frac{y1 \cdot \left(x \cdot j - z \cdot k\right) + t\_1}{y5}\right)\right)\\

\mathbf{elif}\;y0 \leq 6 \cdot 10^{+191}:\\
\;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\

\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(\left(y5 \cdot t\_2 + c \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y0 < -7.0000000000000001e119

    1. Initial program 22.8%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 19.6%

      \[\leadsto \left(\color{blue}{-1 \cdot \left(y5 \cdot \left(-1 \cdot \frac{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right) - \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)}{y5} + i \cdot \left(j \cdot t - k \cdot y\right)\right)\right)} - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in i around -inf 51.3%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    5. Taylor expanded in c around inf 62.2%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    6. Step-by-step derivation
      1. associate-*r*62.2%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      2. neg-mul-162.2%

        \[\leadsto \color{blue}{\left(-c\right)} \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      3. *-commutative62.2%

        \[\leadsto \left(-c\right) \cdot \left(i \cdot \left(\color{blue}{y \cdot x} - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    7. Simplified62.2%

      \[\leadsto \color{blue}{\left(-c\right) \cdot \left(i \cdot \left(y \cdot x - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    8. Taylor expanded in i around inf 69.8%

      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(c \cdot \left(x \cdot y - t \cdot z\right)\right) + \frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i}\right)} \]
    9. Step-by-step derivation
      1. +-commutative69.8%

        \[\leadsto i \cdot \color{blue}{\left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} + -1 \cdot \left(c \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} \]
      2. mul-1-neg69.8%

        \[\leadsto i \cdot \left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} + \color{blue}{\left(-c \cdot \left(x \cdot y - t \cdot z\right)\right)}\right) \]
      3. unsub-neg69.8%

        \[\leadsto i \cdot \color{blue}{\left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
      4. associate-/l*75.3%

        \[\leadsto i \cdot \left(\color{blue}{\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i}} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      5. *-commutative75.3%

        \[\leadsto i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{\color{blue}{y4 \cdot y1} - y0 \cdot y5}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      6. *-commutative75.3%

        \[\leadsto i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y4 \cdot y1 - \color{blue}{y5 \cdot y0}}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
    10. Simplified75.3%

      \[\leadsto \color{blue}{i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y4 \cdot y1 - y5 \cdot y0}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right)} \]

    if -7.0000000000000001e119 < y0 < -3.40000000000000005e-130

    1. Initial program 38.8%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 59.6%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]

    if -3.40000000000000005e-130 < y0 < -4.79999999999999963e-273

    1. Initial program 44.2%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 59.6%

      \[\leadsto \color{blue}{-1 \cdot \left(y5 \cdot \left(\left(i \cdot \left(j \cdot t - k \cdot y\right) + y0 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]

    if -4.79999999999999963e-273 < y0 < 6.50000000000000036e78

    1. Initial program 30.5%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 27.5%

      \[\leadsto \left(\color{blue}{-1 \cdot \left(y5 \cdot \left(-1 \cdot \frac{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right) - \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)}{y5} + i \cdot \left(j \cdot t - k \cdot y\right)\right)\right)} - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in i around -inf 43.8%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    5. Taylor expanded in i around inf 51.6%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} \]

    if 6.50000000000000036e78 < y0 < 5.9999999999999995e191

    1. Initial program 18.2%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 22.9%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in x around inf 55.2%

      \[\leadsto y2 \cdot \color{blue}{\left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]

    if 5.9999999999999995e191 < y0

    1. Initial program 32.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y0 around inf 75.2%

      \[\leadsto \color{blue}{y0 \cdot \left(\left(-1 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
  3. Recombined 6 regimes into one program.
  4. Final simplification60.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y0 \leq -7 \cdot 10^{+119}:\\ \;\;\;\;i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + c \cdot \left(z \cdot t - x \cdot y\right)\right)\\ \mathbf{elif}\;y0 \leq -3.4 \cdot 10^{-130}:\\ \;\;\;\;j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;y0 \leq -4.8 \cdot 10^{-273}:\\ \;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\right)\\ \mathbf{elif}\;y0 \leq 6.5 \cdot 10^{+78}:\\ \;\;\;\;i \cdot \left(y5 \cdot \left(\left(y \cdot k - t \cdot j\right) + \frac{y1 \cdot \left(x \cdot j - z \cdot k\right) + c \cdot \left(z \cdot t - x \cdot y\right)}{y5}\right)\right)\\ \mathbf{elif}\;y0 \leq 6 \cdot 10^{+191}:\\ \;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y0 \cdot \left(\left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) + c \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 58.5% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := k \cdot y2 - j \cdot y3\\ t_2 := y1 \cdot y4 - y0 \cdot y5\\ t_3 := z \cdot t - x \cdot y\\ t_4 := \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right) - \left(\left(b \cdot y4 - i \cdot y5\right) \cdot \left(y \cdot k - t \cdot j\right) - \left(\left(t\_3 \cdot \left(c \cdot i - a \cdot b\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(z \cdot k - x \cdot j\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)\right) + t\_1 \cdot t\_2\\ \mathbf{if}\;t\_4 \leq \infty:\\ \;\;\;\;t\_4\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t\_1 \cdot \frac{t\_2}{i} + c \cdot t\_3\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (- (* k y2) (* j y3)))
        (t_2 (- (* y1 y4) (* y0 y5)))
        (t_3 (- (* z t) (* x y)))
        (t_4
         (+
          (-
           (* (- (* t y2) (* y y3)) (- (* a y5) (* c y4)))
           (-
            (* (- (* b y4) (* i y5)) (- (* y k) (* t j)))
            (+
             (+
              (* t_3 (- (* c i) (* a b)))
              (* (- (* b y0) (* i y1)) (- (* z k) (* x j))))
             (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))))))
          (* t_1 t_2))))
   (if (<= t_4 INFINITY) t_4 (* i (+ (* t_1 (/ t_2 i)) (* c t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (k * y2) - (j * y3);
	double t_2 = (y1 * y4) - (y0 * y5);
	double t_3 = (z * t) - (x * y);
	double t_4 = ((((t * y2) - (y * y3)) * ((a * y5) - (c * y4))) - ((((b * y4) - (i * y5)) * ((y * k) - (t * j))) - (((t_3 * ((c * i) - (a * b))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))))) + (t_1 * t_2);
	double tmp;
	if (t_4 <= ((double) INFINITY)) {
		tmp = t_4;
	} else {
		tmp = i * ((t_1 * (t_2 / i)) + (c * t_3));
	}
	return tmp;
}
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 y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (k * y2) - (j * y3);
	double t_2 = (y1 * y4) - (y0 * y5);
	double t_3 = (z * t) - (x * y);
	double t_4 = ((((t * y2) - (y * y3)) * ((a * y5) - (c * y4))) - ((((b * y4) - (i * y5)) * ((y * k) - (t * j))) - (((t_3 * ((c * i) - (a * b))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))))) + (t_1 * t_2);
	double tmp;
	if (t_4 <= Double.POSITIVE_INFINITY) {
		tmp = t_4;
	} else {
		tmp = i * ((t_1 * (t_2 / i)) + (c * t_3));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = (k * y2) - (j * y3)
	t_2 = (y1 * y4) - (y0 * y5)
	t_3 = (z * t) - (x * y)
	t_4 = ((((t * y2) - (y * y3)) * ((a * y5) - (c * y4))) - ((((b * y4) - (i * y5)) * ((y * k) - (t * j))) - (((t_3 * ((c * i) - (a * b))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))))) + (t_1 * t_2)
	tmp = 0
	if t_4 <= math.inf:
		tmp = t_4
	else:
		tmp = i * ((t_1 * (t_2 / i)) + (c * t_3))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(k * y2) - Float64(j * y3))
	t_2 = Float64(Float64(y1 * y4) - Float64(y0 * y5))
	t_3 = Float64(Float64(z * t) - Float64(x * y))
	t_4 = Float64(Float64(Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(a * y5) - Float64(c * y4))) - Float64(Float64(Float64(Float64(b * y4) - Float64(i * y5)) * Float64(Float64(y * k) - Float64(t * j))) - Float64(Float64(Float64(t_3 * Float64(Float64(c * i) - Float64(a * b))) + Float64(Float64(Float64(b * y0) - Float64(i * y1)) * Float64(Float64(z * k) - Float64(x * j)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(c * y0) - Float64(a * y1)))))) + Float64(t_1 * t_2))
	tmp = 0.0
	if (t_4 <= Inf)
		tmp = t_4;
	else
		tmp = Float64(i * Float64(Float64(t_1 * Float64(t_2 / i)) + Float64(c * t_3)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = (k * y2) - (j * y3);
	t_2 = (y1 * y4) - (y0 * y5);
	t_3 = (z * t) - (x * y);
	t_4 = ((((t * y2) - (y * y3)) * ((a * y5) - (c * y4))) - ((((b * y4) - (i * y5)) * ((y * k) - (t * j))) - (((t_3 * ((c * i) - (a * b))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))))) + (t_1 * t_2);
	tmp = 0.0;
	if (t_4 <= Inf)
		tmp = t_4;
	else
		tmp = i * ((t_1 * (t_2 / i)) + (c * t_3));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision] * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t$95$3 * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * t$95$2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$4, Infinity], t$95$4, N[(i * N[(N[(t$95$1 * N[(t$95$2 / i), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := k \cdot y2 - j \cdot y3\\
t_2 := y1 \cdot y4 - y0 \cdot y5\\
t_3 := z \cdot t - x \cdot y\\
t_4 := \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right) - \left(\left(b \cdot y4 - i \cdot y5\right) \cdot \left(y \cdot k - t \cdot j\right) - \left(\left(t\_3 \cdot \left(c \cdot i - a \cdot b\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(z \cdot k - x \cdot j\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)\right) + t\_1 \cdot t\_2\\
\mathbf{if}\;t\_4 \leq \infty:\\
\;\;\;\;t\_4\\

\mathbf{else}:\\
\;\;\;\;i \cdot \left(t\_1 \cdot \frac{t\_2}{i} + c \cdot t\_3\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0

    1. Initial program 92.5%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing

    if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0))))

    1. Initial program 0.0%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 1.8%

      \[\leadsto \left(\color{blue}{-1 \cdot \left(y5 \cdot \left(-1 \cdot \frac{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right) - \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)}{y5} + i \cdot \left(j \cdot t - k \cdot y\right)\right)\right)} - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in i around -inf 31.7%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    5. Taylor expanded in c around inf 38.0%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    6. Step-by-step derivation
      1. associate-*r*38.0%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      2. neg-mul-138.0%

        \[\leadsto \color{blue}{\left(-c\right)} \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      3. *-commutative38.0%

        \[\leadsto \left(-c\right) \cdot \left(i \cdot \left(\color{blue}{y \cdot x} - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    7. Simplified38.0%

      \[\leadsto \color{blue}{\left(-c\right) \cdot \left(i \cdot \left(y \cdot x - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    8. Taylor expanded in i around inf 40.8%

      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(c \cdot \left(x \cdot y - t \cdot z\right)\right) + \frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i}\right)} \]
    9. Step-by-step derivation
      1. +-commutative40.8%

        \[\leadsto i \cdot \color{blue}{\left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} + -1 \cdot \left(c \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} \]
      2. mul-1-neg40.8%

        \[\leadsto i \cdot \left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} + \color{blue}{\left(-c \cdot \left(x \cdot y - t \cdot z\right)\right)}\right) \]
      3. unsub-neg40.8%

        \[\leadsto i \cdot \color{blue}{\left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
      4. associate-/l*42.6%

        \[\leadsto i \cdot \left(\color{blue}{\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i}} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      5. *-commutative42.6%

        \[\leadsto i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{\color{blue}{y4 \cdot y1} - y0 \cdot y5}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      6. *-commutative42.6%

        \[\leadsto i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y4 \cdot y1 - \color{blue}{y5 \cdot y0}}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
    10. Simplified42.6%

      \[\leadsto \color{blue}{i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y4 \cdot y1 - y5 \cdot y0}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification59.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right) - \left(\left(b \cdot y4 - i \cdot y5\right) \cdot \left(y \cdot k - t \cdot j\right) - \left(\left(\left(z \cdot t - x \cdot y\right) \cdot \left(c \cdot i - a \cdot b\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(z \cdot k - x \cdot j\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) \leq \infty:\\ \;\;\;\;\left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right) - \left(\left(b \cdot y4 - i \cdot y5\right) \cdot \left(y \cdot k - t \cdot j\right) - \left(\left(\left(z \cdot t - x \cdot y\right) \cdot \left(c \cdot i - a \cdot b\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(z \cdot k - x \cdot j\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + c \cdot \left(z \cdot t - x \cdot y\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 38.5% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + c \cdot \left(z \cdot t - x \cdot y\right)\right)\\ \mathbf{if}\;y0 \leq -4.5 \cdot 10^{+139}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y0 \leq -2.15 \cdot 10^{-278}:\\ \;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\ \mathbf{elif}\;y0 \leq 5 \cdot 10^{-166}:\\ \;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\ \mathbf{elif}\;y0 \leq 2.1 \cdot 10^{+105}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1
         (*
          i
          (+
           (* (- (* k y2) (* j y3)) (/ (- (* y1 y4) (* y0 y5)) i))
           (* c (- (* z t) (* x y)))))))
   (if (<= y0 -4.5e+139)
     t_1
     (if (<= y0 -2.15e-278)
       (*
        y3
        (+
         (* y (- (* c y4) (* a y5)))
         (+ (* j (- (* y0 y5) (* y1 y4))) (* z (- (* a y1) (* c y0))))))
       (if (<= y0 5e-166)
         (* k (* y (- (* i y5) (* b y4))))
         (if (<= y0 2.1e+105) t_1 (* j (* y0 (- (* y3 y5) (* x b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))));
	double tmp;
	if (y0 <= -4.5e+139) {
		tmp = t_1;
	} else if (y0 <= -2.15e-278) {
		tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
	} else if (y0 <= 5e-166) {
		tmp = k * (y * ((i * y5) - (b * y4)));
	} else if (y0 <= 2.1e+105) {
		tmp = t_1;
	} else {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))))
    if (y0 <= (-4.5d+139)) then
        tmp = t_1
    else if (y0 <= (-2.15d-278)) then
        tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))))
    else if (y0 <= 5d-166) then
        tmp = k * (y * ((i * y5) - (b * y4)))
    else if (y0 <= 2.1d+105) then
        tmp = t_1
    else
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))));
	double tmp;
	if (y0 <= -4.5e+139) {
		tmp = t_1;
	} else if (y0 <= -2.15e-278) {
		tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
	} else if (y0 <= 5e-166) {
		tmp = k * (y * ((i * y5) - (b * y4)));
	} else if (y0 <= 2.1e+105) {
		tmp = t_1;
	} else {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))))
	tmp = 0
	if y0 <= -4.5e+139:
		tmp = t_1
	elif y0 <= -2.15e-278:
		tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))))
	elif y0 <= 5e-166:
		tmp = k * (y * ((i * y5) - (b * y4)))
	elif y0 <= 2.1e+105:
		tmp = t_1
	else:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(i * Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(Float64(y1 * y4) - Float64(y0 * y5)) / i)) + Float64(c * Float64(Float64(z * t) - Float64(x * y)))))
	tmp = 0.0
	if (y0 <= -4.5e+139)
		tmp = t_1;
	elseif (y0 <= -2.15e-278)
		tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(z * Float64(Float64(a * y1) - Float64(c * y0))))));
	elseif (y0 <= 5e-166)
		tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4))));
	elseif (y0 <= 2.1e+105)
		tmp = t_1;
	else
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))));
	tmp = 0.0;
	if (y0 <= -4.5e+139)
		tmp = t_1;
	elseif (y0 <= -2.15e-278)
		tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
	elseif (y0 <= 5e-166)
		tmp = k * (y * ((i * y5) - (b * y4)));
	elseif (y0 <= 2.1e+105)
		tmp = t_1;
	else
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -4.5e+139], t$95$1, If[LessEqual[y0, -2.15e-278], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 5e-166], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 2.1e+105], t$95$1, N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + c \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{if}\;y0 \leq -4.5 \cdot 10^{+139}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y0 \leq -2.15 \cdot 10^{-278}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\

\mathbf{elif}\;y0 \leq 5 \cdot 10^{-166}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\

\mathbf{elif}\;y0 \leq 2.1 \cdot 10^{+105}:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y0 < -4.4999999999999999e139 or 5e-166 < y0 < 2.1000000000000001e105

    1. Initial program 27.8%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 25.9%

      \[\leadsto \left(\color{blue}{-1 \cdot \left(y5 \cdot \left(-1 \cdot \frac{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right) - \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)}{y5} + i \cdot \left(j \cdot t - k \cdot y\right)\right)\right)} - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in i around -inf 52.7%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    5. Taylor expanded in c around inf 53.1%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    6. Step-by-step derivation
      1. associate-*r*53.1%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      2. neg-mul-153.1%

        \[\leadsto \color{blue}{\left(-c\right)} \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      3. *-commutative53.1%

        \[\leadsto \left(-c\right) \cdot \left(i \cdot \left(\color{blue}{y \cdot x} - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    7. Simplified53.1%

      \[\leadsto \color{blue}{\left(-c\right) \cdot \left(i \cdot \left(y \cdot x - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    8. Taylor expanded in i around inf 61.2%

      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(c \cdot \left(x \cdot y - t \cdot z\right)\right) + \frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i}\right)} \]
    9. Step-by-step derivation
      1. +-commutative61.2%

        \[\leadsto i \cdot \color{blue}{\left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} + -1 \cdot \left(c \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} \]
      2. mul-1-neg61.2%

        \[\leadsto i \cdot \left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} + \color{blue}{\left(-c \cdot \left(x \cdot y - t \cdot z\right)\right)}\right) \]
      3. unsub-neg61.2%

        \[\leadsto i \cdot \color{blue}{\left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
      4. associate-/l*62.3%

        \[\leadsto i \cdot \left(\color{blue}{\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i}} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      5. *-commutative62.3%

        \[\leadsto i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{\color{blue}{y4 \cdot y1} - y0 \cdot y5}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      6. *-commutative62.3%

        \[\leadsto i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y4 \cdot y1 - \color{blue}{y5 \cdot y0}}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
    10. Simplified62.3%

      \[\leadsto \color{blue}{i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y4 \cdot y1 - y5 \cdot y0}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right)} \]

    if -4.4999999999999999e139 < y0 < -2.15e-278

    1. Initial program 40.3%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y3 around -inf 52.3%

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]

    if -2.15e-278 < y0 < 5e-166

    1. Initial program 30.3%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 42.9%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in y around inf 46.1%

      \[\leadsto k \cdot \color{blue}{\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg46.1%

        \[\leadsto k \cdot \color{blue}{\left(-y \cdot \left(b \cdot y4 - i \cdot y5\right)\right)} \]
    6. Simplified46.1%

      \[\leadsto k \cdot \color{blue}{\left(-y \cdot \left(b \cdot y4 - i \cdot y5\right)\right)} \]

    if 2.1000000000000001e105 < y0

    1. Initial program 25.0%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 45.7%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in y0 around inf 55.0%

      \[\leadsto \color{blue}{j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification55.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y0 \leq -4.5 \cdot 10^{+139}:\\ \;\;\;\;i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + c \cdot \left(z \cdot t - x \cdot y\right)\right)\\ \mathbf{elif}\;y0 \leq -2.15 \cdot 10^{-278}:\\ \;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\ \mathbf{elif}\;y0 \leq 5 \cdot 10^{-166}:\\ \;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\ \mathbf{elif}\;y0 \leq 2.1 \cdot 10^{+105}:\\ \;\;\;\;i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + c \cdot \left(z \cdot t - x \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 44.5% accurate, 2.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{if}\;j \leq -2.6 \cdot 10^{+92}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq 3.7 \cdot 10^{-60}:\\ \;\;\;\;i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + c \cdot \left(z \cdot t - x \cdot y\right)\right)\\ \mathbf{elif}\;j \leq 6.5 \cdot 10^{+177}:\\ \;\;\;\;y0 \cdot \left(\left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) + c \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1
         (*
          j
          (+
           (+ (* y3 (- (* y0 y5) (* y1 y4))) (* t (- (* b y4) (* i y5))))
           (* x (- (* i y1) (* b y0)))))))
   (if (<= j -2.6e+92)
     t_1
     (if (<= j 3.7e-60)
       (*
        i
        (+
         (* (- (* k y2) (* j y3)) (/ (- (* y1 y4) (* y0 y5)) i))
         (* c (- (* z t) (* x y)))))
       (if (<= j 6.5e+177)
         (*
          y0
          (+
           (+ (* y5 (- (* j y3) (* k y2))) (* c (- (* x y2) (* z y3))))
           (* b (- (* z k) (* x j)))))
         t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))));
	double tmp;
	if (j <= -2.6e+92) {
		tmp = t_1;
	} else if (j <= 3.7e-60) {
		tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))));
	} else if (j <= 6.5e+177) {
		tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))))
    if (j <= (-2.6d+92)) then
        tmp = t_1
    else if (j <= 3.7d-60) then
        tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))))
    else if (j <= 6.5d+177) then
        tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))))
    else
        tmp = t_1
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))));
	double tmp;
	if (j <= -2.6e+92) {
		tmp = t_1;
	} else if (j <= 3.7e-60) {
		tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))));
	} else if (j <= 6.5e+177) {
		tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))))
	tmp = 0
	if j <= -2.6e+92:
		tmp = t_1
	elif j <= 3.7e-60:
		tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))))
	elif j <= 6.5e+177:
		tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(j * Float64(Float64(Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))))
	tmp = 0.0
	if (j <= -2.6e+92)
		tmp = t_1;
	elseif (j <= 3.7e-60)
		tmp = Float64(i * Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(Float64(y1 * y4) - Float64(y0 * y5)) / i)) + Float64(c * Float64(Float64(z * t) - Float64(x * y)))));
	elseif (j <= 6.5e+177)
		tmp = Float64(y0 * Float64(Float64(Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2))) + Float64(c * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(b * Float64(Float64(z * k) - Float64(x * j)))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))));
	tmp = 0.0;
	if (j <= -2.6e+92)
		tmp = t_1;
	elseif (j <= 3.7e-60)
		tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))));
	elseif (j <= 6.5e+177)
		tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * N[(N[(N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.6e+92], t$95$1, If[LessEqual[j, 3.7e-60], N[(i * N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.5e+177], N[(y0 * N[(N[(N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;j \leq -2.6 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;j \leq 3.7 \cdot 10^{-60}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + c \cdot \left(z \cdot t - x \cdot y\right)\right)\\

\mathbf{elif}\;j \leq 6.5 \cdot 10^{+177}:\\
\;\;\;\;y0 \cdot \left(\left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) + c \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if j < -2.5999999999999999e92 or 6.5000000000000002e177 < j

    1. Initial program 28.9%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 65.7%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]

    if -2.5999999999999999e92 < j < 3.70000000000000025e-60

    1. Initial program 35.5%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 31.5%

      \[\leadsto \left(\color{blue}{-1 \cdot \left(y5 \cdot \left(-1 \cdot \frac{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right) - \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)}{y5} + i \cdot \left(j \cdot t - k \cdot y\right)\right)\right)} - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in i around -inf 45.2%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    5. Taylor expanded in c around inf 43.6%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    6. Step-by-step derivation
      1. associate-*r*43.6%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      2. neg-mul-143.6%

        \[\leadsto \color{blue}{\left(-c\right)} \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      3. *-commutative43.6%

        \[\leadsto \left(-c\right) \cdot \left(i \cdot \left(\color{blue}{y \cdot x} - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    7. Simplified43.6%

      \[\leadsto \color{blue}{\left(-c\right) \cdot \left(i \cdot \left(y \cdot x - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    8. Taylor expanded in i around inf 48.5%

      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(c \cdot \left(x \cdot y - t \cdot z\right)\right) + \frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i}\right)} \]
    9. Step-by-step derivation
      1. +-commutative48.5%

        \[\leadsto i \cdot \color{blue}{\left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} + -1 \cdot \left(c \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} \]
      2. mul-1-neg48.5%

        \[\leadsto i \cdot \left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} + \color{blue}{\left(-c \cdot \left(x \cdot y - t \cdot z\right)\right)}\right) \]
      3. unsub-neg48.5%

        \[\leadsto i \cdot \color{blue}{\left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
      4. associate-/l*50.6%

        \[\leadsto i \cdot \left(\color{blue}{\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i}} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      5. *-commutative50.6%

        \[\leadsto i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{\color{blue}{y4 \cdot y1} - y0 \cdot y5}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      6. *-commutative50.6%

        \[\leadsto i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y4 \cdot y1 - \color{blue}{y5 \cdot y0}}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
    10. Simplified50.6%

      \[\leadsto \color{blue}{i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y4 \cdot y1 - y5 \cdot y0}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right)} \]

    if 3.70000000000000025e-60 < j < 6.5000000000000002e177

    1. Initial program 24.2%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y0 around inf 62.2%

      \[\leadsto \color{blue}{y0 \cdot \left(\left(-1 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification56.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -2.6 \cdot 10^{+92}:\\ \;\;\;\;j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;j \leq 3.7 \cdot 10^{-60}:\\ \;\;\;\;i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + c \cdot \left(z \cdot t - x \cdot y\right)\right)\\ \mathbf{elif}\;j \leq 6.5 \cdot 10^{+177}:\\ \;\;\;\;y0 \cdot \left(\left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) + c \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 43.6% accurate, 2.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{if}\;j \leq -2.6 \cdot 10^{+92}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq 2.7 \cdot 10^{-99}:\\ \;\;\;\;i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + c \cdot \left(z \cdot t - x \cdot y\right)\right)\\ \mathbf{elif}\;j \leq 5.5 \cdot 10^{+69}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1
         (*
          j
          (+
           (+ (* y3 (- (* y0 y5) (* y1 y4))) (* t (- (* b y4) (* i y5))))
           (* x (- (* i y1) (* b y0)))))))
   (if (<= j -2.6e+92)
     t_1
     (if (<= j 2.7e-99)
       (*
        i
        (+
         (* (- (* k y2) (* j y3)) (/ (- (* y1 y4) (* y0 y5)) i))
         (* c (- (* z t) (* x y)))))
       (if (<= j 5.5e+69) (* i (* k (- (* y y5) (* z y1)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))));
	double tmp;
	if (j <= -2.6e+92) {
		tmp = t_1;
	} else if (j <= 2.7e-99) {
		tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))));
	} else if (j <= 5.5e+69) {
		tmp = i * (k * ((y * y5) - (z * y1)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))))
    if (j <= (-2.6d+92)) then
        tmp = t_1
    else if (j <= 2.7d-99) then
        tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))))
    else if (j <= 5.5d+69) then
        tmp = i * (k * ((y * y5) - (z * y1)))
    else
        tmp = t_1
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))));
	double tmp;
	if (j <= -2.6e+92) {
		tmp = t_1;
	} else if (j <= 2.7e-99) {
		tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))));
	} else if (j <= 5.5e+69) {
		tmp = i * (k * ((y * y5) - (z * y1)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))))
	tmp = 0
	if j <= -2.6e+92:
		tmp = t_1
	elif j <= 2.7e-99:
		tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))))
	elif j <= 5.5e+69:
		tmp = i * (k * ((y * y5) - (z * y1)))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(j * Float64(Float64(Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))))
	tmp = 0.0
	if (j <= -2.6e+92)
		tmp = t_1;
	elseif (j <= 2.7e-99)
		tmp = Float64(i * Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(Float64(y1 * y4) - Float64(y0 * y5)) / i)) + Float64(c * Float64(Float64(z * t) - Float64(x * y)))));
	elseif (j <= 5.5e+69)
		tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))));
	tmp = 0.0;
	if (j <= -2.6e+92)
		tmp = t_1;
	elseif (j <= 2.7e-99)
		tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))));
	elseif (j <= 5.5e+69)
		tmp = i * (k * ((y * y5) - (z * y1)));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * N[(N[(N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.6e+92], t$95$1, If[LessEqual[j, 2.7e-99], N[(i * N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.5e+69], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;j \leq -2.6 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;j \leq 2.7 \cdot 10^{-99}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + c \cdot \left(z \cdot t - x \cdot y\right)\right)\\

\mathbf{elif}\;j \leq 5.5 \cdot 10^{+69}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if j < -2.5999999999999999e92 or 5.50000000000000002e69 < j

    1. Initial program 28.4%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 62.6%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]

    if -2.5999999999999999e92 < j < 2.7e-99

    1. Initial program 37.0%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 31.8%

      \[\leadsto \left(\color{blue}{-1 \cdot \left(y5 \cdot \left(-1 \cdot \frac{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right) - \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)}{y5} + i \cdot \left(j \cdot t - k \cdot y\right)\right)\right)} - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in i around -inf 45.1%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    5. Taylor expanded in c around inf 42.7%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    6. Step-by-step derivation
      1. associate-*r*42.7%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      2. neg-mul-142.7%

        \[\leadsto \color{blue}{\left(-c\right)} \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      3. *-commutative42.7%

        \[\leadsto \left(-c\right) \cdot \left(i \cdot \left(\color{blue}{y \cdot x} - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    7. Simplified42.7%

      \[\leadsto \color{blue}{\left(-c\right) \cdot \left(i \cdot \left(y \cdot x - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    8. Taylor expanded in i around inf 48.7%

      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(c \cdot \left(x \cdot y - t \cdot z\right)\right) + \frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i}\right)} \]
    9. Step-by-step derivation
      1. +-commutative48.7%

        \[\leadsto i \cdot \color{blue}{\left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} + -1 \cdot \left(c \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} \]
      2. mul-1-neg48.7%

        \[\leadsto i \cdot \left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} + \color{blue}{\left(-c \cdot \left(x \cdot y - t \cdot z\right)\right)}\right) \]
      3. unsub-neg48.7%

        \[\leadsto i \cdot \color{blue}{\left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
      4. associate-/l*51.0%

        \[\leadsto i \cdot \left(\color{blue}{\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i}} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      5. *-commutative51.0%

        \[\leadsto i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{\color{blue}{y4 \cdot y1} - y0 \cdot y5}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      6. *-commutative51.0%

        \[\leadsto i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y4 \cdot y1 - \color{blue}{y5 \cdot y0}}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
    10. Simplified51.0%

      \[\leadsto \color{blue}{i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y4 \cdot y1 - y5 \cdot y0}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right)} \]

    if 2.7e-99 < j < 5.50000000000000002e69

    1. Initial program 20.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 30.5%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in i around inf 54.1%

      \[\leadsto \color{blue}{i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification55.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -2.6 \cdot 10^{+92}:\\ \;\;\;\;j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;j \leq 2.7 \cdot 10^{-99}:\\ \;\;\;\;i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + c \cdot \left(z \cdot t - x \cdot y\right)\right)\\ \mathbf{elif}\;j \leq 5.5 \cdot 10^{+69}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 43.6% accurate, 2.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.45 \cdot 10^{+224}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;t \leq 6.8 \cdot 10^{+236}:\\ \;\;\;\;i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + c \cdot \left(z \cdot t - x \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(t \cdot \left(-y2\right)\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= t -1.45e+224)
   (* j (* t (- (* b y4) (* i y5))))
   (if (<= t 6.8e+236)
     (*
      i
      (+
       (* (- (* k y2) (* j y3)) (/ (- (* y1 y4) (* y0 y5)) i))
       (* c (- (* z t) (* x y)))))
     (* c (* y4 (* t (- y2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -1.45e+224) {
		tmp = j * (t * ((b * y4) - (i * y5)));
	} else if (t <= 6.8e+236) {
		tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))));
	} else {
		tmp = c * (y4 * (t * -y2));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (t <= (-1.45d+224)) then
        tmp = j * (t * ((b * y4) - (i * y5)))
    else if (t <= 6.8d+236) then
        tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))))
    else
        tmp = c * (y4 * (t * -y2))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -1.45e+224) {
		tmp = j * (t * ((b * y4) - (i * y5)));
	} else if (t <= 6.8e+236) {
		tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))));
	} else {
		tmp = c * (y4 * (t * -y2));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if t <= -1.45e+224:
		tmp = j * (t * ((b * y4) - (i * y5)))
	elif t <= 6.8e+236:
		tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))))
	else:
		tmp = c * (y4 * (t * -y2))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (t <= -1.45e+224)
		tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5))));
	elseif (t <= 6.8e+236)
		tmp = Float64(i * Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(Float64(y1 * y4) - Float64(y0 * y5)) / i)) + Float64(c * Float64(Float64(z * t) - Float64(x * y)))));
	else
		tmp = Float64(c * Float64(y4 * Float64(t * Float64(-y2))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (t <= -1.45e+224)
		tmp = j * (t * ((b * y4) - (i * y5)));
	elseif (t <= 6.8e+236)
		tmp = i * ((((k * y2) - (j * y3)) * (((y1 * y4) - (y0 * y5)) / i)) + (c * ((z * t) - (x * y))));
	else
		tmp = c * (y4 * (t * -y2));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -1.45e+224], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.8e+236], N[(i * N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y4 * N[(t * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.45 \cdot 10^{+224}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\

\mathbf{elif}\;t \leq 6.8 \cdot 10^{+236}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + c \cdot \left(z \cdot t - x \cdot y\right)\right)\\

\mathbf{else}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(t \cdot \left(-y2\right)\right)\right)\\


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

    1. Initial program 14.3%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 57.1%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in t around inf 71.6%

      \[\leadsto \color{blue}{j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)} \]

    if -1.44999999999999995e224 < t < 6.80000000000000014e236

    1. Initial program 34.8%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 28.6%

      \[\leadsto \left(\color{blue}{-1 \cdot \left(y5 \cdot \left(-1 \cdot \frac{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right) - \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)}{y5} + i \cdot \left(j \cdot t - k \cdot y\right)\right)\right)} - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in i around -inf 43.2%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    5. Taylor expanded in c around inf 46.4%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    6. Step-by-step derivation
      1. associate-*r*46.4%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      2. neg-mul-146.4%

        \[\leadsto \color{blue}{\left(-c\right)} \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      3. *-commutative46.4%

        \[\leadsto \left(-c\right) \cdot \left(i \cdot \left(\color{blue}{y \cdot x} - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    7. Simplified46.4%

      \[\leadsto \color{blue}{\left(-c\right) \cdot \left(i \cdot \left(y \cdot x - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    8. Taylor expanded in i around inf 48.2%

      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(c \cdot \left(x \cdot y - t \cdot z\right)\right) + \frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i}\right)} \]
    9. Step-by-step derivation
      1. +-commutative48.2%

        \[\leadsto i \cdot \color{blue}{\left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} + -1 \cdot \left(c \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} \]
      2. mul-1-neg48.2%

        \[\leadsto i \cdot \left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} + \color{blue}{\left(-c \cdot \left(x \cdot y - t \cdot z\right)\right)}\right) \]
      3. unsub-neg48.2%

        \[\leadsto i \cdot \color{blue}{\left(\frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
      4. associate-/l*49.5%

        \[\leadsto i \cdot \left(\color{blue}{\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i}} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      5. *-commutative49.5%

        \[\leadsto i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{\color{blue}{y4 \cdot y1} - y0 \cdot y5}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      6. *-commutative49.5%

        \[\leadsto i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y4 \cdot y1 - \color{blue}{y5 \cdot y0}}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right) \]
    10. Simplified49.5%

      \[\leadsto \color{blue}{i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y4 \cdot y1 - y5 \cdot y0}{i} - c \cdot \left(x \cdot y - t \cdot z\right)\right)} \]

    if 6.80000000000000014e236 < t

    1. Initial program 8.8%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 24.6%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y4 around inf 39.2%

      \[\leadsto \color{blue}{y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)} \]
    5. Taylor expanded in k around 0 54.8%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(t \cdot \left(y2 \cdot y4\right)\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*54.8%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(t \cdot \left(y2 \cdot y4\right)\right)} \]
      2. neg-mul-154.8%

        \[\leadsto \color{blue}{\left(-c\right)} \cdot \left(t \cdot \left(y2 \cdot y4\right)\right) \]
      3. associate-*r*62.2%

        \[\leadsto \left(-c\right) \cdot \color{blue}{\left(\left(t \cdot y2\right) \cdot y4\right)} \]
    7. Simplified62.2%

      \[\leadsto \color{blue}{\left(-c\right) \cdot \left(\left(t \cdot y2\right) \cdot y4\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification52.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.45 \cdot 10^{+224}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;t \leq 6.8 \cdot 10^{+236}:\\ \;\;\;\;i \cdot \left(\left(k \cdot y2 - j \cdot y3\right) \cdot \frac{y1 \cdot y4 - y0 \cdot y5}{i} + c \cdot \left(z \cdot t - x \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(t \cdot \left(-y2\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 33.5% accurate, 2.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{if}\;y0 \leq -2.5 \cdot 10^{+149}:\\ \;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\ \mathbf{elif}\;y0 \leq -1.4 \cdot 10^{+49}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y0 \leq -1.08 \cdot 10^{-150}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;y0 \leq -4.7 \cdot 10^{-291}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y0 \leq 2.6 \cdot 10^{+107}:\\ \;\;\;\;k \cdot \left(y4 \cdot \left(b \cdot \left(y1 \cdot \frac{y2}{b} - y\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (* j (* y0 (- (* y3 y5) (* x b))))))
   (if (<= y0 -2.5e+149)
     (* y0 (* y5 (- (* j y3) (* k y2))))
     (if (<= y0 -1.4e+49)
       t_1
       (if (<= y0 -1.08e-150)
         (* j (* t (- (* b y4) (* i y5))))
         (if (<= y0 -4.7e-291)
           (* y1 (* y4 (- (* k y2) (* j y3))))
           (if (<= y0 2.6e+107)
             (* k (* y4 (* b (- (* y1 (/ y2 b)) y))))
             t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = j * (y0 * ((y3 * y5) - (x * b)));
	double tmp;
	if (y0 <= -2.5e+149) {
		tmp = y0 * (y5 * ((j * y3) - (k * y2)));
	} else if (y0 <= -1.4e+49) {
		tmp = t_1;
	} else if (y0 <= -1.08e-150) {
		tmp = j * (t * ((b * y4) - (i * y5)));
	} else if (y0 <= -4.7e-291) {
		tmp = y1 * (y4 * ((k * y2) - (j * y3)));
	} else if (y0 <= 2.6e+107) {
		tmp = k * (y4 * (b * ((y1 * (y2 / b)) - y)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = j * (y0 * ((y3 * y5) - (x * b)))
    if (y0 <= (-2.5d+149)) then
        tmp = y0 * (y5 * ((j * y3) - (k * y2)))
    else if (y0 <= (-1.4d+49)) then
        tmp = t_1
    else if (y0 <= (-1.08d-150)) then
        tmp = j * (t * ((b * y4) - (i * y5)))
    else if (y0 <= (-4.7d-291)) then
        tmp = y1 * (y4 * ((k * y2) - (j * y3)))
    else if (y0 <= 2.6d+107) then
        tmp = k * (y4 * (b * ((y1 * (y2 / b)) - y)))
    else
        tmp = t_1
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = j * (y0 * ((y3 * y5) - (x * b)));
	double tmp;
	if (y0 <= -2.5e+149) {
		tmp = y0 * (y5 * ((j * y3) - (k * y2)));
	} else if (y0 <= -1.4e+49) {
		tmp = t_1;
	} else if (y0 <= -1.08e-150) {
		tmp = j * (t * ((b * y4) - (i * y5)));
	} else if (y0 <= -4.7e-291) {
		tmp = y1 * (y4 * ((k * y2) - (j * y3)));
	} else if (y0 <= 2.6e+107) {
		tmp = k * (y4 * (b * ((y1 * (y2 / b)) - y)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = j * (y0 * ((y3 * y5) - (x * b)))
	tmp = 0
	if y0 <= -2.5e+149:
		tmp = y0 * (y5 * ((j * y3) - (k * y2)))
	elif y0 <= -1.4e+49:
		tmp = t_1
	elif y0 <= -1.08e-150:
		tmp = j * (t * ((b * y4) - (i * y5)))
	elif y0 <= -4.7e-291:
		tmp = y1 * (y4 * ((k * y2) - (j * y3)))
	elif y0 <= 2.6e+107:
		tmp = k * (y4 * (b * ((y1 * (y2 / b)) - y)))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))))
	tmp = 0.0
	if (y0 <= -2.5e+149)
		tmp = Float64(y0 * Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2))));
	elseif (y0 <= -1.4e+49)
		tmp = t_1;
	elseif (y0 <= -1.08e-150)
		tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5))));
	elseif (y0 <= -4.7e-291)
		tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3))));
	elseif (y0 <= 2.6e+107)
		tmp = Float64(k * Float64(y4 * Float64(b * Float64(Float64(y1 * Float64(y2 / b)) - y))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = j * (y0 * ((y3 * y5) - (x * b)));
	tmp = 0.0;
	if (y0 <= -2.5e+149)
		tmp = y0 * (y5 * ((j * y3) - (k * y2)));
	elseif (y0 <= -1.4e+49)
		tmp = t_1;
	elseif (y0 <= -1.08e-150)
		tmp = j * (t * ((b * y4) - (i * y5)));
	elseif (y0 <= -4.7e-291)
		tmp = y1 * (y4 * ((k * y2) - (j * y3)));
	elseif (y0 <= 2.6e+107)
		tmp = k * (y4 * (b * ((y1 * (y2 / b)) - y)));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -2.5e+149], N[(y0 * N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -1.4e+49], t$95$1, If[LessEqual[y0, -1.08e-150], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -4.7e-291], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 2.6e+107], N[(k * N[(y4 * N[(b * N[(N[(y1 * N[(y2 / b), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{if}\;y0 \leq -2.5 \cdot 10^{+149}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\

\mathbf{elif}\;y0 \leq -1.4 \cdot 10^{+49}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y0 \leq -1.08 \cdot 10^{-150}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\

\mathbf{elif}\;y0 \leq -4.7 \cdot 10^{-291}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\

\mathbf{elif}\;y0 \leq 2.6 \cdot 10^{+107}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(b \cdot \left(y1 \cdot \frac{y2}{b} - y\right)\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y0 < -2.49999999999999995e149

    1. Initial program 20.9%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 41.7%

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in y5 around inf 59.9%

      \[\leadsto \color{blue}{-1 \cdot \left(y0 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg59.9%

        \[\leadsto \color{blue}{-y0 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)} \]
    6. Simplified59.9%

      \[\leadsto \color{blue}{-y0 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)} \]

    if -2.49999999999999995e149 < y0 < -1.3999999999999999e49 or 2.6000000000000001e107 < y0

    1. Initial program 27.9%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 55.0%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in y0 around inf 60.1%

      \[\leadsto \color{blue}{j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)} \]

    if -1.3999999999999999e49 < y0 < -1.08000000000000003e-150

    1. Initial program 39.3%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 48.1%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in t around inf 46.1%

      \[\leadsto \color{blue}{j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)} \]

    if -1.08000000000000003e-150 < y0 < -4.6999999999999998e-291

    1. Initial program 48.5%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 40.2%

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in y1 around inf 44.1%

      \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)} \]

    if -4.6999999999999998e-291 < y0 < 2.6000000000000001e107

    1. Initial program 29.2%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 39.2%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in y4 around inf 34.3%

      \[\leadsto \color{blue}{k \cdot \left(y4 \cdot \left(-1 \cdot \left(b \cdot y\right) + y1 \cdot y2\right)\right)} \]
    5. Taylor expanded in b around inf 38.3%

      \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(b \cdot \left(-1 \cdot y + \frac{y1 \cdot y2}{b}\right)\right)}\right) \]
    6. Step-by-step derivation
      1. +-commutative38.3%

        \[\leadsto k \cdot \left(y4 \cdot \left(b \cdot \color{blue}{\left(\frac{y1 \cdot y2}{b} + -1 \cdot y\right)}\right)\right) \]
      2. mul-1-neg38.3%

        \[\leadsto k \cdot \left(y4 \cdot \left(b \cdot \left(\frac{y1 \cdot y2}{b} + \color{blue}{\left(-y\right)}\right)\right)\right) \]
      3. unsub-neg38.3%

        \[\leadsto k \cdot \left(y4 \cdot \left(b \cdot \color{blue}{\left(\frac{y1 \cdot y2}{b} - y\right)}\right)\right) \]
      4. associate-/l*39.3%

        \[\leadsto k \cdot \left(y4 \cdot \left(b \cdot \left(\color{blue}{y1 \cdot \frac{y2}{b}} - y\right)\right)\right) \]
    7. Simplified39.3%

      \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(b \cdot \left(y1 \cdot \frac{y2}{b} - y\right)\right)}\right) \]
  3. Recombined 5 regimes into one program.
  4. Final simplification48.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y0 \leq -2.5 \cdot 10^{+149}:\\ \;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\ \mathbf{elif}\;y0 \leq -1.4 \cdot 10^{+49}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;y0 \leq -1.08 \cdot 10^{-150}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;y0 \leq -4.7 \cdot 10^{-291}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y0 \leq 2.6 \cdot 10^{+107}:\\ \;\;\;\;k \cdot \left(y4 \cdot \left(b \cdot \left(y1 \cdot \frac{y2}{b} - y\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 40.9% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.5 \cdot 10^{+158}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \mathbf{elif}\;x \leq 1.9 \cdot 10^{-44}:\\ \;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\ \mathbf{elif}\;x \leq 2.5 \cdot 10^{+190}:\\ \;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= x -1.5e+158)
   (* b (* j (- (* t y4) (* x y0))))
   (if (<= x 1.9e-44)
     (+
      (* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5)))
      (* c (* i (- (* z t) (* x y)))))
     (if (<= x 2.5e+190)
       (* y5 (- (* y0 (- (* j y3) (* k y2))) (* i (- (* t j) (* y k)))))
       (* j (* x (- (* i y1) (* b y0))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (x <= -1.5e+158) {
		tmp = b * (j * ((t * y4) - (x * y0)));
	} else if (x <= 1.9e-44) {
		tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (c * (i * ((z * t) - (x * y))));
	} else if (x <= 2.5e+190) {
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))));
	} else {
		tmp = j * (x * ((i * y1) - (b * y0)));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (x <= (-1.5d+158)) then
        tmp = b * (j * ((t * y4) - (x * y0)))
    else if (x <= 1.9d-44) then
        tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (c * (i * ((z * t) - (x * y))))
    else if (x <= 2.5d+190) then
        tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))
    else
        tmp = j * (x * ((i * y1) - (b * y0)))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (x <= -1.5e+158) {
		tmp = b * (j * ((t * y4) - (x * y0)));
	} else if (x <= 1.9e-44) {
		tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (c * (i * ((z * t) - (x * y))));
	} else if (x <= 2.5e+190) {
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))));
	} else {
		tmp = j * (x * ((i * y1) - (b * y0)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if x <= -1.5e+158:
		tmp = b * (j * ((t * y4) - (x * y0)))
	elif x <= 1.9e-44:
		tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (c * (i * ((z * t) - (x * y))))
	elif x <= 2.5e+190:
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))
	else:
		tmp = j * (x * ((i * y1) - (b * y0)))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (x <= -1.5e+158)
		tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0))));
	elseif (x <= 1.9e-44)
		tmp = Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))));
	elseif (x <= 2.5e+190)
		tmp = Float64(y5 * Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(i * Float64(Float64(t * j) - Float64(y * k)))));
	else
		tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (x <= -1.5e+158)
		tmp = b * (j * ((t * y4) - (x * y0)));
	elseif (x <= 1.9e-44)
		tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (c * (i * ((z * t) - (x * y))));
	elseif (x <= 2.5e+190)
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))));
	else
		tmp = j * (x * ((i * y1) - (b * y0)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -1.5e+158], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.9e-44], N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e+190], N[(y5 * N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{+158}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\

\mathbf{elif}\;x \leq 1.9 \cdot 10^{-44}:\\
\;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\

\mathbf{elif}\;x \leq 2.5 \cdot 10^{+190}:\\
\;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\\

\mathbf{else}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\


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

    1. Initial program 32.3%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 55.4%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in b around inf 64.9%

      \[\leadsto \color{blue}{b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)} \]

    if -1.5e158 < x < 1.9e-44

    1. Initial program 35.0%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 27.7%

      \[\leadsto \left(\color{blue}{-1 \cdot \left(y5 \cdot \left(-1 \cdot \frac{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right) - \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)}{y5} + i \cdot \left(j \cdot t - k \cdot y\right)\right)\right)} - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in i around -inf 39.2%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    5. Taylor expanded in c around inf 45.1%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    6. Step-by-step derivation
      1. associate-*r*45.1%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      2. neg-mul-145.1%

        \[\leadsto \color{blue}{\left(-c\right)} \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      3. *-commutative45.1%

        \[\leadsto \left(-c\right) \cdot \left(i \cdot \left(\color{blue}{y \cdot x} - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    7. Simplified45.1%

      \[\leadsto \color{blue}{\left(-c\right) \cdot \left(i \cdot \left(y \cdot x - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]

    if 1.9e-44 < x < 2.50000000000000018e190

    1. Initial program 24.4%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 26.8%

      \[\leadsto \left(\color{blue}{-1 \cdot \left(y5 \cdot \left(-1 \cdot \frac{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right) - \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)}{y5} + i \cdot \left(j \cdot t - k \cdot y\right)\right)\right)} - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in i around -inf 51.5%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    5. Taylor expanded in y5 around -inf 61.2%

      \[\leadsto \color{blue}{-1 \cdot \left(y5 \cdot \left(i \cdot \left(j \cdot t - k \cdot y\right) + y0 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\right)} \]

    if 2.50000000000000018e190 < x

    1. Initial program 21.7%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 30.9%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in x around inf 57.0%

      \[\leadsto \color{blue}{j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification51.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.5 \cdot 10^{+158}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \mathbf{elif}\;x \leq 1.9 \cdot 10^{-44}:\\ \;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\ \mathbf{elif}\;x \leq 2.5 \cdot 10^{+190}:\\ \;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 41.0% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -7.6 \cdot 10^{+129}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;t \leq 1.2 \cdot 10^{-5}:\\ \;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + i \cdot \left(c \cdot \left(z \cdot t - x \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= t -7.6e+129)
   (* j (* t (- (* b y4) (* i y5))))
   (if (<= t 1.2e-5)
     (+
      (* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5)))
      (* i (* c (- (* z t) (* x y)))))
     (* y5 (- (* y0 (- (* j y3) (* k y2))) (* i (- (* t j) (* y k))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -7.6e+129) {
		tmp = j * (t * ((b * y4) - (i * y5)));
	} else if (t <= 1.2e-5) {
		tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (i * (c * ((z * t) - (x * y))));
	} else {
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (t <= (-7.6d+129)) then
        tmp = j * (t * ((b * y4) - (i * y5)))
    else if (t <= 1.2d-5) then
        tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (i * (c * ((z * t) - (x * y))))
    else
        tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -7.6e+129) {
		tmp = j * (t * ((b * y4) - (i * y5)));
	} else if (t <= 1.2e-5) {
		tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (i * (c * ((z * t) - (x * y))));
	} else {
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if t <= -7.6e+129:
		tmp = j * (t * ((b * y4) - (i * y5)))
	elif t <= 1.2e-5:
		tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (i * (c * ((z * t) - (x * y))))
	else:
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (t <= -7.6e+129)
		tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5))));
	elseif (t <= 1.2e-5)
		tmp = Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(i * Float64(c * Float64(Float64(z * t) - Float64(x * y)))));
	else
		tmp = Float64(y5 * Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(i * Float64(Float64(t * j) - Float64(y * k)))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (t <= -7.6e+129)
		tmp = j * (t * ((b * y4) - (i * y5)));
	elseif (t <= 1.2e-5)
		tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (i * (c * ((z * t) - (x * y))));
	else
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -7.6e+129], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.2e-5], N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y5 * N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.6 \cdot 10^{+129}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\

\mathbf{elif}\;t \leq 1.2 \cdot 10^{-5}:\\
\;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + i \cdot \left(c \cdot \left(z \cdot t - x \cdot y\right)\right)\\

\mathbf{else}:\\
\;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\\


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

    1. Initial program 20.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 44.8%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in t around inf 54.0%

      \[\leadsto \color{blue}{j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)} \]

    if -7.60000000000000011e129 < t < 1.2e-5

    1. Initial program 33.7%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 30.4%

      \[\leadsto \left(\color{blue}{-1 \cdot \left(y5 \cdot \left(-1 \cdot \frac{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right) - \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)}{y5} + i \cdot \left(j \cdot t - k \cdot y\right)\right)\right)} - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in i around -inf 43.7%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    5. Taylor expanded in c around inf 49.8%

      \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(c \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    6. Step-by-step derivation
      1. associate-*r*49.8%

        \[\leadsto i \cdot \color{blue}{\left(\left(-1 \cdot c\right) \cdot \left(x \cdot y - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      2. neg-mul-149.8%

        \[\leadsto i \cdot \left(\color{blue}{\left(-c\right)} \cdot \left(x \cdot y - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      3. *-commutative49.8%

        \[\leadsto i \cdot \left(\left(-c\right) \cdot \left(\color{blue}{y \cdot x} - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    7. Simplified49.8%

      \[\leadsto i \cdot \color{blue}{\left(\left(-c\right) \cdot \left(y \cdot x - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]

    if 1.2e-5 < t

    1. Initial program 35.6%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 24.9%

      \[\leadsto \left(\color{blue}{-1 \cdot \left(y5 \cdot \left(-1 \cdot \frac{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right) - \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)}{y5} + i \cdot \left(j \cdot t - k \cdot y\right)\right)\right)} - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in i around -inf 45.2%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    5. Taylor expanded in y5 around -inf 43.9%

      \[\leadsto \color{blue}{-1 \cdot \left(y5 \cdot \left(i \cdot \left(j \cdot t - k \cdot y\right) + y0 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification49.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -7.6 \cdot 10^{+129}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;t \leq 1.2 \cdot 10^{-5}:\\ \;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + i \cdot \left(c \cdot \left(z \cdot t - x \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 30.5% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y4 \leq -2 \cdot 10^{+67}:\\ \;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\ \mathbf{elif}\;y4 \leq -3.7 \cdot 10^{-240}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;y4 \leq 1.1 \cdot 10^{-148}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{elif}\;y4 \leq 1.05 \cdot 10^{-22}:\\ \;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\ \mathbf{elif}\;y4 \leq 8.6 \cdot 10^{+243}:\\ \;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= y4 -2e+67)
   (* y2 (* k (- (* y1 y4) (* y0 y5))))
   (if (<= y4 -3.7e-240)
     (* j (* y0 (- (* y3 y5) (* x b))))
     (if (<= y4 1.1e-148)
       (* i (* k (- (* y y5) (* z y1))))
       (if (<= y4 1.05e-22)
         (* y0 (* y5 (- (* j y3) (* k y2))))
         (if (<= y4 8.6e+243)
           (* k (* y (- (* i y5) (* b y4))))
           (* y2 (* y4 (- (* k y1) (* t c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (y4 <= -2e+67) {
		tmp = y2 * (k * ((y1 * y4) - (y0 * y5)));
	} else if (y4 <= -3.7e-240) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (y4 <= 1.1e-148) {
		tmp = i * (k * ((y * y5) - (z * y1)));
	} else if (y4 <= 1.05e-22) {
		tmp = y0 * (y5 * ((j * y3) - (k * y2)));
	} else if (y4 <= 8.6e+243) {
		tmp = k * (y * ((i * y5) - (b * y4)));
	} else {
		tmp = y2 * (y4 * ((k * y1) - (t * c)));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (y4 <= (-2d+67)) then
        tmp = y2 * (k * ((y1 * y4) - (y0 * y5)))
    else if (y4 <= (-3.7d-240)) then
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    else if (y4 <= 1.1d-148) then
        tmp = i * (k * ((y * y5) - (z * y1)))
    else if (y4 <= 1.05d-22) then
        tmp = y0 * (y5 * ((j * y3) - (k * y2)))
    else if (y4 <= 8.6d+243) then
        tmp = k * (y * ((i * y5) - (b * y4)))
    else
        tmp = y2 * (y4 * ((k * y1) - (t * c)))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (y4 <= -2e+67) {
		tmp = y2 * (k * ((y1 * y4) - (y0 * y5)));
	} else if (y4 <= -3.7e-240) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (y4 <= 1.1e-148) {
		tmp = i * (k * ((y * y5) - (z * y1)));
	} else if (y4 <= 1.05e-22) {
		tmp = y0 * (y5 * ((j * y3) - (k * y2)));
	} else if (y4 <= 8.6e+243) {
		tmp = k * (y * ((i * y5) - (b * y4)));
	} else {
		tmp = y2 * (y4 * ((k * y1) - (t * c)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if y4 <= -2e+67:
		tmp = y2 * (k * ((y1 * y4) - (y0 * y5)))
	elif y4 <= -3.7e-240:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	elif y4 <= 1.1e-148:
		tmp = i * (k * ((y * y5) - (z * y1)))
	elif y4 <= 1.05e-22:
		tmp = y0 * (y5 * ((j * y3) - (k * y2)))
	elif y4 <= 8.6e+243:
		tmp = k * (y * ((i * y5) - (b * y4)))
	else:
		tmp = y2 * (y4 * ((k * y1) - (t * c)))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (y4 <= -2e+67)
		tmp = Float64(y2 * Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))));
	elseif (y4 <= -3.7e-240)
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	elseif (y4 <= 1.1e-148)
		tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1))));
	elseif (y4 <= 1.05e-22)
		tmp = Float64(y0 * Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2))));
	elseif (y4 <= 8.6e+243)
		tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4))));
	else
		tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(t * c))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (y4 <= -2e+67)
		tmp = y2 * (k * ((y1 * y4) - (y0 * y5)));
	elseif (y4 <= -3.7e-240)
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	elseif (y4 <= 1.1e-148)
		tmp = i * (k * ((y * y5) - (z * y1)));
	elseif (y4 <= 1.05e-22)
		tmp = y0 * (y5 * ((j * y3) - (k * y2)));
	elseif (y4 <= 8.6e+243)
		tmp = k * (y * ((i * y5) - (b * y4)));
	else
		tmp = y2 * (y4 * ((k * y1) - (t * c)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -2e+67], N[(y2 * N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.7e-240], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.1e-148], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.05e-22], N[(y0 * N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 8.6e+243], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -2 \cdot 10^{+67}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\

\mathbf{elif}\;y4 \leq -3.7 \cdot 10^{-240}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\

\mathbf{elif}\;y4 \leq 1.1 \cdot 10^{-148}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\

\mathbf{elif}\;y4 \leq 1.05 \cdot 10^{-22}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\

\mathbf{elif}\;y4 \leq 8.6 \cdot 10^{+243}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\

\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y4 < -1.99999999999999997e67

    1. Initial program 27.6%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 30.5%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in k around inf 54.0%

      \[\leadsto y2 \cdot \color{blue}{\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]

    if -1.99999999999999997e67 < y4 < -3.7000000000000002e-240

    1. Initial program 36.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 41.1%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in y0 around inf 38.5%

      \[\leadsto \color{blue}{j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)} \]

    if -3.7000000000000002e-240 < y4 < 1.10000000000000009e-148

    1. Initial program 42.3%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 41.4%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in i around inf 37.5%

      \[\leadsto \color{blue}{i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)} \]

    if 1.10000000000000009e-148 < y4 < 1.05000000000000004e-22

    1. Initial program 25.0%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 35.8%

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in y5 around inf 57.5%

      \[\leadsto \color{blue}{-1 \cdot \left(y0 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg57.5%

        \[\leadsto \color{blue}{-y0 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)} \]
    6. Simplified57.5%

      \[\leadsto \color{blue}{-y0 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)} \]

    if 1.05000000000000004e-22 < y4 < 8.59999999999999928e243

    1. Initial program 24.5%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 31.9%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in y around inf 54.2%

      \[\leadsto k \cdot \color{blue}{\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg54.2%

        \[\leadsto k \cdot \color{blue}{\left(-y \cdot \left(b \cdot y4 - i \cdot y5\right)\right)} \]
    6. Simplified54.2%

      \[\leadsto k \cdot \color{blue}{\left(-y \cdot \left(b \cdot y4 - i \cdot y5\right)\right)} \]

    if 8.59999999999999928e243 < y4

    1. Initial program 23.5%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 35.5%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y4 around inf 59.3%

      \[\leadsto \color{blue}{y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)} \]
  3. Recombined 6 regimes into one program.
  4. Final simplification47.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y4 \leq -2 \cdot 10^{+67}:\\ \;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\ \mathbf{elif}\;y4 \leq -3.7 \cdot 10^{-240}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;y4 \leq 1.1 \cdot 10^{-148}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{elif}\;y4 \leq 1.05 \cdot 10^{-22}:\\ \;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\ \mathbf{elif}\;y4 \leq 8.6 \cdot 10^{+243}:\\ \;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 34.9% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -6.5 \cdot 10^{+88}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;t \leq -23000000000 \lor \neg \left(t \leq -2 \cdot 10^{-260}\right):\\ \;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= t -6.5e+88)
   (* j (* t (- (* b y4) (* i y5))))
   (if (or (<= t -23000000000.0) (not (<= t -2e-260)))
     (* y5 (- (* y0 (- (* j y3) (* k y2))) (* i (- (* t j) (* y k)))))
     (* y2 (* x (- (* c y0) (* a y1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -6.5e+88) {
		tmp = j * (t * ((b * y4) - (i * y5)));
	} else if ((t <= -23000000000.0) || !(t <= -2e-260)) {
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))));
	} else {
		tmp = y2 * (x * ((c * y0) - (a * y1)));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (t <= (-6.5d+88)) then
        tmp = j * (t * ((b * y4) - (i * y5)))
    else if ((t <= (-23000000000.0d0)) .or. (.not. (t <= (-2d-260)))) then
        tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))
    else
        tmp = y2 * (x * ((c * y0) - (a * y1)))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -6.5e+88) {
		tmp = j * (t * ((b * y4) - (i * y5)));
	} else if ((t <= -23000000000.0) || !(t <= -2e-260)) {
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))));
	} else {
		tmp = y2 * (x * ((c * y0) - (a * y1)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if t <= -6.5e+88:
		tmp = j * (t * ((b * y4) - (i * y5)))
	elif (t <= -23000000000.0) or not (t <= -2e-260):
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))
	else:
		tmp = y2 * (x * ((c * y0) - (a * y1)))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (t <= -6.5e+88)
		tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5))));
	elseif ((t <= -23000000000.0) || !(t <= -2e-260))
		tmp = Float64(y5 * Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(i * Float64(Float64(t * j) - Float64(y * k)))));
	else
		tmp = Float64(y2 * Float64(x * Float64(Float64(c * y0) - Float64(a * y1))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (t <= -6.5e+88)
		tmp = j * (t * ((b * y4) - (i * y5)));
	elseif ((t <= -23000000000.0) || ~((t <= -2e-260)))
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))));
	else
		tmp = y2 * (x * ((c * y0) - (a * y1)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -6.5e+88], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -23000000000.0], N[Not[LessEqual[t, -2e-260]], $MachinePrecision]], N[(y5 * N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y2 * N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.5 \cdot 10^{+88}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\

\mathbf{elif}\;t \leq -23000000000 \lor \neg \left(t \leq -2 \cdot 10^{-260}\right):\\
\;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\\

\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\


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

    1. Initial program 20.4%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 43.1%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in t around inf 50.8%

      \[\leadsto \color{blue}{j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)} \]

    if -6.5000000000000002e88 < t < -2.3e10 or -1.99999999999999992e-260 < t

    1. Initial program 33.5%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 27.6%

      \[\leadsto \left(\color{blue}{-1 \cdot \left(y5 \cdot \left(-1 \cdot \frac{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right) - \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)}{y5} + i \cdot \left(j \cdot t - k \cdot y\right)\right)\right)} - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in i around -inf 47.2%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    5. Taylor expanded in y5 around -inf 46.9%

      \[\leadsto \color{blue}{-1 \cdot \left(y5 \cdot \left(i \cdot \left(j \cdot t - k \cdot y\right) + y0 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\right)} \]

    if -2.3e10 < t < -1.99999999999999992e-260

    1. Initial program 38.6%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 40.8%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in x around inf 46.9%

      \[\leadsto y2 \cdot \color{blue}{\left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification47.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -6.5 \cdot 10^{+88}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;t \leq -23000000000 \lor \neg \left(t \leq -2 \cdot 10^{-260}\right):\\ \;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 39.9% accurate, 2.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.45 \cdot 10^{+102}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;t \leq 0.00058:\\ \;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) - c \cdot \left(y \cdot \left(x \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= t -1.45e+102)
   (* j (* t (- (* b y4) (* i y5))))
   (if (<= t 0.00058)
     (- (* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))) (* c (* y (* x i))))
     (* y5 (- (* y0 (- (* j y3) (* k y2))) (* i (- (* t j) (* y k))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -1.45e+102) {
		tmp = j * (t * ((b * y4) - (i * y5)));
	} else if (t <= 0.00058) {
		tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) - (c * (y * (x * i)));
	} else {
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (t <= (-1.45d+102)) then
        tmp = j * (t * ((b * y4) - (i * y5)))
    else if (t <= 0.00058d0) then
        tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) - (c * (y * (x * i)))
    else
        tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -1.45e+102) {
		tmp = j * (t * ((b * y4) - (i * y5)));
	} else if (t <= 0.00058) {
		tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) - (c * (y * (x * i)));
	} else {
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if t <= -1.45e+102:
		tmp = j * (t * ((b * y4) - (i * y5)))
	elif t <= 0.00058:
		tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) - (c * (y * (x * i)))
	else:
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (t <= -1.45e+102)
		tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5))));
	elseif (t <= 0.00058)
		tmp = Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5))) - Float64(c * Float64(y * Float64(x * i))));
	else
		tmp = Float64(y5 * Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(i * Float64(Float64(t * j) - Float64(y * k)))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (t <= -1.45e+102)
		tmp = j * (t * ((b * y4) - (i * y5)));
	elseif (t <= 0.00058)
		tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) - (c * (y * (x * i)));
	else
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -1.45e+102], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.00058], N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(y * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y5 * N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.45 \cdot 10^{+102}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\

\mathbf{elif}\;t \leq 0.00058:\\
\;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) - c \cdot \left(y \cdot \left(x \cdot i\right)\right)\\

\mathbf{else}:\\
\;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\\


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

    1. Initial program 19.7%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 43.7%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in t around inf 51.8%

      \[\leadsto \color{blue}{j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)} \]

    if -1.4500000000000001e102 < t < 5.8e-4

    1. Initial program 34.4%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 31.0%

      \[\leadsto \left(\color{blue}{-1 \cdot \left(y5 \cdot \left(-1 \cdot \frac{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right) - \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)}{y5} + i \cdot \left(j \cdot t - k \cdot y\right)\right)\right)} - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in i around -inf 44.1%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    5. Taylor expanded in c around inf 49.8%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    6. Step-by-step derivation
      1. associate-*r*49.8%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      2. neg-mul-149.8%

        \[\leadsto \color{blue}{\left(-c\right)} \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      3. *-commutative49.8%

        \[\leadsto \left(-c\right) \cdot \left(i \cdot \left(\color{blue}{y \cdot x} - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    7. Simplified49.8%

      \[\leadsto \color{blue}{\left(-c\right) \cdot \left(i \cdot \left(y \cdot x - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    8. Taylor expanded in y around inf 49.1%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(i \cdot \left(x \cdot y\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    9. Step-by-step derivation
      1. mul-1-neg49.1%

        \[\leadsto \color{blue}{\left(-c \cdot \left(i \cdot \left(x \cdot y\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      2. distribute-rgt-neg-in49.1%

        \[\leadsto \color{blue}{c \cdot \left(-i \cdot \left(x \cdot y\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      3. associate-*r*47.7%

        \[\leadsto c \cdot \left(-\color{blue}{\left(i \cdot x\right) \cdot y}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      4. distribute-lft-neg-out47.7%

        \[\leadsto c \cdot \color{blue}{\left(\left(-i \cdot x\right) \cdot y\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      5. distribute-rgt-neg-in47.7%

        \[\leadsto c \cdot \left(\color{blue}{\left(i \cdot \left(-x\right)\right)} \cdot y\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    10. Simplified47.7%

      \[\leadsto \color{blue}{c \cdot \left(\left(i \cdot \left(-x\right)\right) \cdot y\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]

    if 5.8e-4 < t

    1. Initial program 35.6%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 24.9%

      \[\leadsto \left(\color{blue}{-1 \cdot \left(y5 \cdot \left(-1 \cdot \frac{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right) - \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)}{y5} + i \cdot \left(j \cdot t - k \cdot y\right)\right)\right)} - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in i around -inf 45.2%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    5. Taylor expanded in y5 around -inf 43.9%

      \[\leadsto \color{blue}{-1 \cdot \left(y5 \cdot \left(i \cdot \left(j \cdot t - k \cdot y\right) + y0 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification47.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.45 \cdot 10^{+102}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;t \leq 0.00058:\\ \;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) - c \cdot \left(y \cdot \left(x \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 37.8% accurate, 2.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y1 \leq -2.1 \cdot 10^{+154}:\\ \;\;\;\;k \cdot \left(y4 \cdot \left(b \cdot \left(y1 \cdot \frac{y2}{b} - y\right)\right)\right)\\ \mathbf{elif}\;y1 \leq 3 \cdot 10^{+41}:\\ \;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4\right) + \left(c \cdot i\right) \cdot \left(z \cdot t - x \cdot y\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= y1 -2.1e+154)
   (* k (* y4 (* b (- (* y1 (/ y2 b)) y))))
   (if (<= y1 3e+41)
     (* y5 (- (* y0 (- (* j y3) (* k y2))) (* i (- (* t j) (* y k)))))
     (+ (* (- (* k y2) (* j y3)) (* y1 y4)) (* (* c i) (- (* z t) (* x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (y1 <= -2.1e+154) {
		tmp = k * (y4 * (b * ((y1 * (y2 / b)) - y)));
	} else if (y1 <= 3e+41) {
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))));
	} else {
		tmp = (((k * y2) - (j * y3)) * (y1 * y4)) + ((c * i) * ((z * t) - (x * y)));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (y1 <= (-2.1d+154)) then
        tmp = k * (y4 * (b * ((y1 * (y2 / b)) - y)))
    else if (y1 <= 3d+41) then
        tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))
    else
        tmp = (((k * y2) - (j * y3)) * (y1 * y4)) + ((c * i) * ((z * t) - (x * y)))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (y1 <= -2.1e+154) {
		tmp = k * (y4 * (b * ((y1 * (y2 / b)) - y)));
	} else if (y1 <= 3e+41) {
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))));
	} else {
		tmp = (((k * y2) - (j * y3)) * (y1 * y4)) + ((c * i) * ((z * t) - (x * y)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if y1 <= -2.1e+154:
		tmp = k * (y4 * (b * ((y1 * (y2 / b)) - y)))
	elif y1 <= 3e+41:
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))
	else:
		tmp = (((k * y2) - (j * y3)) * (y1 * y4)) + ((c * i) * ((z * t) - (x * y)))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (y1 <= -2.1e+154)
		tmp = Float64(k * Float64(y4 * Float64(b * Float64(Float64(y1 * Float64(y2 / b)) - y))));
	elseif (y1 <= 3e+41)
		tmp = Float64(y5 * Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(i * Float64(Float64(t * j) - Float64(y * k)))));
	else
		tmp = Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(y1 * y4)) + Float64(Float64(c * i) * Float64(Float64(z * t) - Float64(x * y))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (y1 <= -2.1e+154)
		tmp = k * (y4 * (b * ((y1 * (y2 / b)) - y)));
	elseif (y1 <= 3e+41)
		tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))));
	else
		tmp = (((k * y2) - (j * y3)) * (y1 * y4)) + ((c * i) * ((z * t) - (x * y)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y1, -2.1e+154], N[(k * N[(y4 * N[(b * N[(N[(y1 * N[(y2 / b), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 3e+41], N[(y5 * N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] + N[(N[(c * i), $MachinePrecision] * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y1 \leq -2.1 \cdot 10^{+154}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(b \cdot \left(y1 \cdot \frac{y2}{b} - y\right)\right)\right)\\

\mathbf{elif}\;y1 \leq 3 \cdot 10^{+41}:\\
\;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4\right) + \left(c \cdot i\right) \cdot \left(z \cdot t - x \cdot y\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y1 < -2.09999999999999994e154

    1. Initial program 28.2%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 26.1%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in y4 around inf 41.8%

      \[\leadsto \color{blue}{k \cdot \left(y4 \cdot \left(-1 \cdot \left(b \cdot y\right) + y1 \cdot y2\right)\right)} \]
    5. Taylor expanded in b around inf 46.8%

      \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(b \cdot \left(-1 \cdot y + \frac{y1 \cdot y2}{b}\right)\right)}\right) \]
    6. Step-by-step derivation
      1. +-commutative46.8%

        \[\leadsto k \cdot \left(y4 \cdot \left(b \cdot \color{blue}{\left(\frac{y1 \cdot y2}{b} + -1 \cdot y\right)}\right)\right) \]
      2. mul-1-neg46.8%

        \[\leadsto k \cdot \left(y4 \cdot \left(b \cdot \left(\frac{y1 \cdot y2}{b} + \color{blue}{\left(-y\right)}\right)\right)\right) \]
      3. unsub-neg46.8%

        \[\leadsto k \cdot \left(y4 \cdot \left(b \cdot \color{blue}{\left(\frac{y1 \cdot y2}{b} - y\right)}\right)\right) \]
      4. associate-/l*46.8%

        \[\leadsto k \cdot \left(y4 \cdot \left(b \cdot \left(\color{blue}{y1 \cdot \frac{y2}{b}} - y\right)\right)\right) \]
    7. Simplified46.8%

      \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(b \cdot \left(y1 \cdot \frac{y2}{b} - y\right)\right)}\right) \]

    if -2.09999999999999994e154 < y1 < 2.9999999999999998e41

    1. Initial program 33.2%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 28.2%

      \[\leadsto \left(\color{blue}{-1 \cdot \left(y5 \cdot \left(-1 \cdot \frac{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right) - \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)}{y5} + i \cdot \left(j \cdot t - k \cdot y\right)\right)\right)} - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in i around -inf 42.3%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    5. Taylor expanded in y5 around -inf 45.0%

      \[\leadsto \color{blue}{-1 \cdot \left(y5 \cdot \left(i \cdot \left(j \cdot t - k \cdot y\right) + y0 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\right)} \]

    if 2.9999999999999998e41 < y1

    1. Initial program 30.3%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y5 around -inf 21.6%

      \[\leadsto \left(\color{blue}{-1 \cdot \left(y5 \cdot \left(-1 \cdot \frac{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right) - \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)}{y5} + i \cdot \left(j \cdot t - k \cdot y\right)\right)\right)} - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in i around -inf 39.4%

      \[\leadsto \color{blue}{i \cdot \left(y5 \cdot \left(-1 \cdot \left(j \cdot t - k \cdot y\right) + -1 \cdot \frac{c \cdot \left(x \cdot y - t \cdot z\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)}{y5}\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    5. Taylor expanded in c around inf 53.8%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    6. Step-by-step derivation
      1. associate-*r*53.8%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      2. neg-mul-153.8%

        \[\leadsto \color{blue}{\left(-c\right)} \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
      3. *-commutative53.8%

        \[\leadsto \left(-c\right) \cdot \left(i \cdot \left(\color{blue}{y \cdot x} - t \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    7. Simplified53.8%

      \[\leadsto \color{blue}{\left(-c\right) \cdot \left(i \cdot \left(y \cdot x - t \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    8. Taylor expanded in y5 around 0 55.6%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)\right) + y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)} \]
    9. Step-by-step derivation
      1. +-commutative55.6%

        \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + -1 \cdot \left(c \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} \]
      2. mul-1-neg55.6%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \color{blue}{\left(-c \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)\right)} \]
      3. unsub-neg55.6%

        \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
      4. associate-*r*55.6%

        \[\leadsto \color{blue}{\left(y1 \cdot y4\right) \cdot \left(k \cdot y2 - j \cdot y3\right)} - c \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      5. *-commutative55.6%

        \[\leadsto \color{blue}{\left(y4 \cdot y1\right)} \cdot \left(k \cdot y2 - j \cdot y3\right) - c \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      6. associate-*r*53.8%

        \[\leadsto \left(y4 \cdot y1\right) \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right)} \]
    10. Simplified53.8%

      \[\leadsto \color{blue}{\left(y4 \cdot y1\right) \cdot \left(k \cdot y2 - j \cdot y3\right) - \left(c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification47.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y1 \leq -2.1 \cdot 10^{+154}:\\ \;\;\;\;k \cdot \left(y4 \cdot \left(b \cdot \left(y1 \cdot \frac{y2}{b} - y\right)\right)\right)\\ \mathbf{elif}\;y1 \leq 3 \cdot 10^{+41}:\\ \;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4\right) + \left(c \cdot i\right) \cdot \left(z \cdot t - x \cdot y\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 20.2% accurate, 3.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;k \leq -7200000:\\ \;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1\right)\right)\\ \mathbf{elif}\;k \leq 2.5 \cdot 10^{-191}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5\right)\right)\\ \mathbf{elif}\;k \leq 9.5 \cdot 10^{+25}:\\ \;\;\;\;k \cdot \left(i \cdot \left(z \cdot \left(-y1\right)\right)\right)\\ \mathbf{elif}\;k \leq 1.66 \cdot 10^{+177}:\\ \;\;\;\;\left(-k\right) \cdot \left(b \cdot \left(y \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= k -7200000.0)
   (* y2 (* y4 (* k y1)))
   (if (<= k 2.5e-191)
     (* t (* y2 (* a y5)))
     (if (<= k 9.5e+25)
       (* k (* i (* z (- y1))))
       (if (<= k 1.66e+177) (* (- k) (* b (* y y4))) (* b (* k (* z y0))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (k <= -7200000.0) {
		tmp = y2 * (y4 * (k * y1));
	} else if (k <= 2.5e-191) {
		tmp = t * (y2 * (a * y5));
	} else if (k <= 9.5e+25) {
		tmp = k * (i * (z * -y1));
	} else if (k <= 1.66e+177) {
		tmp = -k * (b * (y * y4));
	} else {
		tmp = b * (k * (z * y0));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (k <= (-7200000.0d0)) then
        tmp = y2 * (y4 * (k * y1))
    else if (k <= 2.5d-191) then
        tmp = t * (y2 * (a * y5))
    else if (k <= 9.5d+25) then
        tmp = k * (i * (z * -y1))
    else if (k <= 1.66d+177) then
        tmp = -k * (b * (y * y4))
    else
        tmp = b * (k * (z * y0))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (k <= -7200000.0) {
		tmp = y2 * (y4 * (k * y1));
	} else if (k <= 2.5e-191) {
		tmp = t * (y2 * (a * y5));
	} else if (k <= 9.5e+25) {
		tmp = k * (i * (z * -y1));
	} else if (k <= 1.66e+177) {
		tmp = -k * (b * (y * y4));
	} else {
		tmp = b * (k * (z * y0));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if k <= -7200000.0:
		tmp = y2 * (y4 * (k * y1))
	elif k <= 2.5e-191:
		tmp = t * (y2 * (a * y5))
	elif k <= 9.5e+25:
		tmp = k * (i * (z * -y1))
	elif k <= 1.66e+177:
		tmp = -k * (b * (y * y4))
	else:
		tmp = b * (k * (z * y0))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (k <= -7200000.0)
		tmp = Float64(y2 * Float64(y4 * Float64(k * y1)));
	elseif (k <= 2.5e-191)
		tmp = Float64(t * Float64(y2 * Float64(a * y5)));
	elseif (k <= 9.5e+25)
		tmp = Float64(k * Float64(i * Float64(z * Float64(-y1))));
	elseif (k <= 1.66e+177)
		tmp = Float64(Float64(-k) * Float64(b * Float64(y * y4)));
	else
		tmp = Float64(b * Float64(k * Float64(z * y0)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (k <= -7200000.0)
		tmp = y2 * (y4 * (k * y1));
	elseif (k <= 2.5e-191)
		tmp = t * (y2 * (a * y5));
	elseif (k <= 9.5e+25)
		tmp = k * (i * (z * -y1));
	elseif (k <= 1.66e+177)
		tmp = -k * (b * (y * y4));
	else
		tmp = b * (k * (z * y0));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[k, -7200000.0], N[(y2 * N[(y4 * N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2.5e-191], N[(t * N[(y2 * N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 9.5e+25], N[(k * N[(i * N[(z * (-y1)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.66e+177], N[((-k) * N[(b * N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(k * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;k \leq -7200000:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1\right)\right)\\

\mathbf{elif}\;k \leq 2.5 \cdot 10^{-191}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5\right)\right)\\

\mathbf{elif}\;k \leq 9.5 \cdot 10^{+25}:\\
\;\;\;\;k \cdot \left(i \cdot \left(z \cdot \left(-y1\right)\right)\right)\\

\mathbf{elif}\;k \leq 1.66 \cdot 10^{+177}:\\
\;\;\;\;\left(-k\right) \cdot \left(b \cdot \left(y \cdot y4\right)\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if k < -7.2e6

    1. Initial program 23.0%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 28.8%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y4 around inf 36.1%

      \[\leadsto \color{blue}{y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)} \]
    5. Taylor expanded in k around inf 27.4%

      \[\leadsto y2 \cdot \left(y4 \cdot \color{blue}{\left(k \cdot y1\right)}\right) \]

    if -7.2e6 < k < 2.5e-191

    1. Initial program 37.5%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 35.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in t around inf 34.3%

      \[\leadsto \color{blue}{t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    5. Taylor expanded in a around inf 27.0%

      \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(a \cdot y5\right)}\right) \]

    if 2.5e-191 < k < 9.5000000000000005e25

    1. Initial program 40.6%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 31.9%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in z around inf 32.4%

      \[\leadsto \color{blue}{k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    5. Taylor expanded in b around 0 27.8%

      \[\leadsto k \cdot \color{blue}{\left(-1 \cdot \left(i \cdot \left(y1 \cdot z\right)\right)\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg27.8%

        \[\leadsto k \cdot \color{blue}{\left(-i \cdot \left(y1 \cdot z\right)\right)} \]
    7. Simplified27.8%

      \[\leadsto k \cdot \color{blue}{\left(-i \cdot \left(y1 \cdot z\right)\right)} \]

    if 9.5000000000000005e25 < k < 1.65999999999999994e177

    1. Initial program 30.3%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 56.3%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in y4 around inf 41.9%

      \[\leadsto \color{blue}{k \cdot \left(y4 \cdot \left(-1 \cdot \left(b \cdot y\right) + y1 \cdot y2\right)\right)} \]
    5. Taylor expanded in b around inf 38.1%

      \[\leadsto k \cdot \color{blue}{\left(-1 \cdot \left(b \cdot \left(y \cdot y4\right)\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*38.1%

        \[\leadsto k \cdot \color{blue}{\left(\left(-1 \cdot b\right) \cdot \left(y \cdot y4\right)\right)} \]
      2. mul-1-neg38.1%

        \[\leadsto k \cdot \left(\color{blue}{\left(-b\right)} \cdot \left(y \cdot y4\right)\right) \]
    7. Simplified38.1%

      \[\leadsto k \cdot \color{blue}{\left(\left(-b\right) \cdot \left(y \cdot y4\right)\right)} \]

    if 1.65999999999999994e177 < k

    1. Initial program 19.9%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 40.5%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in z around inf 37.6%

      \[\leadsto \color{blue}{k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    5. Taylor expanded in b around inf 37.9%

      \[\leadsto \color{blue}{b \cdot \left(k \cdot \left(y0 \cdot z\right)\right)} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification29.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq -7200000:\\ \;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1\right)\right)\\ \mathbf{elif}\;k \leq 2.5 \cdot 10^{-191}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5\right)\right)\\ \mathbf{elif}\;k \leq 9.5 \cdot 10^{+25}:\\ \;\;\;\;k \cdot \left(i \cdot \left(z \cdot \left(-y1\right)\right)\right)\\ \mathbf{elif}\;k \leq 1.66 \cdot 10^{+177}:\\ \;\;\;\;\left(-k\right) \cdot \left(b \cdot \left(y \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 31.9% accurate, 3.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;j \leq -3.5 \cdot 10^{+266}:\\ \;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\ \mathbf{elif}\;j \leq -5 \cdot 10^{+99}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;j \leq 4.7 \cdot 10^{+69}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= j -3.5e+266)
   (* i (* j (- (* x y1) (* t y5))))
   (if (<= j -5e+99)
     (* j (* y0 (- (* y3 y5) (* x b))))
     (if (<= j 4.7e+69)
       (* i (* k (- (* y y5) (* z y1))))
       (* b (* j (- (* t y4) (* x y0))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (j <= -3.5e+266) {
		tmp = i * (j * ((x * y1) - (t * y5)));
	} else if (j <= -5e+99) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (j <= 4.7e+69) {
		tmp = i * (k * ((y * y5) - (z * y1)));
	} else {
		tmp = b * (j * ((t * y4) - (x * y0)));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (j <= (-3.5d+266)) then
        tmp = i * (j * ((x * y1) - (t * y5)))
    else if (j <= (-5d+99)) then
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    else if (j <= 4.7d+69) then
        tmp = i * (k * ((y * y5) - (z * y1)))
    else
        tmp = b * (j * ((t * y4) - (x * y0)))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (j <= -3.5e+266) {
		tmp = i * (j * ((x * y1) - (t * y5)));
	} else if (j <= -5e+99) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (j <= 4.7e+69) {
		tmp = i * (k * ((y * y5) - (z * y1)));
	} else {
		tmp = b * (j * ((t * y4) - (x * y0)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if j <= -3.5e+266:
		tmp = i * (j * ((x * y1) - (t * y5)))
	elif j <= -5e+99:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	elif j <= 4.7e+69:
		tmp = i * (k * ((y * y5) - (z * y1)))
	else:
		tmp = b * (j * ((t * y4) - (x * y0)))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (j <= -3.5e+266)
		tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5))));
	elseif (j <= -5e+99)
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	elseif (j <= 4.7e+69)
		tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1))));
	else
		tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (j <= -3.5e+266)
		tmp = i * (j * ((x * y1) - (t * y5)));
	elseif (j <= -5e+99)
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	elseif (j <= 4.7e+69)
		tmp = i * (k * ((y * y5) - (z * y1)));
	else
		tmp = b * (j * ((t * y4) - (x * y0)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -3.5e+266], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5e+99], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.7e+69], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;j \leq -3.5 \cdot 10^{+266}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\

\mathbf{elif}\;j \leq -5 \cdot 10^{+99}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\

\mathbf{elif}\;j \leq 4.7 \cdot 10^{+69}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\


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

    1. Initial program 37.5%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 87.5%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in i around -inf 87.6%

      \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(j \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg87.6%

        \[\leadsto \color{blue}{-i \cdot \left(j \cdot \left(t \cdot y5 - x \cdot y1\right)\right)} \]
    6. Simplified87.6%

      \[\leadsto \color{blue}{-i \cdot \left(j \cdot \left(t \cdot y5 - x \cdot y1\right)\right)} \]

    if -3.50000000000000025e266 < j < -5.00000000000000008e99

    1. Initial program 27.0%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 63.2%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in y0 around inf 54.1%

      \[\leadsto \color{blue}{j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)} \]

    if -5.00000000000000008e99 < j < 4.69999999999999996e69

    1. Initial program 33.8%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 38.7%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in i around inf 36.1%

      \[\leadsto \color{blue}{i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)} \]

    if 4.69999999999999996e69 < j

    1. Initial program 27.5%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 60.2%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in b around inf 51.7%

      \[\leadsto \color{blue}{b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification43.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -3.5 \cdot 10^{+266}:\\ \;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\ \mathbf{elif}\;j \leq -5 \cdot 10^{+99}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;j \leq 4.7 \cdot 10^{+69}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 21.0% accurate, 4.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y2 \cdot \left(y4 \cdot \left(k \cdot y1\right)\right)\\ \mathbf{if}\;k \leq -6500000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;k \leq 10^{-178}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5\right)\right)\\ \mathbf{elif}\;k \leq 7.4 \cdot 10^{+36}:\\ \;\;\;\;k \cdot \left(i \cdot \left(z \cdot \left(-y1\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (* y2 (* y4 (* k y1)))))
   (if (<= k -6500000.0)
     t_1
     (if (<= k 1e-178)
       (* t (* y2 (* a y5)))
       (if (<= k 7.4e+36) (* k (* i (* z (- y1)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = y2 * (y4 * (k * y1));
	double tmp;
	if (k <= -6500000.0) {
		tmp = t_1;
	} else if (k <= 1e-178) {
		tmp = t * (y2 * (a * y5));
	} else if (k <= 7.4e+36) {
		tmp = k * (i * (z * -y1));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = y2 * (y4 * (k * y1))
    if (k <= (-6500000.0d0)) then
        tmp = t_1
    else if (k <= 1d-178) then
        tmp = t * (y2 * (a * y5))
    else if (k <= 7.4d+36) then
        tmp = k * (i * (z * -y1))
    else
        tmp = t_1
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = y2 * (y4 * (k * y1));
	double tmp;
	if (k <= -6500000.0) {
		tmp = t_1;
	} else if (k <= 1e-178) {
		tmp = t * (y2 * (a * y5));
	} else if (k <= 7.4e+36) {
		tmp = k * (i * (z * -y1));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = y2 * (y4 * (k * y1))
	tmp = 0
	if k <= -6500000.0:
		tmp = t_1
	elif k <= 1e-178:
		tmp = t * (y2 * (a * y5))
	elif k <= 7.4e+36:
		tmp = k * (i * (z * -y1))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(y2 * Float64(y4 * Float64(k * y1)))
	tmp = 0.0
	if (k <= -6500000.0)
		tmp = t_1;
	elseif (k <= 1e-178)
		tmp = Float64(t * Float64(y2 * Float64(a * y5)));
	elseif (k <= 7.4e+36)
		tmp = Float64(k * Float64(i * Float64(z * Float64(-y1))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = y2 * (y4 * (k * y1));
	tmp = 0.0;
	if (k <= -6500000.0)
		tmp = t_1;
	elseif (k <= 1e-178)
		tmp = t * (y2 * (a * y5));
	elseif (k <= 7.4e+36)
		tmp = k * (i * (z * -y1));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y2 * N[(y4 * N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -6500000.0], t$95$1, If[LessEqual[k, 1e-178], N[(t * N[(y2 * N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 7.4e+36], N[(k * N[(i * N[(z * (-y1)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y2 \cdot \left(y4 \cdot \left(k \cdot y1\right)\right)\\
\mathbf{if}\;k \leq -6500000:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;k \leq 10^{-178}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5\right)\right)\\

\mathbf{elif}\;k \leq 7.4 \cdot 10^{+36}:\\
\;\;\;\;k \cdot \left(i \cdot \left(z \cdot \left(-y1\right)\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if k < -6.5e6 or 7.40000000000000058e36 < k

    1. Initial program 23.4%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 26.4%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y4 around inf 34.8%

      \[\leadsto \color{blue}{y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)} \]
    5. Taylor expanded in k around inf 28.9%

      \[\leadsto y2 \cdot \left(y4 \cdot \color{blue}{\left(k \cdot y1\right)}\right) \]

    if -6.5e6 < k < 9.9999999999999995e-179

    1. Initial program 37.5%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 35.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in t around inf 34.3%

      \[\leadsto \color{blue}{t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    5. Taylor expanded in a around inf 27.0%

      \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(a \cdot y5\right)}\right) \]

    if 9.9999999999999995e-179 < k < 7.40000000000000058e36

    1. Initial program 41.4%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 33.5%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in z around inf 29.8%

      \[\leadsto \color{blue}{k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    5. Taylor expanded in b around 0 25.5%

      \[\leadsto k \cdot \color{blue}{\left(-1 \cdot \left(i \cdot \left(y1 \cdot z\right)\right)\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg25.5%

        \[\leadsto k \cdot \color{blue}{\left(-i \cdot \left(y1 \cdot z\right)\right)} \]
    7. Simplified25.5%

      \[\leadsto k \cdot \color{blue}{\left(-i \cdot \left(y1 \cdot z\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification27.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq -6500000:\\ \;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1\right)\right)\\ \mathbf{elif}\;k \leq 10^{-178}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5\right)\right)\\ \mathbf{elif}\;k \leq 7.4 \cdot 10^{+36}:\\ \;\;\;\;k \cdot \left(i \cdot \left(z \cdot \left(-y1\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 20.3% accurate, 4.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{if}\;t \leq -5.4 \cdot 10^{+99}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 0.00037:\\ \;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2\right)\right)\\ \mathbf{elif}\;t \leq 2.7 \cdot 10^{+243}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (* a (* t (* y2 y5)))))
   (if (<= t -5.4e+99)
     t_1
     (if (<= t 0.00037)
       (* k (* y4 (* y1 y2)))
       (if (<= t 2.7e+243) (* k (* z (* b y0))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = a * (t * (y2 * y5));
	double tmp;
	if (t <= -5.4e+99) {
		tmp = t_1;
	} else if (t <= 0.00037) {
		tmp = k * (y4 * (y1 * y2));
	} else if (t <= 2.7e+243) {
		tmp = k * (z * (b * y0));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = a * (t * (y2 * y5))
    if (t <= (-5.4d+99)) then
        tmp = t_1
    else if (t <= 0.00037d0) then
        tmp = k * (y4 * (y1 * y2))
    else if (t <= 2.7d+243) then
        tmp = k * (z * (b * y0))
    else
        tmp = t_1
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = a * (t * (y2 * y5));
	double tmp;
	if (t <= -5.4e+99) {
		tmp = t_1;
	} else if (t <= 0.00037) {
		tmp = k * (y4 * (y1 * y2));
	} else if (t <= 2.7e+243) {
		tmp = k * (z * (b * y0));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = a * (t * (y2 * y5))
	tmp = 0
	if t <= -5.4e+99:
		tmp = t_1
	elif t <= 0.00037:
		tmp = k * (y4 * (y1 * y2))
	elif t <= 2.7e+243:
		tmp = k * (z * (b * y0))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(a * Float64(t * Float64(y2 * y5)))
	tmp = 0.0
	if (t <= -5.4e+99)
		tmp = t_1;
	elseif (t <= 0.00037)
		tmp = Float64(k * Float64(y4 * Float64(y1 * y2)));
	elseif (t <= 2.7e+243)
		tmp = Float64(k * Float64(z * Float64(b * y0)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = a * (t * (y2 * y5));
	tmp = 0.0;
	if (t <= -5.4e+99)
		tmp = t_1;
	elseif (t <= 0.00037)
		tmp = k * (y4 * (y1 * y2));
	elseif (t <= 2.7e+243)
		tmp = k * (z * (b * y0));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.4e+99], t$95$1, If[LessEqual[t, 0.00037], N[(k * N[(y4 * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e+243], N[(k * N[(z * N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{if}\;t \leq -5.4 \cdot 10^{+99}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 0.00037:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2\right)\right)\\

\mathbf{elif}\;t \leq 2.7 \cdot 10^{+243}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -5.39999999999999978e99 or 2.7000000000000001e243 < t

    1. Initial program 17.7%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 21.2%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in t around inf 36.1%

      \[\leadsto \color{blue}{t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    5. Taylor expanded in a around inf 33.0%

      \[\leadsto \color{blue}{a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)} \]

    if -5.39999999999999978e99 < t < 3.6999999999999999e-4

    1. Initial program 34.7%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 33.9%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y4 around inf 25.3%

      \[\leadsto \color{blue}{y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)} \]
    5. Taylor expanded in k around inf 21.1%

      \[\leadsto \color{blue}{k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*23.9%

        \[\leadsto k \cdot \color{blue}{\left(\left(y1 \cdot y2\right) \cdot y4\right)} \]
      2. *-commutative23.9%

        \[\leadsto k \cdot \color{blue}{\left(y4 \cdot \left(y1 \cdot y2\right)\right)} \]
    7. Simplified23.9%

      \[\leadsto \color{blue}{k \cdot \left(y4 \cdot \left(y1 \cdot y2\right)\right)} \]

    if 3.6999999999999999e-4 < t < 2.7000000000000001e243

    1. Initial program 40.7%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 46.9%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in z around inf 36.7%

      \[\leadsto \color{blue}{k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    5. Taylor expanded in b around inf 27.7%

      \[\leadsto k \cdot \left(z \cdot \color{blue}{\left(b \cdot y0\right)}\right) \]
  3. Recombined 3 regimes into one program.
  4. Add Preprocessing

Alternative 18: 20.4% accurate, 4.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{if}\;t \leq -5.8 \cdot 10^{+98}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 0.00105:\\ \;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2\right)\right)\\ \mathbf{elif}\;t \leq 5.6 \cdot 10^{+243}:\\ \;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (* a (* t (* y2 y5)))))
   (if (<= t -5.8e+98)
     t_1
     (if (<= t 0.00105)
       (* k (* y4 (* y1 y2)))
       (if (<= t 5.6e+243) (* k (* b (* z y0))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = a * (t * (y2 * y5));
	double tmp;
	if (t <= -5.8e+98) {
		tmp = t_1;
	} else if (t <= 0.00105) {
		tmp = k * (y4 * (y1 * y2));
	} else if (t <= 5.6e+243) {
		tmp = k * (b * (z * y0));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = a * (t * (y2 * y5))
    if (t <= (-5.8d+98)) then
        tmp = t_1
    else if (t <= 0.00105d0) then
        tmp = k * (y4 * (y1 * y2))
    else if (t <= 5.6d+243) then
        tmp = k * (b * (z * y0))
    else
        tmp = t_1
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = a * (t * (y2 * y5));
	double tmp;
	if (t <= -5.8e+98) {
		tmp = t_1;
	} else if (t <= 0.00105) {
		tmp = k * (y4 * (y1 * y2));
	} else if (t <= 5.6e+243) {
		tmp = k * (b * (z * y0));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = a * (t * (y2 * y5))
	tmp = 0
	if t <= -5.8e+98:
		tmp = t_1
	elif t <= 0.00105:
		tmp = k * (y4 * (y1 * y2))
	elif t <= 5.6e+243:
		tmp = k * (b * (z * y0))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(a * Float64(t * Float64(y2 * y5)))
	tmp = 0.0
	if (t <= -5.8e+98)
		tmp = t_1;
	elseif (t <= 0.00105)
		tmp = Float64(k * Float64(y4 * Float64(y1 * y2)));
	elseif (t <= 5.6e+243)
		tmp = Float64(k * Float64(b * Float64(z * y0)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = a * (t * (y2 * y5));
	tmp = 0.0;
	if (t <= -5.8e+98)
		tmp = t_1;
	elseif (t <= 0.00105)
		tmp = k * (y4 * (y1 * y2));
	elseif (t <= 5.6e+243)
		tmp = k * (b * (z * y0));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.8e+98], t$95$1, If[LessEqual[t, 0.00105], N[(k * N[(y4 * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.6e+243], N[(k * N[(b * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{if}\;t \leq -5.8 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 0.00105:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2\right)\right)\\

\mathbf{elif}\;t \leq 5.6 \cdot 10^{+243}:\\
\;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -5.8000000000000002e98 or 5.5999999999999998e243 < t

    1. Initial program 17.7%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 21.2%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in t around inf 36.1%

      \[\leadsto \color{blue}{t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    5. Taylor expanded in a around inf 33.0%

      \[\leadsto \color{blue}{a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)} \]

    if -5.8000000000000002e98 < t < 0.00104999999999999994

    1. Initial program 34.7%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 33.9%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y4 around inf 25.3%

      \[\leadsto \color{blue}{y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)} \]
    5. Taylor expanded in k around inf 21.1%

      \[\leadsto \color{blue}{k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*23.9%

        \[\leadsto k \cdot \color{blue}{\left(\left(y1 \cdot y2\right) \cdot y4\right)} \]
      2. *-commutative23.9%

        \[\leadsto k \cdot \color{blue}{\left(y4 \cdot \left(y1 \cdot y2\right)\right)} \]
    7. Simplified23.9%

      \[\leadsto \color{blue}{k \cdot \left(y4 \cdot \left(y1 \cdot y2\right)\right)} \]

    if 0.00104999999999999994 < t < 5.5999999999999998e243

    1. Initial program 40.7%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 46.9%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in z around inf 36.7%

      \[\leadsto \color{blue}{k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    5. Taylor expanded in b around inf 25.9%

      \[\leadsto k \cdot \color{blue}{\left(b \cdot \left(y0 \cdot z\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification26.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5.8 \cdot 10^{+98}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{elif}\;t \leq 0.00105:\\ \;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2\right)\right)\\ \mathbf{elif}\;t \leq 5.6 \cdot 10^{+243}:\\ \;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 20.2% accurate, 4.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{if}\;t \leq -1.05 \cdot 10^{+35}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 5.4 \cdot 10^{-5}:\\ \;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;t \leq 3.6 \cdot 10^{+244}:\\ \;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (* a (* t (* y2 y5)))))
   (if (<= t -1.05e+35)
     t_1
     (if (<= t 5.4e-5)
       (* k (* y1 (* y2 y4)))
       (if (<= t 3.6e+244) (* k (* b (* z y0))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = a * (t * (y2 * y5));
	double tmp;
	if (t <= -1.05e+35) {
		tmp = t_1;
	} else if (t <= 5.4e-5) {
		tmp = k * (y1 * (y2 * y4));
	} else if (t <= 3.6e+244) {
		tmp = k * (b * (z * y0));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = a * (t * (y2 * y5))
    if (t <= (-1.05d+35)) then
        tmp = t_1
    else if (t <= 5.4d-5) then
        tmp = k * (y1 * (y2 * y4))
    else if (t <= 3.6d+244) then
        tmp = k * (b * (z * y0))
    else
        tmp = t_1
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = a * (t * (y2 * y5));
	double tmp;
	if (t <= -1.05e+35) {
		tmp = t_1;
	} else if (t <= 5.4e-5) {
		tmp = k * (y1 * (y2 * y4));
	} else if (t <= 3.6e+244) {
		tmp = k * (b * (z * y0));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = a * (t * (y2 * y5))
	tmp = 0
	if t <= -1.05e+35:
		tmp = t_1
	elif t <= 5.4e-5:
		tmp = k * (y1 * (y2 * y4))
	elif t <= 3.6e+244:
		tmp = k * (b * (z * y0))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(a * Float64(t * Float64(y2 * y5)))
	tmp = 0.0
	if (t <= -1.05e+35)
		tmp = t_1;
	elseif (t <= 5.4e-5)
		tmp = Float64(k * Float64(y1 * Float64(y2 * y4)));
	elseif (t <= 3.6e+244)
		tmp = Float64(k * Float64(b * Float64(z * y0)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = a * (t * (y2 * y5));
	tmp = 0.0;
	if (t <= -1.05e+35)
		tmp = t_1;
	elseif (t <= 5.4e-5)
		tmp = k * (y1 * (y2 * y4));
	elseif (t <= 3.6e+244)
		tmp = k * (b * (z * y0));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e+35], t$95$1, If[LessEqual[t, 5.4e-5], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e+244], N[(k * N[(b * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 5.4 \cdot 10^{-5}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\

\mathbf{elif}\;t \leq 3.6 \cdot 10^{+244}:\\
\;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -1.0499999999999999e35 or 3.6e244 < t

    1. Initial program 21.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 21.4%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in t around inf 33.1%

      \[\leadsto \color{blue}{t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    5. Taylor expanded in a around inf 30.4%

      \[\leadsto \color{blue}{a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)} \]

    if -1.0499999999999999e35 < t < 5.3999999999999998e-5

    1. Initial program 34.0%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 34.6%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y4 around inf 26.2%

      \[\leadsto \color{blue}{y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)} \]
    5. Taylor expanded in k around inf 22.5%

      \[\leadsto \color{blue}{k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)} \]

    if 5.3999999999999998e-5 < t < 3.6e244

    1. Initial program 40.7%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 46.9%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in z around inf 36.7%

      \[\leadsto \color{blue}{k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    5. Taylor expanded in b around inf 25.9%

      \[\leadsto k \cdot \color{blue}{\left(b \cdot \left(y0 \cdot z\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification25.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.05 \cdot 10^{+35}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{elif}\;t \leq 5.4 \cdot 10^{-5}:\\ \;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;t \leq 3.6 \cdot 10^{+244}:\\ \;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 32.2% accurate, 4.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;j \leq -2.2 \cdot 10^{-15} \lor \neg \left(j \leq 9.8 \cdot 10^{+69}\right):\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (or (<= j -2.2e-15) (not (<= j 9.8e+69)))
   (* b (* j (- (* t y4) (* x y0))))
   (* i (* k (- (* y y5) (* z y1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if ((j <= -2.2e-15) || !(j <= 9.8e+69)) {
		tmp = b * (j * ((t * y4) - (x * y0)));
	} else {
		tmp = i * (k * ((y * y5) - (z * y1)));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if ((j <= (-2.2d-15)) .or. (.not. (j <= 9.8d+69))) then
        tmp = b * (j * ((t * y4) - (x * y0)))
    else
        tmp = i * (k * ((y * y5) - (z * y1)))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if ((j <= -2.2e-15) || !(j <= 9.8e+69)) {
		tmp = b * (j * ((t * y4) - (x * y0)));
	} else {
		tmp = i * (k * ((y * y5) - (z * y1)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if (j <= -2.2e-15) or not (j <= 9.8e+69):
		tmp = b * (j * ((t * y4) - (x * y0)))
	else:
		tmp = i * (k * ((y * y5) - (z * y1)))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if ((j <= -2.2e-15) || !(j <= 9.8e+69))
		tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0))));
	else
		tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if ((j <= -2.2e-15) || ~((j <= 9.8e+69)))
		tmp = b * (j * ((t * y4) - (x * y0)));
	else
		tmp = i * (k * ((y * y5) - (z * y1)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[j, -2.2e-15], N[Not[LessEqual[j, 9.8e+69]], $MachinePrecision]], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.2 \cdot 10^{-15} \lor \neg \left(j \leq 9.8 \cdot 10^{+69}\right):\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\

\mathbf{else}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if j < -2.19999999999999986e-15 or 9.7999999999999999e69 < j

    1. Initial program 28.3%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 55.6%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in b around inf 46.4%

      \[\leadsto \color{blue}{b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)} \]

    if -2.19999999999999986e-15 < j < 9.7999999999999999e69

    1. Initial program 34.9%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 37.9%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in i around inf 36.0%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -2.2 \cdot 10^{-15} \lor \neg \left(j \leq 9.8 \cdot 10^{+69}\right):\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 21: 31.5% accurate, 4.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;j \leq -6.8 \cdot 10^{+99}:\\ \;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;j \leq 2.75 \cdot 10^{+69}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= j -6.8e+99)
   (* j (* x (- (* i y1) (* b y0))))
   (if (<= j 2.75e+69)
     (* i (* k (- (* y y5) (* z y1))))
     (* b (* j (- (* t y4) (* x y0)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (j <= -6.8e+99) {
		tmp = j * (x * ((i * y1) - (b * y0)));
	} else if (j <= 2.75e+69) {
		tmp = i * (k * ((y * y5) - (z * y1)));
	} else {
		tmp = b * (j * ((t * y4) - (x * y0)));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (j <= (-6.8d+99)) then
        tmp = j * (x * ((i * y1) - (b * y0)))
    else if (j <= 2.75d+69) then
        tmp = i * (k * ((y * y5) - (z * y1)))
    else
        tmp = b * (j * ((t * y4) - (x * y0)))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (j <= -6.8e+99) {
		tmp = j * (x * ((i * y1) - (b * y0)));
	} else if (j <= 2.75e+69) {
		tmp = i * (k * ((y * y5) - (z * y1)));
	} else {
		tmp = b * (j * ((t * y4) - (x * y0)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if j <= -6.8e+99:
		tmp = j * (x * ((i * y1) - (b * y0)))
	elif j <= 2.75e+69:
		tmp = i * (k * ((y * y5) - (z * y1)))
	else:
		tmp = b * (j * ((t * y4) - (x * y0)))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (j <= -6.8e+99)
		tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0))));
	elseif (j <= 2.75e+69)
		tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1))));
	else
		tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (j <= -6.8e+99)
		tmp = j * (x * ((i * y1) - (b * y0)));
	elseif (j <= 2.75e+69)
		tmp = i * (k * ((y * y5) - (z * y1)));
	else
		tmp = b * (j * ((t * y4) - (x * y0)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -6.8e+99], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.75e+69], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;j \leq -6.8 \cdot 10^{+99}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\

\mathbf{elif}\;j \leq 2.75 \cdot 10^{+69}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if j < -6.79999999999999968e99

    1. Initial program 29.2%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 68.3%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in x around inf 48.6%

      \[\leadsto \color{blue}{j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)} \]

    if -6.79999999999999968e99 < j < 2.75000000000000001e69

    1. Initial program 33.8%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 38.7%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in i around inf 36.1%

      \[\leadsto \color{blue}{i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)} \]

    if 2.75000000000000001e69 < j

    1. Initial program 27.5%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 60.2%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in b around inf 51.7%

      \[\leadsto \color{blue}{b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification41.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -6.8 \cdot 10^{+99}:\\ \;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;j \leq 2.75 \cdot 10^{+69}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 22: 29.3% accurate, 4.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.45 \cdot 10^{+108}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\ \mathbf{elif}\;z \leq 4.2 \cdot 10^{+106}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(k \cdot \left(z \cdot \left(-y1\right)\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= z -1.45e+108)
   (* a (* b (- (* x y) (* z t))))
   (if (<= z 4.2e+106)
     (* b (* j (- (* t y4) (* x y0))))
     (* i (* k (* z (- y1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (z <= -1.45e+108) {
		tmp = a * (b * ((x * y) - (z * t)));
	} else if (z <= 4.2e+106) {
		tmp = b * (j * ((t * y4) - (x * y0)));
	} else {
		tmp = i * (k * (z * -y1));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (z <= (-1.45d+108)) then
        tmp = a * (b * ((x * y) - (z * t)))
    else if (z <= 4.2d+106) then
        tmp = b * (j * ((t * y4) - (x * y0)))
    else
        tmp = i * (k * (z * -y1))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (z <= -1.45e+108) {
		tmp = a * (b * ((x * y) - (z * t)));
	} else if (z <= 4.2e+106) {
		tmp = b * (j * ((t * y4) - (x * y0)));
	} else {
		tmp = i * (k * (z * -y1));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if z <= -1.45e+108:
		tmp = a * (b * ((x * y) - (z * t)))
	elif z <= 4.2e+106:
		tmp = b * (j * ((t * y4) - (x * y0)))
	else:
		tmp = i * (k * (z * -y1))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (z <= -1.45e+108)
		tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t))));
	elseif (z <= 4.2e+106)
		tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0))));
	else
		tmp = Float64(i * Float64(k * Float64(z * Float64(-y1))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (z <= -1.45e+108)
		tmp = a * (b * ((x * y) - (z * t)));
	elseif (z <= 4.2e+106)
		tmp = b * (j * ((t * y4) - (x * y0)));
	else
		tmp = i * (k * (z * -y1));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -1.45e+108], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e+106], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(k * N[(z * (-y1)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+108}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\

\mathbf{elif}\;z \leq 4.2 \cdot 10^{+106}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\

\mathbf{else}:\\
\;\;\;\;i \cdot \left(k \cdot \left(z \cdot \left(-y1\right)\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -1.45000000000000004e108

    1. Initial program 19.4%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 22.8%

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in a around inf 48.9%

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

    if -1.45000000000000004e108 < z < 4.2000000000000001e106

    1. Initial program 35.5%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf 41.9%

      \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    4. Taylor expanded in b around inf 31.3%

      \[\leadsto \color{blue}{b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)} \]

    if 4.2000000000000001e106 < z

    1. Initial program 23.8%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 34.7%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in z around inf 39.0%

      \[\leadsto \color{blue}{k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    5. Taylor expanded in b around 0 41.4%

      \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(k \cdot \left(y1 \cdot z\right)\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*41.4%

        \[\leadsto \color{blue}{\left(-1 \cdot i\right) \cdot \left(k \cdot \left(y1 \cdot z\right)\right)} \]
      2. neg-mul-141.4%

        \[\leadsto \color{blue}{\left(-i\right)} \cdot \left(k \cdot \left(y1 \cdot z\right)\right) \]
      3. *-commutative41.4%

        \[\leadsto \left(-i\right) \cdot \left(k \cdot \color{blue}{\left(z \cdot y1\right)}\right) \]
    7. Simplified41.4%

      \[\leadsto \color{blue}{\left(-i\right) \cdot \left(k \cdot \left(z \cdot y1\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification34.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.45 \cdot 10^{+108}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\ \mathbf{elif}\;z \leq 4.2 \cdot 10^{+106}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(k \cdot \left(z \cdot \left(-y1\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 23: 28.7% accurate, 4.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y4 \leq -5.5 \cdot 10^{+154}:\\ \;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right)\right)\\ \mathbf{elif}\;y4 \leq 4.8 \cdot 10^{+66}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(c \cdot \left(-y4\right)\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= y4 -5.5e+154)
   (* y2 (* k (* y1 y4)))
   (if (<= y4 4.8e+66)
     (* a (* b (- (* x y) (* z t))))
     (* t (* y2 (* c (- y4)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (y4 <= -5.5e+154) {
		tmp = y2 * (k * (y1 * y4));
	} else if (y4 <= 4.8e+66) {
		tmp = a * (b * ((x * y) - (z * t)));
	} else {
		tmp = t * (y2 * (c * -y4));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (y4 <= (-5.5d+154)) then
        tmp = y2 * (k * (y1 * y4))
    else if (y4 <= 4.8d+66) then
        tmp = a * (b * ((x * y) - (z * t)))
    else
        tmp = t * (y2 * (c * -y4))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (y4 <= -5.5e+154) {
		tmp = y2 * (k * (y1 * y4));
	} else if (y4 <= 4.8e+66) {
		tmp = a * (b * ((x * y) - (z * t)));
	} else {
		tmp = t * (y2 * (c * -y4));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if y4 <= -5.5e+154:
		tmp = y2 * (k * (y1 * y4))
	elif y4 <= 4.8e+66:
		tmp = a * (b * ((x * y) - (z * t)))
	else:
		tmp = t * (y2 * (c * -y4))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (y4 <= -5.5e+154)
		tmp = Float64(y2 * Float64(k * Float64(y1 * y4)));
	elseif (y4 <= 4.8e+66)
		tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t))));
	else
		tmp = Float64(t * Float64(y2 * Float64(c * Float64(-y4))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (y4 <= -5.5e+154)
		tmp = y2 * (k * (y1 * y4));
	elseif (y4 <= 4.8e+66)
		tmp = a * (b * ((x * y) - (z * t)));
	else
		tmp = t * (y2 * (c * -y4));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -5.5e+154], N[(y2 * N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 4.8e+66], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(y2 * N[(c * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -5.5 \cdot 10^{+154}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right)\right)\\

\mathbf{elif}\;y4 \leq 4.8 \cdot 10^{+66}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\

\mathbf{else}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(c \cdot \left(-y4\right)\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y4 < -5.5000000000000006e154

    1. Initial program 20.0%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 34.8%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y4 around inf 54.8%

      \[\leadsto \color{blue}{y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)} \]
    5. Taylor expanded in k around inf 54.8%

      \[\leadsto y2 \cdot \color{blue}{\left(k \cdot \left(y1 \cdot y4\right)\right)} \]

    if -5.5000000000000006e154 < y4 < 4.8000000000000003e66

    1. Initial program 37.7%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 40.2%

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in a around inf 24.0%

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

    if 4.8000000000000003e66 < y4

    1. Initial program 17.9%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 31.8%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in t around inf 41.0%

      \[\leadsto \color{blue}{t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    5. Taylor expanded in a around 0 41.1%

      \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(-1 \cdot \left(c \cdot y4\right)\right)}\right) \]
    6. Step-by-step derivation
      1. neg-mul-141.1%

        \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(-c \cdot y4\right)}\right) \]
      2. distribute-rgt-neg-in41.1%

        \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(c \cdot \left(-y4\right)\right)}\right) \]
    7. Simplified41.1%

      \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(c \cdot \left(-y4\right)\right)}\right) \]
  3. Recombined 3 regimes into one program.
  4. Final simplification31.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y4 \leq -5.5 \cdot 10^{+154}:\\ \;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right)\right)\\ \mathbf{elif}\;y4 \leq 4.8 \cdot 10^{+66}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(c \cdot \left(-y4\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 24: 21.9% accurate, 5.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y4 \leq -2.4 \cdot 10^{+94}:\\ \;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right)\right)\\ \mathbf{elif}\;y4 \leq 1.65 \cdot 10^{+19}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(c \cdot \left(-y4\right)\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= y4 -2.4e+94)
   (* y2 (* k (* y1 y4)))
   (if (<= y4 1.65e+19) (* t (* y2 (* a y5))) (* t (* y2 (* c (- y4)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (y4 <= -2.4e+94) {
		tmp = y2 * (k * (y1 * y4));
	} else if (y4 <= 1.65e+19) {
		tmp = t * (y2 * (a * y5));
	} else {
		tmp = t * (y2 * (c * -y4));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (y4 <= (-2.4d+94)) then
        tmp = y2 * (k * (y1 * y4))
    else if (y4 <= 1.65d+19) then
        tmp = t * (y2 * (a * y5))
    else
        tmp = t * (y2 * (c * -y4))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (y4 <= -2.4e+94) {
		tmp = y2 * (k * (y1 * y4));
	} else if (y4 <= 1.65e+19) {
		tmp = t * (y2 * (a * y5));
	} else {
		tmp = t * (y2 * (c * -y4));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if y4 <= -2.4e+94:
		tmp = y2 * (k * (y1 * y4))
	elif y4 <= 1.65e+19:
		tmp = t * (y2 * (a * y5))
	else:
		tmp = t * (y2 * (c * -y4))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (y4 <= -2.4e+94)
		tmp = Float64(y2 * Float64(k * Float64(y1 * y4)));
	elseif (y4 <= 1.65e+19)
		tmp = Float64(t * Float64(y2 * Float64(a * y5)));
	else
		tmp = Float64(t * Float64(y2 * Float64(c * Float64(-y4))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (y4 <= -2.4e+94)
		tmp = y2 * (k * (y1 * y4));
	elseif (y4 <= 1.65e+19)
		tmp = t * (y2 * (a * y5));
	else
		tmp = t * (y2 * (c * -y4));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -2.4e+94], N[(y2 * N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.65e+19], N[(t * N[(y2 * N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(y2 * N[(c * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -2.4 \cdot 10^{+94}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right)\right)\\

\mathbf{elif}\;y4 \leq 1.65 \cdot 10^{+19}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(c \cdot \left(-y4\right)\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y4 < -2.39999999999999983e94

    1. Initial program 27.9%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 31.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y4 around inf 49.5%

      \[\leadsto \color{blue}{y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)} \]
    5. Taylor expanded in k around inf 49.5%

      \[\leadsto y2 \cdot \color{blue}{\left(k \cdot \left(y1 \cdot y4\right)\right)} \]

    if -2.39999999999999983e94 < y4 < 1.65e19

    1. Initial program 35.8%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 30.8%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in t around inf 22.1%

      \[\leadsto \color{blue}{t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    5. Taylor expanded in a around inf 19.0%

      \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(a \cdot y5\right)}\right) \]

    if 1.65e19 < y4

    1. Initial program 22.7%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 29.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in t around inf 36.9%

      \[\leadsto \color{blue}{t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    5. Taylor expanded in a around 0 36.9%

      \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(-1 \cdot \left(c \cdot y4\right)\right)}\right) \]
    6. Step-by-step derivation
      1. neg-mul-136.9%

        \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(-c \cdot y4\right)}\right) \]
      2. distribute-rgt-neg-in36.9%

        \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(c \cdot \left(-y4\right)\right)}\right) \]
    7. Simplified36.9%

      \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(c \cdot \left(-y4\right)\right)}\right) \]
  3. Recombined 3 regimes into one program.
  4. Add Preprocessing

Alternative 25: 21.1% accurate, 5.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y4 \leq -1.26 \cdot 10^{+92}:\\ \;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right)\right)\\ \mathbf{elif}\;y4 \leq 1.65 \cdot 10^{+30}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(-k\right) \cdot \left(y4 \cdot \left(y \cdot b\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= y4 -1.26e+92)
   (* y2 (* k (* y1 y4)))
   (if (<= y4 1.65e+30) (* t (* y2 (* a y5))) (* (- k) (* y4 (* y b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (y4 <= -1.26e+92) {
		tmp = y2 * (k * (y1 * y4));
	} else if (y4 <= 1.65e+30) {
		tmp = t * (y2 * (a * y5));
	} else {
		tmp = -k * (y4 * (y * b));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (y4 <= (-1.26d+92)) then
        tmp = y2 * (k * (y1 * y4))
    else if (y4 <= 1.65d+30) then
        tmp = t * (y2 * (a * y5))
    else
        tmp = -k * (y4 * (y * b))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (y4 <= -1.26e+92) {
		tmp = y2 * (k * (y1 * y4));
	} else if (y4 <= 1.65e+30) {
		tmp = t * (y2 * (a * y5));
	} else {
		tmp = -k * (y4 * (y * b));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if y4 <= -1.26e+92:
		tmp = y2 * (k * (y1 * y4))
	elif y4 <= 1.65e+30:
		tmp = t * (y2 * (a * y5))
	else:
		tmp = -k * (y4 * (y * b))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (y4 <= -1.26e+92)
		tmp = Float64(y2 * Float64(k * Float64(y1 * y4)));
	elseif (y4 <= 1.65e+30)
		tmp = Float64(t * Float64(y2 * Float64(a * y5)));
	else
		tmp = Float64(Float64(-k) * Float64(y4 * Float64(y * b)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (y4 <= -1.26e+92)
		tmp = y2 * (k * (y1 * y4));
	elseif (y4 <= 1.65e+30)
		tmp = t * (y2 * (a * y5));
	else
		tmp = -k * (y4 * (y * b));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -1.26e+92], N[(y2 * N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.65e+30], N[(t * N[(y2 * N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-k) * N[(y4 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -1.26 \cdot 10^{+92}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right)\right)\\

\mathbf{elif}\;y4 \leq 1.65 \cdot 10^{+30}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\left(-k\right) \cdot \left(y4 \cdot \left(y \cdot b\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y4 < -1.26e92

    1. Initial program 27.9%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 31.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y4 around inf 49.5%

      \[\leadsto \color{blue}{y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)} \]
    5. Taylor expanded in k around inf 49.5%

      \[\leadsto y2 \cdot \color{blue}{\left(k \cdot \left(y1 \cdot y4\right)\right)} \]

    if -1.26e92 < y4 < 1.65000000000000013e30

    1. Initial program 36.0%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 30.4%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in t around inf 22.4%

      \[\leadsto \color{blue}{t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    5. Taylor expanded in a around inf 18.8%

      \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(a \cdot y5\right)}\right) \]

    if 1.65000000000000013e30 < y4

    1. Initial program 21.7%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 35.9%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in y4 around inf 38.0%

      \[\leadsto \color{blue}{k \cdot \left(y4 \cdot \left(-1 \cdot \left(b \cdot y\right) + y1 \cdot y2\right)\right)} \]
    5. Taylor expanded in b around inf 32.7%

      \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(-1 \cdot \left(b \cdot y\right)\right)}\right) \]
    6. Step-by-step derivation
      1. mul-1-neg32.7%

        \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(-b \cdot y\right)}\right) \]
      2. *-commutative32.7%

        \[\leadsto k \cdot \left(y4 \cdot \left(-\color{blue}{y \cdot b}\right)\right) \]
      3. distribute-rgt-neg-in32.7%

        \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(y \cdot \left(-b\right)\right)}\right) \]
    7. Simplified32.7%

      \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(y \cdot \left(-b\right)\right)}\right) \]
  3. Recombined 3 regimes into one program.
  4. Final simplification26.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y4 \leq -1.26 \cdot 10^{+92}:\\ \;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right)\right)\\ \mathbf{elif}\;y4 \leq 1.65 \cdot 10^{+30}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(-k\right) \cdot \left(y4 \cdot \left(y \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 26: 22.3% accurate, 5.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;k \leq -6800000 \lor \neg \left(k \leq 2.6 \cdot 10^{+55}\right):\\ \;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (or (<= k -6800000.0) (not (<= k 2.6e+55)))
   (* y2 (* y4 (* k y1)))
   (* t (* y2 (* a y5)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if ((k <= -6800000.0) || !(k <= 2.6e+55)) {
		tmp = y2 * (y4 * (k * y1));
	} else {
		tmp = t * (y2 * (a * y5));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if ((k <= (-6800000.0d0)) .or. (.not. (k <= 2.6d+55))) then
        tmp = y2 * (y4 * (k * y1))
    else
        tmp = t * (y2 * (a * y5))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if ((k <= -6800000.0) || !(k <= 2.6e+55)) {
		tmp = y2 * (y4 * (k * y1));
	} else {
		tmp = t * (y2 * (a * y5));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if (k <= -6800000.0) or not (k <= 2.6e+55):
		tmp = y2 * (y4 * (k * y1))
	else:
		tmp = t * (y2 * (a * y5))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if ((k <= -6800000.0) || !(k <= 2.6e+55))
		tmp = Float64(y2 * Float64(y4 * Float64(k * y1)));
	else
		tmp = Float64(t * Float64(y2 * Float64(a * y5)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if ((k <= -6800000.0) || ~((k <= 2.6e+55)))
		tmp = y2 * (y4 * (k * y1));
	else
		tmp = t * (y2 * (a * y5));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[k, -6800000.0], N[Not[LessEqual[k, 2.6e+55]], $MachinePrecision]], N[(y2 * N[(y4 * N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(y2 * N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;k \leq -6800000 \lor \neg \left(k \leq 2.6 \cdot 10^{+55}\right):\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1\right)\right)\\

\mathbf{else}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if k < -6.8e6 or 2.6e55 < k

    1. Initial program 23.7%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 26.1%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y4 around inf 35.7%

      \[\leadsto \color{blue}{y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)} \]
    5. Taylor expanded in k around inf 29.5%

      \[\leadsto y2 \cdot \left(y4 \cdot \color{blue}{\left(k \cdot y1\right)}\right) \]

    if -6.8e6 < k < 2.6e55

    1. Initial program 37.8%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 33.7%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in t around inf 30.7%

      \[\leadsto \color{blue}{t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    5. Taylor expanded in a around inf 22.6%

      \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(a \cdot y5\right)}\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification25.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq -6800000 \lor \neg \left(k \leq 2.6 \cdot 10^{+55}\right):\\ \;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 27: 22.0% accurate, 5.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y5 \leq -2.65 \cdot 10^{-9} \lor \neg \left(y5 \leq 1.35 \cdot 10^{-86}\right):\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (or (<= y5 -2.65e-9) (not (<= y5 1.35e-86)))
   (* a (* t (* y2 y5)))
   (* a (* (* x y) b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if ((y5 <= -2.65e-9) || !(y5 <= 1.35e-86)) {
		tmp = a * (t * (y2 * y5));
	} else {
		tmp = a * ((x * y) * b);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if ((y5 <= (-2.65d-9)) .or. (.not. (y5 <= 1.35d-86))) then
        tmp = a * (t * (y2 * y5))
    else
        tmp = a * ((x * y) * b)
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if ((y5 <= -2.65e-9) || !(y5 <= 1.35e-86)) {
		tmp = a * (t * (y2 * y5));
	} else {
		tmp = a * ((x * y) * b);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if (y5 <= -2.65e-9) or not (y5 <= 1.35e-86):
		tmp = a * (t * (y2 * y5))
	else:
		tmp = a * ((x * y) * b)
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if ((y5 <= -2.65e-9) || !(y5 <= 1.35e-86))
		tmp = Float64(a * Float64(t * Float64(y2 * y5)));
	else
		tmp = Float64(a * Float64(Float64(x * y) * b));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if ((y5 <= -2.65e-9) || ~((y5 <= 1.35e-86)))
		tmp = a * (t * (y2 * y5));
	else
		tmp = a * ((x * y) * b);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[y5, -2.65e-9], N[Not[LessEqual[y5, 1.35e-86]], $MachinePrecision]], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -2.65 \cdot 10^{-9} \lor \neg \left(y5 \leq 1.35 \cdot 10^{-86}\right):\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y5 < -2.65000000000000015e-9 or 1.34999999999999996e-86 < y5

    1. Initial program 25.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 29.2%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in t around inf 31.3%

      \[\leadsto \color{blue}{t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    5. Taylor expanded in a around inf 24.9%

      \[\leadsto \color{blue}{a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)} \]

    if -2.65000000000000015e-9 < y5 < 1.34999999999999996e-86

    1. Initial program 39.3%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 38.0%

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in a around inf 21.9%

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

      \[\leadsto \color{blue}{a \cdot \left(b \cdot \left(x \cdot y\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative18.2%

        \[\leadsto a \cdot \left(b \cdot \color{blue}{\left(y \cdot x\right)}\right) \]
    7. Simplified18.2%

      \[\leadsto \color{blue}{a \cdot \left(b \cdot \left(y \cdot x\right)\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification21.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -2.65 \cdot 10^{-9} \lor \neg \left(y5 \leq 1.35 \cdot 10^{-86}\right):\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 28: 19.3% accurate, 7.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -3 \cdot 10^{+152}:\\ \;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= b -3e+152) (* k (* b (* z y0))) (* a (* t (* y2 y5)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (b <= -3e+152) {
		tmp = k * (b * (z * y0));
	} else {
		tmp = a * (t * (y2 * y5));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (b <= (-3d+152)) then
        tmp = k * (b * (z * y0))
    else
        tmp = a * (t * (y2 * y5))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (b <= -3e+152) {
		tmp = k * (b * (z * y0));
	} else {
		tmp = a * (t * (y2 * y5));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if b <= -3e+152:
		tmp = k * (b * (z * y0))
	else:
		tmp = a * (t * (y2 * y5))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (b <= -3e+152)
		tmp = Float64(k * Float64(b * Float64(z * y0)));
	else
		tmp = Float64(a * Float64(t * Float64(y2 * y5)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (b <= -3e+152)
		tmp = k * (b * (z * y0));
	else
		tmp = a * (t * (y2 * y5));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -3e+152], N[(k * N[(b * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -3 \cdot 10^{+152}:\\
\;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0\right)\right)\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -2.99999999999999991e152

    1. Initial program 14.3%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 32.3%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in z around inf 54.0%

      \[\leadsto \color{blue}{k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    5. Taylor expanded in b around inf 47.1%

      \[\leadsto k \cdot \color{blue}{\left(b \cdot \left(y0 \cdot z\right)\right)} \]

    if -2.99999999999999991e152 < b

    1. Initial program 33.9%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 32.3%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in t around inf 28.0%

      \[\leadsto \color{blue}{t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    5. Taylor expanded in a around inf 17.3%

      \[\leadsto \color{blue}{a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification20.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3 \cdot 10^{+152}:\\ \;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 29: 19.5% accurate, 7.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;k \leq 2.8 \cdot 10^{+135}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= k 2.8e+135) (* a (* t (* y2 y5))) (* b (* k (* z y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (k <= 2.8e+135) {
		tmp = a * (t * (y2 * y5));
	} else {
		tmp = b * (k * (z * y0));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (k <= 2.8d+135) then
        tmp = a * (t * (y2 * y5))
    else
        tmp = b * (k * (z * y0))
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (k <= 2.8e+135) {
		tmp = a * (t * (y2 * y5));
	} else {
		tmp = b * (k * (z * y0));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if k <= 2.8e+135:
		tmp = a * (t * (y2 * y5))
	else:
		tmp = b * (k * (z * y0))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (k <= 2.8e+135)
		tmp = Float64(a * Float64(t * Float64(y2 * y5)));
	else
		tmp = Float64(b * Float64(k * Float64(z * y0)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (k <= 2.8e+135)
		tmp = a * (t * (y2 * y5));
	else
		tmp = b * (k * (z * y0));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[k, 2.8e+135], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(k * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;k \leq 2.8 \cdot 10^{+135}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if k < 2.80000000000000002e135

    1. Initial program 33.5%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y2 around inf 32.3%

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in t around inf 29.0%

      \[\leadsto \color{blue}{t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    5. Taylor expanded in a around inf 18.2%

      \[\leadsto \color{blue}{a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)} \]

    if 2.80000000000000002e135 < k

    1. Initial program 22.6%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in k around inf 50.4%

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in z around inf 37.3%

      \[\leadsto \color{blue}{k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    5. Taylor expanded in b around inf 31.3%

      \[\leadsto \color{blue}{b \cdot \left(k \cdot \left(y0 \cdot z\right)\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification20.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq 2.8 \cdot 10^{+135}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 30: 17.0% accurate, 13.6× speedup?

\[\begin{array}{l} \\ a \cdot \left(\left(x \cdot y\right) \cdot b\right) \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (* a (* (* x y) b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	return a * ((x * y) * b);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    code = a * ((x * y) * b)
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 y0, double y1, double y2, double y3, double y4, double y5) {
	return a * ((x * y) * b);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	return a * ((x * y) * b)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	return Float64(a * Float64(Float64(x * y) * b))
end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = a * ((x * y) * b);
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
a \cdot \left(\left(x \cdot y\right) \cdot b\right)
\end{array}
Derivation
  1. Initial program 31.8%

    \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
  2. Add Preprocessing
  3. Taylor expanded in b around inf 35.9%

    \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
  4. Taylor expanded in a around inf 20.7%

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

    \[\leadsto \color{blue}{a \cdot \left(b \cdot \left(x \cdot y\right)\right)} \]
  6. Step-by-step derivation
    1. *-commutative12.9%

      \[\leadsto a \cdot \left(b \cdot \color{blue}{\left(y \cdot x\right)}\right) \]
  7. Simplified12.9%

    \[\leadsto \color{blue}{a \cdot \left(b \cdot \left(y \cdot x\right)\right)} \]
  8. Final simplification12.9%

    \[\leadsto a \cdot \left(\left(x \cdot y\right) \cdot b\right) \]
  9. Add Preprocessing

Developer Target 1: 29.2% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y4 \cdot c - y5 \cdot a\\ t_2 := x \cdot y2 - z \cdot y3\\ t_3 := y2 \cdot t - y3 \cdot y\\ t_4 := k \cdot y2 - j \cdot y3\\ t_5 := y4 \cdot b - y5 \cdot i\\ t_6 := \left(j \cdot t - k \cdot y\right) \cdot t\_5\\ t_7 := b \cdot a - i \cdot c\\ t_8 := t\_7 \cdot \left(y \cdot x - t \cdot z\right)\\ t_9 := j \cdot x - k \cdot z\\ t_10 := \left(b \cdot y0 - i \cdot y1\right) \cdot t\_9\\ t_11 := t\_9 \cdot \left(y0 \cdot b - i \cdot y1\right)\\ t_12 := y4 \cdot y1 - y5 \cdot y0\\ t_13 := t\_4 \cdot t\_12\\ t_14 := \left(y2 \cdot k - y3 \cdot j\right) \cdot t\_12\\ t_15 := \left(\left(\left(\left(k \cdot y\right) \cdot \left(y5 \cdot i\right) - \left(y \cdot b\right) \cdot \left(y4 \cdot k\right)\right) - \left(y5 \cdot t\right) \cdot \left(i \cdot j\right)\right) - \left(t\_3 \cdot t\_1 - t\_14\right)\right) + \left(t\_8 - \left(t\_11 - \left(y2 \cdot x - y3 \cdot z\right) \cdot \left(c \cdot y0 - y1 \cdot a\right)\right)\right)\\ t_16 := \left(\left(t\_6 - \left(y3 \cdot y\right) \cdot \left(y5 \cdot a - y4 \cdot c\right)\right) + \left(\left(y5 \cdot a\right) \cdot \left(t \cdot y2\right) + t\_13\right)\right) + \left(t\_2 \cdot \left(c \cdot y0 - a \cdot y1\right) - \left(t\_10 - \left(y \cdot x - z \cdot t\right) \cdot t\_7\right)\right)\\ t_17 := t \cdot y2 - y \cdot y3\\ \mathbf{if}\;y4 < -7.206256231996481 \cdot 10^{+60}:\\ \;\;\;\;\left(t\_8 - \left(t\_11 - t\_6\right)\right) - \left(\frac{t\_3}{\frac{1}{t\_1}} - t\_14\right)\\ \mathbf{elif}\;y4 < -3.364603505246317 \cdot 10^{-66}:\\ \;\;\;\;\left(\left(\left(\left(t \cdot c\right) \cdot \left(i \cdot z\right) - \left(a \cdot t\right) \cdot \left(b \cdot z\right)\right) - \left(y \cdot c\right) \cdot \left(i \cdot x\right)\right) - t\_10\right) + \left(\left(y0 \cdot c - a \cdot y1\right) \cdot t\_2 - \left(t\_17 \cdot \left(y4 \cdot c - a \cdot y5\right) - \left(y1 \cdot y4 - y5 \cdot y0\right) \cdot t\_4\right)\right)\\ \mathbf{elif}\;y4 < -1.2000065055686116 \cdot 10^{-105}:\\ \;\;\;\;t\_16\\ \mathbf{elif}\;y4 < 6.718963124057495 \cdot 10^{-279}:\\ \;\;\;\;t\_15\\ \mathbf{elif}\;y4 < 4.77962681403792 \cdot 10^{-222}:\\ \;\;\;\;t\_16\\ \mathbf{elif}\;y4 < 2.2852241541266835 \cdot 10^{-175}:\\ \;\;\;\;t\_15\\ \mathbf{else}:\\ \;\;\;\;\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(k \cdot \left(i \cdot \left(z \cdot y1\right)\right) - \left(j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + y0 \cdot \left(k \cdot \left(z \cdot b\right)\right)\right)\right)\right) + \left(z \cdot \left(y3 \cdot \left(a \cdot y1\right)\right) - \left(y2 \cdot \left(x \cdot \left(a \cdot y1\right)\right) + y0 \cdot \left(z \cdot \left(c \cdot y3\right)\right)\right)\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot t\_5\right) - t\_17 \cdot t\_1\right) + t\_13\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (- (* y4 c) (* y5 a)))
        (t_2 (- (* x y2) (* z y3)))
        (t_3 (- (* y2 t) (* y3 y)))
        (t_4 (- (* k y2) (* j y3)))
        (t_5 (- (* y4 b) (* y5 i)))
        (t_6 (* (- (* j t) (* k y)) t_5))
        (t_7 (- (* b a) (* i c)))
        (t_8 (* t_7 (- (* y x) (* t z))))
        (t_9 (- (* j x) (* k z)))
        (t_10 (* (- (* b y0) (* i y1)) t_9))
        (t_11 (* t_9 (- (* y0 b) (* i y1))))
        (t_12 (- (* y4 y1) (* y5 y0)))
        (t_13 (* t_4 t_12))
        (t_14 (* (- (* y2 k) (* y3 j)) t_12))
        (t_15
         (+
          (-
           (-
            (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k)))
            (* (* y5 t) (* i j)))
           (- (* t_3 t_1) t_14))
          (- t_8 (- t_11 (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))))
        (t_16
         (+
          (+
           (- t_6 (* (* y3 y) (- (* y5 a) (* y4 c))))
           (+ (* (* y5 a) (* t y2)) t_13))
          (-
           (* t_2 (- (* c y0) (* a y1)))
           (- t_10 (* (- (* y x) (* z t)) t_7)))))
        (t_17 (- (* t y2) (* y y3))))
   (if (< y4 -7.206256231996481e+60)
     (- (- t_8 (- t_11 t_6)) (- (/ t_3 (/ 1.0 t_1)) t_14))
     (if (< y4 -3.364603505246317e-66)
       (+
        (-
         (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x)))
         t_10)
        (-
         (* (- (* y0 c) (* a y1)) t_2)
         (- (* t_17 (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) t_4))))
       (if (< y4 -1.2000065055686116e-105)
         t_16
         (if (< y4 6.718963124057495e-279)
           t_15
           (if (< y4 4.77962681403792e-222)
             t_16
             (if (< y4 2.2852241541266835e-175)
               t_15
               (+
                (-
                 (+
                  (+
                   (-
                    (* (- (* x y) (* z t)) (- (* a b) (* c i)))
                    (-
                     (* k (* i (* z y1)))
                     (+ (* j (* i (* x y1))) (* y0 (* k (* z b))))))
                   (-
                    (* z (* y3 (* a y1)))
                    (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3))))))
                  (* (- (* t j) (* y k)) t_5))
                 (* t_17 t_1))
                t_13)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (y4 * c) - (y5 * a);
	double t_2 = (x * y2) - (z * y3);
	double t_3 = (y2 * t) - (y3 * y);
	double t_4 = (k * y2) - (j * y3);
	double t_5 = (y4 * b) - (y5 * i);
	double t_6 = ((j * t) - (k * y)) * t_5;
	double t_7 = (b * a) - (i * c);
	double t_8 = t_7 * ((y * x) - (t * z));
	double t_9 = (j * x) - (k * z);
	double t_10 = ((b * y0) - (i * y1)) * t_9;
	double t_11 = t_9 * ((y0 * b) - (i * y1));
	double t_12 = (y4 * y1) - (y5 * y0);
	double t_13 = t_4 * t_12;
	double t_14 = ((y2 * k) - (y3 * j)) * t_12;
	double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
	double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
	double t_17 = (t * y2) - (y * y3);
	double tmp;
	if (y4 < -7.206256231996481e+60) {
		tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
	} else if (y4 < -3.364603505246317e-66) {
		tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
	} else if (y4 < -1.2000065055686116e-105) {
		tmp = t_16;
	} else if (y4 < 6.718963124057495e-279) {
		tmp = t_15;
	} else if (y4 < 4.77962681403792e-222) {
		tmp = t_16;
	} else if (y4 < 2.2852241541266835e-175) {
		tmp = t_15;
	} else {
		tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    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), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: t_10
    real(8) :: t_11
    real(8) :: t_12
    real(8) :: t_13
    real(8) :: t_14
    real(8) :: t_15
    real(8) :: t_16
    real(8) :: t_17
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: t_4
    real(8) :: t_5
    real(8) :: t_6
    real(8) :: t_7
    real(8) :: t_8
    real(8) :: t_9
    real(8) :: tmp
    t_1 = (y4 * c) - (y5 * a)
    t_2 = (x * y2) - (z * y3)
    t_3 = (y2 * t) - (y3 * y)
    t_4 = (k * y2) - (j * y3)
    t_5 = (y4 * b) - (y5 * i)
    t_6 = ((j * t) - (k * y)) * t_5
    t_7 = (b * a) - (i * c)
    t_8 = t_7 * ((y * x) - (t * z))
    t_9 = (j * x) - (k * z)
    t_10 = ((b * y0) - (i * y1)) * t_9
    t_11 = t_9 * ((y0 * b) - (i * y1))
    t_12 = (y4 * y1) - (y5 * y0)
    t_13 = t_4 * t_12
    t_14 = ((y2 * k) - (y3 * j)) * t_12
    t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))))
    t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)))
    t_17 = (t * y2) - (y * y3)
    if (y4 < (-7.206256231996481d+60)) then
        tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0d0 / t_1)) - t_14)
    else if (y4 < (-3.364603505246317d-66)) then
        tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)))
    else if (y4 < (-1.2000065055686116d-105)) then
        tmp = t_16
    else if (y4 < 6.718963124057495d-279) then
        tmp = t_15
    else if (y4 < 4.77962681403792d-222) then
        tmp = t_16
    else if (y4 < 2.2852241541266835d-175) then
        tmp = t_15
    else
        tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13
    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 y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (y4 * c) - (y5 * a);
	double t_2 = (x * y2) - (z * y3);
	double t_3 = (y2 * t) - (y3 * y);
	double t_4 = (k * y2) - (j * y3);
	double t_5 = (y4 * b) - (y5 * i);
	double t_6 = ((j * t) - (k * y)) * t_5;
	double t_7 = (b * a) - (i * c);
	double t_8 = t_7 * ((y * x) - (t * z));
	double t_9 = (j * x) - (k * z);
	double t_10 = ((b * y0) - (i * y1)) * t_9;
	double t_11 = t_9 * ((y0 * b) - (i * y1));
	double t_12 = (y4 * y1) - (y5 * y0);
	double t_13 = t_4 * t_12;
	double t_14 = ((y2 * k) - (y3 * j)) * t_12;
	double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
	double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
	double t_17 = (t * y2) - (y * y3);
	double tmp;
	if (y4 < -7.206256231996481e+60) {
		tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
	} else if (y4 < -3.364603505246317e-66) {
		tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
	} else if (y4 < -1.2000065055686116e-105) {
		tmp = t_16;
	} else if (y4 < 6.718963124057495e-279) {
		tmp = t_15;
	} else if (y4 < 4.77962681403792e-222) {
		tmp = t_16;
	} else if (y4 < 2.2852241541266835e-175) {
		tmp = t_15;
	} else {
		tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = (y4 * c) - (y5 * a)
	t_2 = (x * y2) - (z * y3)
	t_3 = (y2 * t) - (y3 * y)
	t_4 = (k * y2) - (j * y3)
	t_5 = (y4 * b) - (y5 * i)
	t_6 = ((j * t) - (k * y)) * t_5
	t_7 = (b * a) - (i * c)
	t_8 = t_7 * ((y * x) - (t * z))
	t_9 = (j * x) - (k * z)
	t_10 = ((b * y0) - (i * y1)) * t_9
	t_11 = t_9 * ((y0 * b) - (i * y1))
	t_12 = (y4 * y1) - (y5 * y0)
	t_13 = t_4 * t_12
	t_14 = ((y2 * k) - (y3 * j)) * t_12
	t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))))
	t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)))
	t_17 = (t * y2) - (y * y3)
	tmp = 0
	if y4 < -7.206256231996481e+60:
		tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14)
	elif y4 < -3.364603505246317e-66:
		tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)))
	elif y4 < -1.2000065055686116e-105:
		tmp = t_16
	elif y4 < 6.718963124057495e-279:
		tmp = t_15
	elif y4 < 4.77962681403792e-222:
		tmp = t_16
	elif y4 < 2.2852241541266835e-175:
		tmp = t_15
	else:
		tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(y4 * c) - Float64(y5 * a))
	t_2 = Float64(Float64(x * y2) - Float64(z * y3))
	t_3 = Float64(Float64(y2 * t) - Float64(y3 * y))
	t_4 = Float64(Float64(k * y2) - Float64(j * y3))
	t_5 = Float64(Float64(y4 * b) - Float64(y5 * i))
	t_6 = Float64(Float64(Float64(j * t) - Float64(k * y)) * t_5)
	t_7 = Float64(Float64(b * a) - Float64(i * c))
	t_8 = Float64(t_7 * Float64(Float64(y * x) - Float64(t * z)))
	t_9 = Float64(Float64(j * x) - Float64(k * z))
	t_10 = Float64(Float64(Float64(b * y0) - Float64(i * y1)) * t_9)
	t_11 = Float64(t_9 * Float64(Float64(y0 * b) - Float64(i * y1)))
	t_12 = Float64(Float64(y4 * y1) - Float64(y5 * y0))
	t_13 = Float64(t_4 * t_12)
	t_14 = Float64(Float64(Float64(y2 * k) - Float64(y3 * j)) * t_12)
	t_15 = Float64(Float64(Float64(Float64(Float64(Float64(k * y) * Float64(y5 * i)) - Float64(Float64(y * b) * Float64(y4 * k))) - Float64(Float64(y5 * t) * Float64(i * j))) - Float64(Float64(t_3 * t_1) - t_14)) + Float64(t_8 - Float64(t_11 - Float64(Float64(Float64(y2 * x) - Float64(y3 * z)) * Float64(Float64(c * y0) - Float64(y1 * a))))))
	t_16 = Float64(Float64(Float64(t_6 - Float64(Float64(y3 * y) * Float64(Float64(y5 * a) - Float64(y4 * c)))) + Float64(Float64(Float64(y5 * a) * Float64(t * y2)) + t_13)) + Float64(Float64(t_2 * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(t_10 - Float64(Float64(Float64(y * x) - Float64(z * t)) * t_7))))
	t_17 = Float64(Float64(t * y2) - Float64(y * y3))
	tmp = 0.0
	if (y4 < -7.206256231996481e+60)
		tmp = Float64(Float64(t_8 - Float64(t_11 - t_6)) - Float64(Float64(t_3 / Float64(1.0 / t_1)) - t_14));
	elseif (y4 < -3.364603505246317e-66)
		tmp = Float64(Float64(Float64(Float64(Float64(Float64(t * c) * Float64(i * z)) - Float64(Float64(a * t) * Float64(b * z))) - Float64(Float64(y * c) * Float64(i * x))) - t_10) + Float64(Float64(Float64(Float64(y0 * c) - Float64(a * y1)) * t_2) - Float64(Float64(t_17 * Float64(Float64(y4 * c) - Float64(a * y5))) - Float64(Float64(Float64(y1 * y4) - Float64(y5 * y0)) * t_4))));
	elseif (y4 < -1.2000065055686116e-105)
		tmp = t_16;
	elseif (y4 < 6.718963124057495e-279)
		tmp = t_15;
	elseif (y4 < 4.77962681403792e-222)
		tmp = t_16;
	elseif (y4 < 2.2852241541266835e-175)
		tmp = t_15;
	else
		tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(k * Float64(i * Float64(z * y1))) - Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(y0 * Float64(k * Float64(z * b)))))) + Float64(Float64(z * Float64(y3 * Float64(a * y1))) - Float64(Float64(y2 * Float64(x * Float64(a * y1))) + Float64(y0 * Float64(z * Float64(c * y3)))))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * t_5)) - Float64(t_17 * t_1)) + t_13);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = (y4 * c) - (y5 * a);
	t_2 = (x * y2) - (z * y3);
	t_3 = (y2 * t) - (y3 * y);
	t_4 = (k * y2) - (j * y3);
	t_5 = (y4 * b) - (y5 * i);
	t_6 = ((j * t) - (k * y)) * t_5;
	t_7 = (b * a) - (i * c);
	t_8 = t_7 * ((y * x) - (t * z));
	t_9 = (j * x) - (k * z);
	t_10 = ((b * y0) - (i * y1)) * t_9;
	t_11 = t_9 * ((y0 * b) - (i * y1));
	t_12 = (y4 * y1) - (y5 * y0);
	t_13 = t_4 * t_12;
	t_14 = ((y2 * k) - (y3 * j)) * t_12;
	t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
	t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
	t_17 = (t * y2) - (y * y3);
	tmp = 0.0;
	if (y4 < -7.206256231996481e+60)
		tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
	elseif (y4 < -3.364603505246317e-66)
		tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
	elseif (y4 < -1.2000065055686116e-105)
		tmp = t_16;
	elseif (y4 < 6.718963124057495e-279)
		tmp = t_15;
	elseif (y4 < 4.77962681403792e-222)
		tmp = t_16;
	elseif (y4 < 2.2852241541266835e-175)
		tmp = t_15;
	else
		tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]}, Block[{t$95$7 = N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(t$95$7 * N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * t$95$9), $MachinePrecision]}, Block[{t$95$11 = N[(t$95$9 * N[(N[(y0 * b), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$12 = N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$13 = N[(t$95$4 * t$95$12), $MachinePrecision]}, Block[{t$95$14 = N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * t$95$12), $MachinePrecision]}, Block[{t$95$15 = N[(N[(N[(N[(N[(N[(k * y), $MachinePrecision] * N[(y5 * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y4 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y5 * t), $MachinePrecision] * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 * t$95$1), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision] + N[(t$95$8 - N[(t$95$11 - N[(N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$16 = N[(N[(N[(t$95$6 - N[(N[(y3 * y), $MachinePrecision] * N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y5 * a), $MachinePrecision] * N[(t * y2), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$10 - N[(N[(N[(y * x), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$17 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, If[Less[y4, -7.206256231996481e+60], N[(N[(t$95$8 - N[(t$95$11 - t$95$6), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision], If[Less[y4, -3.364603505246317e-66], N[(N[(N[(N[(N[(N[(t * c), $MachinePrecision] * N[(i * z), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * c), $MachinePrecision] * N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$10), $MachinePrecision] + N[(N[(N[(N[(y0 * c), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] - N[(N[(t$95$17 * N[(N[(y4 * c), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[y4, -1.2000065055686116e-105], t$95$16, If[Less[y4, 6.718963124057495e-279], t$95$15, If[Less[y4, 4.77962681403792e-222], t$95$16, If[Less[y4, 2.2852241541266835e-175], t$95$15, N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(k * N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(k * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(y3 * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * N[(x * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(z * N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(t$95$17 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y4 \cdot c - y5 \cdot a\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := y2 \cdot t - y3 \cdot y\\
t_4 := k \cdot y2 - j \cdot y3\\
t_5 := y4 \cdot b - y5 \cdot i\\
t_6 := \left(j \cdot t - k \cdot y\right) \cdot t\_5\\
t_7 := b \cdot a - i \cdot c\\
t_8 := t\_7 \cdot \left(y \cdot x - t \cdot z\right)\\
t_9 := j \cdot x - k \cdot z\\
t_10 := \left(b \cdot y0 - i \cdot y1\right) \cdot t\_9\\
t_11 := t\_9 \cdot \left(y0 \cdot b - i \cdot y1\right)\\
t_12 := y4 \cdot y1 - y5 \cdot y0\\
t_13 := t\_4 \cdot t\_12\\
t_14 := \left(y2 \cdot k - y3 \cdot j\right) \cdot t\_12\\
t_15 := \left(\left(\left(\left(k \cdot y\right) \cdot \left(y5 \cdot i\right) - \left(y \cdot b\right) \cdot \left(y4 \cdot k\right)\right) - \left(y5 \cdot t\right) \cdot \left(i \cdot j\right)\right) - \left(t\_3 \cdot t\_1 - t\_14\right)\right) + \left(t\_8 - \left(t\_11 - \left(y2 \cdot x - y3 \cdot z\right) \cdot \left(c \cdot y0 - y1 \cdot a\right)\right)\right)\\
t_16 := \left(\left(t\_6 - \left(y3 \cdot y\right) \cdot \left(y5 \cdot a - y4 \cdot c\right)\right) + \left(\left(y5 \cdot a\right) \cdot \left(t \cdot y2\right) + t\_13\right)\right) + \left(t\_2 \cdot \left(c \cdot y0 - a \cdot y1\right) - \left(t\_10 - \left(y \cdot x - z \cdot t\right) \cdot t\_7\right)\right)\\
t_17 := t \cdot y2 - y \cdot y3\\
\mathbf{if}\;y4 < -7.206256231996481 \cdot 10^{+60}:\\
\;\;\;\;\left(t\_8 - \left(t\_11 - t\_6\right)\right) - \left(\frac{t\_3}{\frac{1}{t\_1}} - t\_14\right)\\

\mathbf{elif}\;y4 < -3.364603505246317 \cdot 10^{-66}:\\
\;\;\;\;\left(\left(\left(\left(t \cdot c\right) \cdot \left(i \cdot z\right) - \left(a \cdot t\right) \cdot \left(b \cdot z\right)\right) - \left(y \cdot c\right) \cdot \left(i \cdot x\right)\right) - t\_10\right) + \left(\left(y0 \cdot c - a \cdot y1\right) \cdot t\_2 - \left(t\_17 \cdot \left(y4 \cdot c - a \cdot y5\right) - \left(y1 \cdot y4 - y5 \cdot y0\right) \cdot t\_4\right)\right)\\

\mathbf{elif}\;y4 < -1.2000065055686116 \cdot 10^{-105}:\\
\;\;\;\;t\_16\\

\mathbf{elif}\;y4 < 6.718963124057495 \cdot 10^{-279}:\\
\;\;\;\;t\_15\\

\mathbf{elif}\;y4 < 4.77962681403792 \cdot 10^{-222}:\\
\;\;\;\;t\_16\\

\mathbf{elif}\;y4 < 2.2852241541266835 \cdot 10^{-175}:\\
\;\;\;\;t\_15\\

\mathbf{else}:\\
\;\;\;\;\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(k \cdot \left(i \cdot \left(z \cdot y1\right)\right) - \left(j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + y0 \cdot \left(k \cdot \left(z \cdot b\right)\right)\right)\right)\right) + \left(z \cdot \left(y3 \cdot \left(a \cdot y1\right)\right) - \left(y2 \cdot \left(x \cdot \left(a \cdot y1\right)\right) + y0 \cdot \left(z \cdot \left(c \cdot y3\right)\right)\right)\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot t\_5\right) - t\_17 \cdot t\_1\right) + t\_13\\


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2024163 
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
  :name "Linear.Matrix:det44 from linear-1.19.1.3"
  :precision binary64

  :alt
  (! :herbie-platform default (if (< y4 -7206256231996481000000000000000000000000000000000000000000000) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3364603505246317/1000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -3000016263921529/2500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 1343792624811499/200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 29872667587737/6250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 4570448308253367/20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))))))))

  (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))