Linear.Matrix:det44 from linear-1.19.1.3

Percentage Accurate: 30.3% → 41.3%
Time: 46.6s
Alternatives: 37
Speedup: 3.6×

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 37 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: 30.3% 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.3% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(b \cdot y4 - i \cdot y5\right)\\ t_2 := y \cdot k - t \cdot j\\ t_3 := x \cdot y - z \cdot t\\ t_4 := i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot t\_2 - c \cdot t\_3\right)\right)\\ \mathbf{if}\;i \leq -1.05 \cdot 10^{+94}:\\ \;\;\;\;t\_4\\ \mathbf{elif}\;i \leq -6.2 \cdot 10^{+26}:\\ \;\;\;\;t \cdot t\_1\\ \mathbf{elif}\;i \leq -1.38 \cdot 10^{-123}:\\ \;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(i \cdot t\_2 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\right)\\ \mathbf{elif}\;i \leq 9 \cdot 10^{-304}:\\ \;\;\;\;t \cdot \left(\left(t\_1 + z \cdot \left(c \cdot i - a \cdot b\right)\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;i \leq 2 \cdot 10^{-161}:\\ \;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\ \mathbf{elif}\;i \leq 6.8 \cdot 10^{+42}:\\ \;\;\;\;b \cdot \left(\left(a \cdot t\_3 + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_4\\ \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 (- (* b y4) (* i y5))))
        (t_2 (- (* y k) (* t j)))
        (t_3 (- (* x y) (* z t)))
        (t_4 (* i (+ (* y1 (- (* x j) (* z k))) (- (* y5 t_2) (* c t_3))))))
   (if (<= i -1.05e+94)
     t_4
     (if (<= i -6.2e+26)
       (* t t_1)
       (if (<= i -1.38e-123)
         (*
          y5
          (+
           (* a (- (* t y2) (* y y3)))
           (+ (* i t_2) (* y0 (- (* j y3) (* k y2))))))
         (if (<= i 9e-304)
           (*
            t
            (+ (+ t_1 (* z (- (* c i) (* a b)))) (* y2 (- (* a y5) (* c y4)))))
           (if (<= i 2e-161)
             (*
              z
              (+
               (* k (- (* b y0) (* i y1)))
               (- (* y3 (- (* a y1) (* c y0))) (* t (- (* a b) (* c i))))))
             (if (<= i 6.8e+42)
               (*
                b
                (+
                 (+ (* a t_3) (* y4 (- (* t j) (* y k))))
                 (* y0 (- (* z k) (* x j)))))
               t_4))))))))
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 * ((b * y4) - (i * y5));
	double t_2 = (y * k) - (t * j);
	double t_3 = (x * y) - (z * t);
	double t_4 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * t_2) - (c * t_3)));
	double tmp;
	if (i <= -1.05e+94) {
		tmp = t_4;
	} else if (i <= -6.2e+26) {
		tmp = t * t_1;
	} else if (i <= -1.38e-123) {
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_2) + (y0 * ((j * y3) - (k * y2)))));
	} else if (i <= 9e-304) {
		tmp = t * ((t_1 + (z * ((c * i) - (a * b)))) + (y2 * ((a * y5) - (c * y4))));
	} else if (i <= 2e-161) {
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))));
	} else if (i <= 6.8e+42) {
		tmp = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
	} else {
		tmp = t_4;
	}
	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) :: t_3
    real(8) :: t_4
    real(8) :: tmp
    t_1 = j * ((b * y4) - (i * y5))
    t_2 = (y * k) - (t * j)
    t_3 = (x * y) - (z * t)
    t_4 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * t_2) - (c * t_3)))
    if (i <= (-1.05d+94)) then
        tmp = t_4
    else if (i <= (-6.2d+26)) then
        tmp = t * t_1
    else if (i <= (-1.38d-123)) then
        tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_2) + (y0 * ((j * y3) - (k * y2)))))
    else if (i <= 9d-304) then
        tmp = t * ((t_1 + (z * ((c * i) - (a * b)))) + (y2 * ((a * y5) - (c * y4))))
    else if (i <= 2d-161) then
        tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))))
    else if (i <= 6.8d+42) then
        tmp = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
    else
        tmp = t_4
    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 * ((b * y4) - (i * y5));
	double t_2 = (y * k) - (t * j);
	double t_3 = (x * y) - (z * t);
	double t_4 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * t_2) - (c * t_3)));
	double tmp;
	if (i <= -1.05e+94) {
		tmp = t_4;
	} else if (i <= -6.2e+26) {
		tmp = t * t_1;
	} else if (i <= -1.38e-123) {
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_2) + (y0 * ((j * y3) - (k * y2)))));
	} else if (i <= 9e-304) {
		tmp = t * ((t_1 + (z * ((c * i) - (a * b)))) + (y2 * ((a * y5) - (c * y4))));
	} else if (i <= 2e-161) {
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))));
	} else if (i <= 6.8e+42) {
		tmp = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
	} else {
		tmp = t_4;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = j * ((b * y4) - (i * y5))
	t_2 = (y * k) - (t * j)
	t_3 = (x * y) - (z * t)
	t_4 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * t_2) - (c * t_3)))
	tmp = 0
	if i <= -1.05e+94:
		tmp = t_4
	elif i <= -6.2e+26:
		tmp = t * t_1
	elif i <= -1.38e-123:
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_2) + (y0 * ((j * y3) - (k * y2)))))
	elif i <= 9e-304:
		tmp = t * ((t_1 + (z * ((c * i) - (a * b)))) + (y2 * ((a * y5) - (c * y4))))
	elif i <= 2e-161:
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))))
	elif i <= 6.8e+42:
		tmp = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
	else:
		tmp = t_4
	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(b * y4) - Float64(i * y5)))
	t_2 = Float64(Float64(y * k) - Float64(t * j))
	t_3 = Float64(Float64(x * y) - Float64(z * t))
	t_4 = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y5 * t_2) - Float64(c * t_3))))
	tmp = 0.0
	if (i <= -1.05e+94)
		tmp = t_4;
	elseif (i <= -6.2e+26)
		tmp = Float64(t * t_1);
	elseif (i <= -1.38e-123)
		tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(i * t_2) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))));
	elseif (i <= 9e-304)
		tmp = Float64(t * Float64(Float64(t_1 + Float64(z * Float64(Float64(c * i) - Float64(a * b)))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))));
	elseif (i <= 2e-161)
		tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))) - Float64(t * Float64(Float64(a * b) - Float64(c * i))))));
	elseif (i <= 6.8e+42)
		tmp = Float64(b * Float64(Float64(Float64(a * t_3) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))));
	else
		tmp = t_4;
	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 * ((b * y4) - (i * y5));
	t_2 = (y * k) - (t * j);
	t_3 = (x * y) - (z * t);
	t_4 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * t_2) - (c * t_3)));
	tmp = 0.0;
	if (i <= -1.05e+94)
		tmp = t_4;
	elseif (i <= -6.2e+26)
		tmp = t * t_1;
	elseif (i <= -1.38e-123)
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_2) + (y0 * ((j * y3) - (k * y2)))));
	elseif (i <= 9e-304)
		tmp = t * ((t_1 + (z * ((c * i) - (a * b)))) + (y2 * ((a * y5) - (c * y4))));
	elseif (i <= 2e-161)
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))));
	elseif (i <= 6.8e+42)
		tmp = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
	else
		tmp = t_4;
	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[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * t$95$2), $MachinePrecision] - N[(c * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.05e+94], t$95$4, If[LessEqual[i, -6.2e+26], N[(t * t$95$1), $MachinePrecision], If[LessEqual[i, -1.38e-123], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * t$95$2), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9e-304], N[(t * N[(N[(t$95$1 + N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2e-161], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.8e+42], N[(b * N[(N[(N[(a * t$95$3), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := j \cdot \left(b \cdot y4 - i \cdot y5\right)\\
t_2 := y \cdot k - t \cdot j\\
t_3 := x \cdot y - z \cdot t\\
t_4 := i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot t\_2 - c \cdot t\_3\right)\right)\\
\mathbf{if}\;i \leq -1.05 \cdot 10^{+94}:\\
\;\;\;\;t\_4\\

\mathbf{elif}\;i \leq -6.2 \cdot 10^{+26}:\\
\;\;\;\;t \cdot t\_1\\

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

\mathbf{elif}\;i \leq 9 \cdot 10^{-304}:\\
\;\;\;\;t \cdot \left(\left(t\_1 + z \cdot \left(c \cdot i - a \cdot b\right)\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

\mathbf{elif}\;i \leq 2 \cdot 10^{-161}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\

\mathbf{elif}\;i \leq 6.8 \cdot 10^{+42}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t\_3 + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if i < -1.04999999999999995e94 or 6.7999999999999995e42 < i

    1. Initial program 30.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 i around -inf 58.6%

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

    if -1.04999999999999995e94 < i < -6.1999999999999999e26

    1. Initial program 13.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 t around inf 53.7%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in j around inf 60.3%

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

    if -6.1999999999999999e26 < i < -1.38e-123

    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 y5 around -inf 58.3%

      \[\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 -1.38e-123 < i < 8.9999999999999995e-304

    1. Initial program 28.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 t around inf 56.3%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]

    if 8.9999999999999995e-304 < i < 2.00000000000000006e-161

    1. Initial program 31.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 z around -inf 63.5%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]

    if 2.00000000000000006e-161 < i < 6.7999999999999995e42

    1. Initial program 42.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 58.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)} \]
  3. Recombined 6 regimes into one program.
  4. Final simplification58.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -1.05 \cdot 10^{+94}:\\ \;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) - c \cdot \left(x \cdot y - z \cdot t\right)\right)\right)\\ \mathbf{elif}\;i \leq -6.2 \cdot 10^{+26}:\\ \;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;i \leq -1.38 \cdot 10^{-123}:\\ \;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(i \cdot \left(y \cdot k - t \cdot j\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\right)\\ \mathbf{elif}\;i \leq 9 \cdot 10^{-304}:\\ \;\;\;\;t \cdot \left(\left(j \cdot \left(b \cdot y4 - i \cdot y5\right) + z \cdot \left(c \cdot i - a \cdot b\right)\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;i \leq 2 \cdot 10^{-161}:\\ \;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\ \mathbf{elif}\;i \leq 6.8 \cdot 10^{+42}:\\ \;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) - c \cdot \left(x \cdot y - z \cdot t\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 52.4% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot y0 - i \cdot y1\\ t_2 := \left(\left(\left(\left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - z \cdot y3\right) - \left(\left(c \cdot i - a \cdot b\right) \cdot \left(x \cdot y - z \cdot t\right) - t\_1 \cdot \left(z \cdot k - x \cdot j\right)\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + \left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\ \mathbf{if}\;t\_2 \leq \infty:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(k \cdot t\_1 + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot \left(a \cdot b - c \cdot i\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
 (let* ((t_1 (- (* b y0) (* i y1)))
        (t_2
         (+
          (+
           (+
            (-
             (* (- (* c y0) (* a y1)) (- (* x y2) (* z y3)))
             (-
              (* (- (* c i) (* a b)) (- (* x y) (* z t)))
              (* t_1 (- (* z k) (* x j)))))
            (* (- (* t j) (* y k)) (- (* b y4) (* i y5))))
           (* (- (* t y2) (* y y3)) (- (* a y5) (* c y4))))
          (* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))))))
   (if (<= t_2 INFINITY)
     t_2
     (*
      z
      (+
       (* k t_1)
       (- (* y3 (- (* a y1) (* c y0))) (* t (- (* a b) (* c i)))))))))
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 = (b * y0) - (i * y1);
	double t_2 = ((((((c * y0) - (a * y1)) * ((x * y2) - (z * y3))) - ((((c * i) - (a * b)) * ((x * y) - (z * t))) - (t_1 * ((z * k) - (x * j))))) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
	double tmp;
	if (t_2 <= ((double) INFINITY)) {
		tmp = t_2;
	} else {
		tmp = z * ((k * t_1) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))));
	}
	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 = (b * y0) - (i * y1);
	double t_2 = ((((((c * y0) - (a * y1)) * ((x * y2) - (z * y3))) - ((((c * i) - (a * b)) * ((x * y) - (z * t))) - (t_1 * ((z * k) - (x * j))))) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
	double tmp;
	if (t_2 <= Double.POSITIVE_INFINITY) {
		tmp = t_2;
	} else {
		tmp = z * ((k * t_1) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = (b * y0) - (i * y1)
	t_2 = ((((((c * y0) - (a * y1)) * ((x * y2) - (z * y3))) - ((((c * i) - (a * b)) * ((x * y) - (z * t))) - (t_1 * ((z * k) - (x * j))))) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)))
	tmp = 0
	if t_2 <= math.inf:
		tmp = t_2
	else:
		tmp = z * ((k * t_1) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(b * y0) - Float64(i * y1))
	t_2 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(c * y0) - Float64(a * y1)) * Float64(Float64(x * y2) - Float64(z * y3))) - Float64(Float64(Float64(Float64(c * i) - Float64(a * b)) * Float64(Float64(x * y) - Float64(z * t))) - Float64(t_1 * Float64(Float64(z * k) - Float64(x * j))))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(a * y5) - Float64(c * y4)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5))))
	tmp = 0.0
	if (t_2 <= Inf)
		tmp = t_2;
	else
		tmp = Float64(z * Float64(Float64(k * t_1) + Float64(Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))) - Float64(t * Float64(Float64(a * b) - Float64(c * i))))));
	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 = (b * y0) - (i * y1);
	t_2 = ((((((c * y0) - (a * y1)) * ((x * y2) - (z * y3))) - ((((c * i) - (a * b)) * ((x * y) - (z * t))) - (t_1 * ((z * k) - (x * j))))) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
	tmp = 0.0;
	if (t_2 <= Inf)
		tmp = t_2;
	else
		tmp = z * ((k * t_1) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))));
	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[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision] * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, N[(z * N[(N[(k * t$95$1), $MachinePrecision] + N[(N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

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

\mathbf{else}:\\
\;\;\;\;z \cdot \left(k \cdot t\_1 + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot \left(a \cdot b - c \cdot i\right)\right)\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 91.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

    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 z around -inf 39.4%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification58.3%

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

Alternative 3: 40.2% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot k - t \cdot j\\ t_2 := t \cdot j - y \cdot k\\ t_3 := x \cdot y - z \cdot t\\ t_4 := i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot t\_1 - c \cdot t\_3\right)\right)\\ \mathbf{if}\;i \leq -2.5 \cdot 10^{+92}:\\ \;\;\;\;t\_4\\ \mathbf{elif}\;i \leq -3.3 \cdot 10^{+26}:\\ \;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;i \leq -4 \cdot 10^{-110}:\\ \;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(i \cdot t\_1 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\right)\\ \mathbf{elif}\;i \leq -3.8 \cdot 10^{-215}:\\ \;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\ \mathbf{elif}\;i \leq 2.3 \cdot 10^{-292}:\\ \;\;\;\;y4 \cdot \left(\left(b \cdot t\_2 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;i \leq 7.6 \cdot 10^{-161}:\\ \;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\ \mathbf{elif}\;i \leq 1.05 \cdot 10^{+43}:\\ \;\;\;\;b \cdot \left(\left(a \cdot t\_3 + y4 \cdot t\_2\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_4\\ \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 (- (* y k) (* t j)))
        (t_2 (- (* t j) (* y k)))
        (t_3 (- (* x y) (* z t)))
        (t_4 (* i (+ (* y1 (- (* x j) (* z k))) (- (* y5 t_1) (* c t_3))))))
   (if (<= i -2.5e+92)
     t_4
     (if (<= i -3.3e+26)
       (* t (* j (- (* b y4) (* i y5))))
       (if (<= i -4e-110)
         (*
          y5
          (+
           (* a (- (* t y2) (* y y3)))
           (+ (* i t_1) (* y0 (- (* j y3) (* k y2))))))
         (if (<= i -3.8e-215)
           (* b (* z (- (* k y0) (* t a))))
           (if (<= i 2.3e-292)
             (*
              y4
              (+
               (+ (* b t_2) (* y1 (- (* k y2) (* j y3))))
               (* c (- (* y y3) (* t y2)))))
             (if (<= i 7.6e-161)
               (* z (* y3 (- (* a y1) (* c y0))))
               (if (<= i 1.05e+43)
                 (* b (+ (+ (* a t_3) (* y4 t_2)) (* y0 (- (* z k) (* x j)))))
                 t_4)))))))))
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 = (y * k) - (t * j);
	double t_2 = (t * j) - (y * k);
	double t_3 = (x * y) - (z * t);
	double t_4 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * t_1) - (c * t_3)));
	double tmp;
	if (i <= -2.5e+92) {
		tmp = t_4;
	} else if (i <= -3.3e+26) {
		tmp = t * (j * ((b * y4) - (i * y5)));
	} else if (i <= -4e-110) {
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_1) + (y0 * ((j * y3) - (k * y2)))));
	} else if (i <= -3.8e-215) {
		tmp = b * (z * ((k * y0) - (t * a)));
	} else if (i <= 2.3e-292) {
		tmp = y4 * (((b * t_2) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	} else if (i <= 7.6e-161) {
		tmp = z * (y3 * ((a * y1) - (c * y0)));
	} else if (i <= 1.05e+43) {
		tmp = b * (((a * t_3) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))));
	} else {
		tmp = t_4;
	}
	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) :: t_3
    real(8) :: t_4
    real(8) :: tmp
    t_1 = (y * k) - (t * j)
    t_2 = (t * j) - (y * k)
    t_3 = (x * y) - (z * t)
    t_4 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * t_1) - (c * t_3)))
    if (i <= (-2.5d+92)) then
        tmp = t_4
    else if (i <= (-3.3d+26)) then
        tmp = t * (j * ((b * y4) - (i * y5)))
    else if (i <= (-4d-110)) then
        tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_1) + (y0 * ((j * y3) - (k * y2)))))
    else if (i <= (-3.8d-215)) then
        tmp = b * (z * ((k * y0) - (t * a)))
    else if (i <= 2.3d-292) then
        tmp = y4 * (((b * t_2) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
    else if (i <= 7.6d-161) then
        tmp = z * (y3 * ((a * y1) - (c * y0)))
    else if (i <= 1.05d+43) then
        tmp = b * (((a * t_3) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))))
    else
        tmp = t_4
    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 = (y * k) - (t * j);
	double t_2 = (t * j) - (y * k);
	double t_3 = (x * y) - (z * t);
	double t_4 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * t_1) - (c * t_3)));
	double tmp;
	if (i <= -2.5e+92) {
		tmp = t_4;
	} else if (i <= -3.3e+26) {
		tmp = t * (j * ((b * y4) - (i * y5)));
	} else if (i <= -4e-110) {
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_1) + (y0 * ((j * y3) - (k * y2)))));
	} else if (i <= -3.8e-215) {
		tmp = b * (z * ((k * y0) - (t * a)));
	} else if (i <= 2.3e-292) {
		tmp = y4 * (((b * t_2) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	} else if (i <= 7.6e-161) {
		tmp = z * (y3 * ((a * y1) - (c * y0)));
	} else if (i <= 1.05e+43) {
		tmp = b * (((a * t_3) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))));
	} else {
		tmp = t_4;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = (y * k) - (t * j)
	t_2 = (t * j) - (y * k)
	t_3 = (x * y) - (z * t)
	t_4 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * t_1) - (c * t_3)))
	tmp = 0
	if i <= -2.5e+92:
		tmp = t_4
	elif i <= -3.3e+26:
		tmp = t * (j * ((b * y4) - (i * y5)))
	elif i <= -4e-110:
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_1) + (y0 * ((j * y3) - (k * y2)))))
	elif i <= -3.8e-215:
		tmp = b * (z * ((k * y0) - (t * a)))
	elif i <= 2.3e-292:
		tmp = y4 * (((b * t_2) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
	elif i <= 7.6e-161:
		tmp = z * (y3 * ((a * y1) - (c * y0)))
	elif i <= 1.05e+43:
		tmp = b * (((a * t_3) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))))
	else:
		tmp = t_4
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(y * k) - Float64(t * j))
	t_2 = Float64(Float64(t * j) - Float64(y * k))
	t_3 = Float64(Float64(x * y) - Float64(z * t))
	t_4 = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y5 * t_1) - Float64(c * t_3))))
	tmp = 0.0
	if (i <= -2.5e+92)
		tmp = t_4;
	elseif (i <= -3.3e+26)
		tmp = Float64(t * Float64(j * Float64(Float64(b * y4) - Float64(i * y5))));
	elseif (i <= -4e-110)
		tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(i * t_1) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))));
	elseif (i <= -3.8e-215)
		tmp = Float64(b * Float64(z * Float64(Float64(k * y0) - Float64(t * a))));
	elseif (i <= 2.3e-292)
		tmp = Float64(y4 * Float64(Float64(Float64(b * t_2) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2)))));
	elseif (i <= 7.6e-161)
		tmp = Float64(z * Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))));
	elseif (i <= 1.05e+43)
		tmp = Float64(b * Float64(Float64(Float64(a * t_3) + Float64(y4 * t_2)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))));
	else
		tmp = t_4;
	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 = (y * k) - (t * j);
	t_2 = (t * j) - (y * k);
	t_3 = (x * y) - (z * t);
	t_4 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * t_1) - (c * t_3)));
	tmp = 0.0;
	if (i <= -2.5e+92)
		tmp = t_4;
	elseif (i <= -3.3e+26)
		tmp = t * (j * ((b * y4) - (i * y5)));
	elseif (i <= -4e-110)
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_1) + (y0 * ((j * y3) - (k * y2)))));
	elseif (i <= -3.8e-215)
		tmp = b * (z * ((k * y0) - (t * a)));
	elseif (i <= 2.3e-292)
		tmp = y4 * (((b * t_2) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	elseif (i <= 7.6e-161)
		tmp = z * (y3 * ((a * y1) - (c * y0)));
	elseif (i <= 1.05e+43)
		tmp = b * (((a * t_3) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))));
	else
		tmp = t_4;
	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[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * t$95$1), $MachinePrecision] - N[(c * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.5e+92], t$95$4, If[LessEqual[i, -3.3e+26], N[(t * N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4e-110], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * t$95$1), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.8e-215], N[(b * N[(z * N[(N[(k * y0), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.3e-292], N[(y4 * N[(N[(N[(b * t$95$2), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.6e-161], N[(z * N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.05e+43], N[(b * N[(N[(N[(a * t$95$3), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y \cdot k - t \cdot j\\
t_2 := t \cdot j - y \cdot k\\
t_3 := x \cdot y - z \cdot t\\
t_4 := i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot t\_1 - c \cdot t\_3\right)\right)\\
\mathbf{if}\;i \leq -2.5 \cdot 10^{+92}:\\
\;\;\;\;t\_4\\

\mathbf{elif}\;i \leq -3.3 \cdot 10^{+26}:\\
\;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\

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

\mathbf{elif}\;i \leq -3.8 \cdot 10^{-215}:\\
\;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\

\mathbf{elif}\;i \leq 2.3 \cdot 10^{-292}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t\_2 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\

\mathbf{elif}\;i \leq 7.6 \cdot 10^{-161}:\\
\;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\

\mathbf{elif}\;i \leq 1.05 \cdot 10^{+43}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t\_3 + y4 \cdot t\_2\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if i < -2.50000000000000011e92 or 1.05000000000000001e43 < i

    1. Initial program 30.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 i around -inf 58.6%

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

    if -2.50000000000000011e92 < i < -3.29999999999999993e26

    1. Initial program 13.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 t around inf 53.7%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in j around inf 60.3%

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

    if -3.29999999999999993e26 < i < -4.0000000000000002e-110

    1. Initial program 42.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 61.8%

      \[\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.0000000000000002e-110 < i < -3.79999999999999977e-215

    1. Initial program 19.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 39.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)} \]
    4. Taylor expanded in z around -inf 49.2%

      \[\leadsto \color{blue}{-1 \cdot \left(b \cdot \left(z \cdot \left(a \cdot t - k \cdot y0\right)\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg49.2%

        \[\leadsto \color{blue}{-b \cdot \left(z \cdot \left(a \cdot t - k \cdot y0\right)\right)} \]
    6. Simplified49.2%

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

    if -3.79999999999999977e-215 < i < 2.2999999999999999e-292

    1. Initial program 33.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 y4 around inf 66.8%

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

    if 2.2999999999999999e-292 < i < 7.6000000000000003e-161

    1. Initial program 32.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 z around -inf 62.4%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in y3 around inf 55.7%

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

    if 7.6000000000000003e-161 < i < 1.05000000000000001e43

    1. Initial program 42.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 58.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)} \]
  3. Recombined 7 regimes into one program.
  4. Final simplification58.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -2.5 \cdot 10^{+92}:\\ \;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) - c \cdot \left(x \cdot y - z \cdot t\right)\right)\right)\\ \mathbf{elif}\;i \leq -3.3 \cdot 10^{+26}:\\ \;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;i \leq -4 \cdot 10^{-110}:\\ \;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(i \cdot \left(y \cdot k - t \cdot j\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\right)\\ \mathbf{elif}\;i \leq -3.8 \cdot 10^{-215}:\\ \;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\ \mathbf{elif}\;i \leq 2.3 \cdot 10^{-292}:\\ \;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;i \leq 7.6 \cdot 10^{-161}:\\ \;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\ \mathbf{elif}\;i \leq 1.05 \cdot 10^{+43}:\\ \;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) - c \cdot \left(x \cdot y - z \cdot t\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 39.6% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot j - y \cdot k\\ t_2 := x \cdot y - z \cdot t\\ t_3 := i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) - c \cdot t\_2\right)\right)\\ \mathbf{if}\;i \leq -2.75 \cdot 10^{+94}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;i \leq -3650000:\\ \;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;i \leq -3.2 \cdot 10^{-233}:\\ \;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\ \mathbf{elif}\;i \leq 3.2 \cdot 10^{-292}:\\ \;\;\;\;y4 \cdot \left(\left(b \cdot t\_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;i \leq 6.6 \cdot 10^{-162}:\\ \;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\ \mathbf{elif}\;i \leq 5.6 \cdot 10^{+42}:\\ \;\;\;\;b \cdot \left(\left(a \cdot t\_2 + y4 \cdot t\_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_3\\ \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 (- (* t j) (* y k)))
        (t_2 (- (* x y) (* z t)))
        (t_3
         (*
          i
          (+
           (* y1 (- (* x j) (* z k)))
           (- (* y5 (- (* y k) (* t j))) (* c t_2))))))
   (if (<= i -2.75e+94)
     t_3
     (if (<= i -3650000.0)
       (* t (* j (- (* b y4) (* i y5))))
       (if (<= i -3.2e-233)
         (* a (* t (* b (- (* y2 (/ y5 b)) z))))
         (if (<= i 3.2e-292)
           (*
            y4
            (+
             (+ (* b t_1) (* y1 (- (* k y2) (* j y3))))
             (* c (- (* y y3) (* t y2)))))
           (if (<= i 6.6e-162)
             (* z (* y3 (- (* a y1) (* c y0))))
             (if (<= i 5.6e+42)
               (* b (+ (+ (* a t_2) (* y4 t_1)) (* y0 (- (* z k) (* x j)))))
               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 = (t * j) - (y * k);
	double t_2 = (x * y) - (z * t);
	double t_3 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) - (c * t_2)));
	double tmp;
	if (i <= -2.75e+94) {
		tmp = t_3;
	} else if (i <= -3650000.0) {
		tmp = t * (j * ((b * y4) - (i * y5)));
	} else if (i <= -3.2e-233) {
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)));
	} else if (i <= 3.2e-292) {
		tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	} else if (i <= 6.6e-162) {
		tmp = z * (y3 * ((a * y1) - (c * y0)));
	} else if (i <= 5.6e+42) {
		tmp = b * (((a * t_2) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
	} else {
		tmp = t_3;
	}
	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) :: t_3
    real(8) :: tmp
    t_1 = (t * j) - (y * k)
    t_2 = (x * y) - (z * t)
    t_3 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) - (c * t_2)))
    if (i <= (-2.75d+94)) then
        tmp = t_3
    else if (i <= (-3650000.0d0)) then
        tmp = t * (j * ((b * y4) - (i * y5)))
    else if (i <= (-3.2d-233)) then
        tmp = a * (t * (b * ((y2 * (y5 / b)) - z)))
    else if (i <= 3.2d-292) then
        tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
    else if (i <= 6.6d-162) then
        tmp = z * (y3 * ((a * y1) - (c * y0)))
    else if (i <= 5.6d+42) then
        tmp = b * (((a * t_2) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
    else
        tmp = t_3
    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 = (t * j) - (y * k);
	double t_2 = (x * y) - (z * t);
	double t_3 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) - (c * t_2)));
	double tmp;
	if (i <= -2.75e+94) {
		tmp = t_3;
	} else if (i <= -3650000.0) {
		tmp = t * (j * ((b * y4) - (i * y5)));
	} else if (i <= -3.2e-233) {
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)));
	} else if (i <= 3.2e-292) {
		tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	} else if (i <= 6.6e-162) {
		tmp = z * (y3 * ((a * y1) - (c * y0)));
	} else if (i <= 5.6e+42) {
		tmp = b * (((a * t_2) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
	} else {
		tmp = t_3;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = (t * j) - (y * k)
	t_2 = (x * y) - (z * t)
	t_3 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) - (c * t_2)))
	tmp = 0
	if i <= -2.75e+94:
		tmp = t_3
	elif i <= -3650000.0:
		tmp = t * (j * ((b * y4) - (i * y5)))
	elif i <= -3.2e-233:
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)))
	elif i <= 3.2e-292:
		tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
	elif i <= 6.6e-162:
		tmp = z * (y3 * ((a * y1) - (c * y0)))
	elif i <= 5.6e+42:
		tmp = b * (((a * t_2) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
	else:
		tmp = 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(t * j) - Float64(y * k))
	t_2 = Float64(Float64(x * y) - Float64(z * t))
	t_3 = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) - Float64(c * t_2))))
	tmp = 0.0
	if (i <= -2.75e+94)
		tmp = t_3;
	elseif (i <= -3650000.0)
		tmp = Float64(t * Float64(j * Float64(Float64(b * y4) - Float64(i * y5))));
	elseif (i <= -3.2e-233)
		tmp = Float64(a * Float64(t * Float64(b * Float64(Float64(y2 * Float64(y5 / b)) - z))));
	elseif (i <= 3.2e-292)
		tmp = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2)))));
	elseif (i <= 6.6e-162)
		tmp = Float64(z * Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))));
	elseif (i <= 5.6e+42)
		tmp = Float64(b * Float64(Float64(Float64(a * t_2) + Float64(y4 * t_1)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))));
	else
		tmp = 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 = (t * j) - (y * k);
	t_2 = (x * y) - (z * t);
	t_3 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) - (c * t_2)));
	tmp = 0.0;
	if (i <= -2.75e+94)
		tmp = t_3;
	elseif (i <= -3650000.0)
		tmp = t * (j * ((b * y4) - (i * y5)));
	elseif (i <= -3.2e-233)
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)));
	elseif (i <= 3.2e-292)
		tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	elseif (i <= 6.6e-162)
		tmp = z * (y3 * ((a * y1) - (c * y0)));
	elseif (i <= 5.6e+42)
		tmp = b * (((a * t_2) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
	else
		tmp = 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[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.75e+94], t$95$3, If[LessEqual[i, -3650000.0], N[(t * N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.2e-233], N[(a * N[(t * N[(b * N[(N[(y2 * N[(y5 / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.2e-292], N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.6e-162], N[(z * N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.6e+42], N[(b * N[(N[(N[(a * t$95$2), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := x \cdot y - z \cdot t\\
t_3 := i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) - c \cdot t\_2\right)\right)\\
\mathbf{if}\;i \leq -2.75 \cdot 10^{+94}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;i \leq -3650000:\\
\;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\

\mathbf{elif}\;i \leq -3.2 \cdot 10^{-233}:\\
\;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\

\mathbf{elif}\;i \leq 3.2 \cdot 10^{-292}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t\_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\

\mathbf{elif}\;i \leq 6.6 \cdot 10^{-162}:\\
\;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\

\mathbf{elif}\;i \leq 5.6 \cdot 10^{+42}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t\_2 + y4 \cdot t\_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if i < -2.7499999999999999e94 or 5.5999999999999999e42 < i

    1. Initial program 30.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 i around -inf 58.6%

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

    if -2.7499999999999999e94 < i < -3.65e6

    1. Initial program 22.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 t around inf 50.3%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in j around inf 56.0%

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

    if -3.65e6 < i < -3.1999999999999999e-233

    1. Initial program 31.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 t around inf 51.0%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in a around -inf 43.6%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*43.6%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
      2. mul-1-neg43.6%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right) \]
    6. Simplified43.6%

      \[\leadsto \color{blue}{\left(-a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
    7. Taylor expanded in b around inf 47.2%

      \[\leadsto \left(-a\right) \cdot \left(t \cdot \color{blue}{\left(b \cdot \left(z + -1 \cdot \frac{y2 \cdot y5}{b}\right)\right)}\right) \]
    8. Step-by-step derivation
      1. mul-1-neg47.2%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \left(z + \color{blue}{\left(-\frac{y2 \cdot y5}{b}\right)}\right)\right)\right) \]
      2. unsub-neg47.2%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \color{blue}{\left(z - \frac{y2 \cdot y5}{b}\right)}\right)\right) \]
      3. associate-/l*49.0%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \left(z - \color{blue}{y2 \cdot \frac{y5}{b}}\right)\right)\right) \]
    9. Simplified49.0%

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

    if -3.1999999999999999e-233 < i < 3.2000000000000002e-292

    1. Initial program 33.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 y4 around inf 66.8%

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

    if 3.2000000000000002e-292 < i < 6.60000000000000026e-162

    1. Initial program 32.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 z around -inf 62.4%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in y3 around inf 55.7%

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

    if 6.60000000000000026e-162 < i < 5.5999999999999999e42

    1. Initial program 42.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 58.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)} \]
  3. Recombined 6 regimes into one program.
  4. Final simplification56.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -2.75 \cdot 10^{+94}:\\ \;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) - c \cdot \left(x \cdot y - z \cdot t\right)\right)\right)\\ \mathbf{elif}\;i \leq -3650000:\\ \;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;i \leq -3.2 \cdot 10^{-233}:\\ \;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\ \mathbf{elif}\;i \leq 3.2 \cdot 10^{-292}:\\ \;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;i \leq 6.6 \cdot 10^{-162}:\\ \;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\ \mathbf{elif}\;i \leq 5.6 \cdot 10^{+42}:\\ \;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) - c \cdot \left(x \cdot y - z \cdot t\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 42.1% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := 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)\\ t_2 := t \cdot \left(\left(\left(b \cdot \left(j \cdot y4\right) + i \cdot \left(z \cdot c - j \cdot y5\right)\right) - a \cdot \left(z \cdot b\right)\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{if}\;y0 \leq -5.1 \cdot 10^{+116}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y0 \leq -2.55 \cdot 10^{-12}:\\ \;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\ \mathbf{elif}\;y0 \leq -1.5 \cdot 10^{-237}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y0 \leq 1.86 \cdot 10^{-115}:\\ \;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;y0 \leq 2.9 \cdot 10^{+159}:\\ \;\;\;\;t\_2\\ \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
         (*
          y0
          (+
           (+ (* y5 (- (* j y3) (* k y2))) (* c (- (* x y2) (* z y3))))
           (* b (- (* z k) (* x j))))))
        (t_2
         (*
          t
          (+
           (- (+ (* b (* j y4)) (* i (- (* z c) (* j y5)))) (* a (* z b)))
           (* y2 (- (* a y5) (* c y4)))))))
   (if (<= y0 -5.1e+116)
     t_1
     (if (<= y0 -2.55e-12)
       (*
        z
        (+
         (* k (- (* b y0) (* i y1)))
         (- (* y3 (- (* a y1) (* c y0))) (* t (- (* a b) (* c i))))))
       (if (<= y0 -1.5e-237)
         t_2
         (if (<= y0 1.86e-115)
           (*
            y4
            (+
             (+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
             (* c (- (* y y3) (* t y2)))))
           (if (<= y0 2.9e+159) t_2 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 = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
	double t_2 = t * ((((b * (j * y4)) + (i * ((z * c) - (j * y5)))) - (a * (z * b))) + (y2 * ((a * y5) - (c * y4))));
	double tmp;
	if (y0 <= -5.1e+116) {
		tmp = t_1;
	} else if (y0 <= -2.55e-12) {
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))));
	} else if (y0 <= -1.5e-237) {
		tmp = t_2;
	} else if (y0 <= 1.86e-115) {
		tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	} else if (y0 <= 2.9e+159) {
		tmp = t_2;
	} 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) :: t_2
    real(8) :: tmp
    t_1 = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))))
    t_2 = t * ((((b * (j * y4)) + (i * ((z * c) - (j * y5)))) - (a * (z * b))) + (y2 * ((a * y5) - (c * y4))))
    if (y0 <= (-5.1d+116)) then
        tmp = t_1
    else if (y0 <= (-2.55d-12)) then
        tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))))
    else if (y0 <= (-1.5d-237)) then
        tmp = t_2
    else if (y0 <= 1.86d-115) then
        tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
    else if (y0 <= 2.9d+159) then
        tmp = t_2
    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 = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
	double t_2 = t * ((((b * (j * y4)) + (i * ((z * c) - (j * y5)))) - (a * (z * b))) + (y2 * ((a * y5) - (c * y4))));
	double tmp;
	if (y0 <= -5.1e+116) {
		tmp = t_1;
	} else if (y0 <= -2.55e-12) {
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))));
	} else if (y0 <= -1.5e-237) {
		tmp = t_2;
	} else if (y0 <= 1.86e-115) {
		tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	} else if (y0 <= 2.9e+159) {
		tmp = t_2;
	} 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 = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))))
	t_2 = t * ((((b * (j * y4)) + (i * ((z * c) - (j * y5)))) - (a * (z * b))) + (y2 * ((a * y5) - (c * y4))))
	tmp = 0
	if y0 <= -5.1e+116:
		tmp = t_1
	elif y0 <= -2.55e-12:
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))))
	elif y0 <= -1.5e-237:
		tmp = t_2
	elif y0 <= 1.86e-115:
		tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
	elif y0 <= 2.9e+159:
		tmp = t_2
	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(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)))))
	t_2 = Float64(t * Float64(Float64(Float64(Float64(b * Float64(j * y4)) + Float64(i * Float64(Float64(z * c) - Float64(j * y5)))) - Float64(a * Float64(z * b))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))))
	tmp = 0.0
	if (y0 <= -5.1e+116)
		tmp = t_1;
	elseif (y0 <= -2.55e-12)
		tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))) - Float64(t * Float64(Float64(a * b) - Float64(c * i))))));
	elseif (y0 <= -1.5e-237)
		tmp = t_2;
	elseif (y0 <= 1.86e-115)
		tmp = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2)))));
	elseif (y0 <= 2.9e+159)
		tmp = t_2;
	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 = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
	t_2 = t * ((((b * (j * y4)) + (i * ((z * c) - (j * y5)))) - (a * (z * b))) + (y2 * ((a * y5) - (c * y4))));
	tmp = 0.0;
	if (y0 <= -5.1e+116)
		tmp = t_1;
	elseif (y0 <= -2.55e-12)
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))));
	elseif (y0 <= -1.5e-237)
		tmp = t_2;
	elseif (y0 <= 1.86e-115)
		tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	elseif (y0 <= 2.9e+159)
		tmp = t_2;
	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[(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]}, Block[{t$95$2 = N[(t * N[(N[(N[(N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -5.1e+116], t$95$1, If[LessEqual[y0, -2.55e-12], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -1.5e-237], t$95$2, If[LessEqual[y0, 1.86e-115], N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 2.9e+159], t$95$2, t$95$1]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := 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)\\
t_2 := t \cdot \left(\left(\left(b \cdot \left(j \cdot y4\right) + i \cdot \left(z \cdot c - j \cdot y5\right)\right) - a \cdot \left(z \cdot b\right)\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{if}\;y0 \leq -5.1 \cdot 10^{+116}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y0 \leq -2.55 \cdot 10^{-12}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\

\mathbf{elif}\;y0 \leq -1.5 \cdot 10^{-237}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;y0 \leq 1.86 \cdot 10^{-115}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\

\mathbf{elif}\;y0 \leq 2.9 \cdot 10^{+159}:\\
\;\;\;\;t\_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y0 < -5.09999999999999999e116 or 2.90000000000000014e159 < y0

    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 y0 around inf 72.0%

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

    if -5.09999999999999999e116 < y0 < -2.54999999999999984e-12

    1. Initial program 37.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 z around -inf 62.2%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]

    if -2.54999999999999984e-12 < y0 < -1.50000000000000012e-237 or 1.86e-115 < y0 < 2.90000000000000014e159

    1. Initial program 34.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 t around inf 47.1%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in i around 0 53.9%

      \[\leadsto t \cdot \color{blue}{\left(\left(-1 \cdot \left(a \cdot \left(b \cdot z\right)\right) + \left(b \cdot \left(j \cdot y4\right) + i \cdot \left(-1 \cdot \left(j \cdot y5\right) + c \cdot z\right)\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]

    if -1.50000000000000012e-237 < y0 < 1.86e-115

    1. Initial program 37.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 y4 around inf 49.0%

      \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification58.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y0 \leq -5.1 \cdot 10^{+116}:\\ \;\;\;\;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{elif}\;y0 \leq -2.55 \cdot 10^{-12}:\\ \;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\ \mathbf{elif}\;y0 \leq -1.5 \cdot 10^{-237}:\\ \;\;\;\;t \cdot \left(\left(\left(b \cdot \left(j \cdot y4\right) + i \cdot \left(z \cdot c - j \cdot y5\right)\right) - a \cdot \left(z \cdot b\right)\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y0 \leq 1.86 \cdot 10^{-115}:\\ \;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;y0 \leq 2.9 \cdot 10^{+159}:\\ \;\;\;\;t \cdot \left(\left(\left(b \cdot \left(j \cdot y4\right) + i \cdot \left(z \cdot c - j \cdot y5\right)\right) - a \cdot \left(z \cdot b\right)\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\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 6: 43.1% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ t_2 := a \cdot b - c \cdot i\\ \mathbf{if}\;y4 \leq -7.5 \cdot 10^{+26}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y4 \leq -4.5 \cdot 10^{-72}:\\ \;\;\;\;y \cdot \left(\left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + x \cdot t\_2\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{elif}\;y4 \leq -3.4 \cdot 10^{-209}:\\ \;\;\;\;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{elif}\;y4 \leq 2.5 \cdot 10^{-280}:\\ \;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\ \mathbf{elif}\;y4 \leq 6.6 \cdot 10^{+56}:\\ \;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot t\_2\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
         (*
          y4
          (+
           (+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
           (* c (- (* y y3) (* t y2))))))
        (t_2 (- (* a b) (* c i))))
   (if (<= y4 -7.5e+26)
     t_1
     (if (<= y4 -4.5e-72)
       (*
        y
        (+
         (+ (* k (- (* i y5) (* b y4))) (* x t_2))
         (* y3 (- (* c y4) (* a y5)))))
       (if (<= y4 -3.4e-209)
         (*
          y0
          (+
           (+ (* y5 (- (* j y3) (* k y2))) (* c (- (* x y2) (* z y3))))
           (* b (- (* z k) (* x j)))))
         (if (<= y4 2.5e-280)
           (* a (* t (* b (- (* y2 (/ y5 b)) z))))
           (if (<= y4 6.6e+56)
             (*
              z
              (+
               (* k (- (* b y0) (* i y1)))
               (- (* y3 (- (* a y1) (* c y0))) (* t t_2))))
             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 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	double t_2 = (a * b) - (c * i);
	double tmp;
	if (y4 <= -7.5e+26) {
		tmp = t_1;
	} else if (y4 <= -4.5e-72) {
		tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_2)) + (y3 * ((c * y4) - (a * y5))));
	} else if (y4 <= -3.4e-209) {
		tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
	} else if (y4 <= 2.5e-280) {
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)));
	} else if (y4 <= 6.6e+56) {
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * t_2)));
	} 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) :: t_2
    real(8) :: tmp
    t_1 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
    t_2 = (a * b) - (c * i)
    if (y4 <= (-7.5d+26)) then
        tmp = t_1
    else if (y4 <= (-4.5d-72)) then
        tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_2)) + (y3 * ((c * y4) - (a * y5))))
    else if (y4 <= (-3.4d-209)) then
        tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))))
    else if (y4 <= 2.5d-280) then
        tmp = a * (t * (b * ((y2 * (y5 / b)) - z)))
    else if (y4 <= 6.6d+56) then
        tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * t_2)))
    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 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	double t_2 = (a * b) - (c * i);
	double tmp;
	if (y4 <= -7.5e+26) {
		tmp = t_1;
	} else if (y4 <= -4.5e-72) {
		tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_2)) + (y3 * ((c * y4) - (a * y5))));
	} else if (y4 <= -3.4e-209) {
		tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
	} else if (y4 <= 2.5e-280) {
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)));
	} else if (y4 <= 6.6e+56) {
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * t_2)));
	} 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 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
	t_2 = (a * b) - (c * i)
	tmp = 0
	if y4 <= -7.5e+26:
		tmp = t_1
	elif y4 <= -4.5e-72:
		tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_2)) + (y3 * ((c * y4) - (a * y5))))
	elif y4 <= -3.4e-209:
		tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))))
	elif y4 <= 2.5e-280:
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)))
	elif y4 <= 6.6e+56:
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * t_2)))
	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(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2)))))
	t_2 = Float64(Float64(a * b) - Float64(c * i))
	tmp = 0.0
	if (y4 <= -7.5e+26)
		tmp = t_1;
	elseif (y4 <= -4.5e-72)
		tmp = Float64(y * Float64(Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(x * t_2)) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))));
	elseif (y4 <= -3.4e-209)
		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)))));
	elseif (y4 <= 2.5e-280)
		tmp = Float64(a * Float64(t * Float64(b * Float64(Float64(y2 * Float64(y5 / b)) - z))));
	elseif (y4 <= 6.6e+56)
		tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))) - Float64(t * t_2))));
	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 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	t_2 = (a * b) - (c * i);
	tmp = 0.0;
	if (y4 <= -7.5e+26)
		tmp = t_1;
	elseif (y4 <= -4.5e-72)
		tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_2)) + (y3 * ((c * y4) - (a * y5))));
	elseif (y4 <= -3.4e-209)
		tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
	elseif (y4 <= 2.5e-280)
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)));
	elseif (y4 <= 6.6e+56)
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * t_2)));
	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[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -7.5e+26], t$95$1, If[LessEqual[y4, -4.5e-72], N[(y * N[(N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.4e-209], 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], If[LessEqual[y4, 2.5e-280], N[(a * N[(t * N[(b * N[(N[(y2 * N[(y5 / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 6.6e+56], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_2 := a \cdot b - c \cdot i\\
\mathbf{if}\;y4 \leq -7.5 \cdot 10^{+26}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y4 \leq -4.5 \cdot 10^{-72}:\\
\;\;\;\;y \cdot \left(\left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + x \cdot t\_2\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\

\mathbf{elif}\;y4 \leq -3.4 \cdot 10^{-209}:\\
\;\;\;\;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{elif}\;y4 \leq 2.5 \cdot 10^{-280}:\\
\;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\

\mathbf{elif}\;y4 \leq 6.6 \cdot 10^{+56}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot t\_2\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y4 < -7.49999999999999941e26 or 6.60000000000000004e56 < y4

    1. Initial program 28.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 y4 around inf 59.1%

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

    if -7.49999999999999941e26 < y4 < -4.5e-72

    1. Initial program 36.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 y around inf 71.7%

      \[\leadsto \color{blue}{y \cdot \left(\left(-1 \cdot \left(k \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(a \cdot b - c \cdot i\right)\right) - -1 \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]

    if -4.5e-72 < y4 < -3.39999999999999988e-209

    1. Initial program 45.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 y0 around inf 56.0%

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

    if -3.39999999999999988e-209 < y4 < 2.50000000000000014e-280

    1. Initial program 37.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 t around inf 41.3%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in a around -inf 56.3%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*56.3%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
      2. mul-1-neg56.3%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right) \]
    6. Simplified56.3%

      \[\leadsto \color{blue}{\left(-a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
    7. Taylor expanded in b around inf 56.4%

      \[\leadsto \left(-a\right) \cdot \left(t \cdot \color{blue}{\left(b \cdot \left(z + -1 \cdot \frac{y2 \cdot y5}{b}\right)\right)}\right) \]
    8. Step-by-step derivation
      1. mul-1-neg56.4%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \left(z + \color{blue}{\left(-\frac{y2 \cdot y5}{b}\right)}\right)\right)\right) \]
      2. unsub-neg56.4%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \color{blue}{\left(z - \frac{y2 \cdot y5}{b}\right)}\right)\right) \]
      3. associate-/l*56.4%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \left(z - \color{blue}{y2 \cdot \frac{y5}{b}}\right)\right)\right) \]
    9. Simplified56.4%

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

    if 2.50000000000000014e-280 < y4 < 6.60000000000000004e56

    1. Initial program 30.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 z around -inf 54.2%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification57.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y4 \leq -7.5 \cdot 10^{+26}:\\ \;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;y4 \leq -4.5 \cdot 10^{-72}:\\ \;\;\;\;y \cdot \left(\left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + x \cdot \left(a \cdot b - c \cdot i\right)\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{elif}\;y4 \leq -3.4 \cdot 10^{-209}:\\ \;\;\;\;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{elif}\;y4 \leq 2.5 \cdot 10^{-280}:\\ \;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\ \mathbf{elif}\;y4 \leq 6.6 \cdot 10^{+56}:\\ \;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 43.2% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ t_2 := j \cdot y3 - k \cdot y2\\ \mathbf{if}\;y4 \leq -5.2 \cdot 10^{+132}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y4 \leq -0.66:\\ \;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(i \cdot \left(y \cdot k - t \cdot j\right) + y0 \cdot t\_2\right)\right)\\ \mathbf{elif}\;y4 \leq -3.2 \cdot 10^{-209}:\\ \;\;\;\;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)\\ \mathbf{elif}\;y4 \leq 2.1 \cdot 10^{-280}:\\ \;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\ \mathbf{elif}\;y4 \leq 8.5 \cdot 10^{+56}:\\ \;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot \left(a \cdot b - c \cdot i\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
         (*
          y4
          (+
           (+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
           (* c (- (* y y3) (* t y2))))))
        (t_2 (- (* j y3) (* k y2))))
   (if (<= y4 -5.2e+132)
     t_1
     (if (<= y4 -0.66)
       (*
        y5
        (+
         (* a (- (* t y2) (* y y3)))
         (+ (* i (- (* y k) (* t j))) (* y0 t_2))))
       (if (<= y4 -3.2e-209)
         (*
          y0
          (+
           (+ (* y5 t_2) (* c (- (* x y2) (* z y3))))
           (* b (- (* z k) (* x j)))))
         (if (<= y4 2.1e-280)
           (* a (* t (* b (- (* y2 (/ y5 b)) z))))
           (if (<= y4 8.5e+56)
             (*
              z
              (+
               (* k (- (* b y0) (* i y1)))
               (- (* y3 (- (* a y1) (* c y0))) (* t (- (* a b) (* c i))))))
             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 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	double t_2 = (j * y3) - (k * y2);
	double tmp;
	if (y4 <= -5.2e+132) {
		tmp = t_1;
	} else if (y4 <= -0.66) {
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * t_2)));
	} else if (y4 <= -3.2e-209) {
		tmp = y0 * (((y5 * t_2) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
	} else if (y4 <= 2.1e-280) {
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)));
	} else if (y4 <= 8.5e+56) {
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))));
	} 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) :: t_2
    real(8) :: tmp
    t_1 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
    t_2 = (j * y3) - (k * y2)
    if (y4 <= (-5.2d+132)) then
        tmp = t_1
    else if (y4 <= (-0.66d0)) then
        tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * t_2)))
    else if (y4 <= (-3.2d-209)) then
        tmp = y0 * (((y5 * t_2) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))))
    else if (y4 <= 2.1d-280) then
        tmp = a * (t * (b * ((y2 * (y5 / b)) - z)))
    else if (y4 <= 8.5d+56) then
        tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))))
    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 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	double t_2 = (j * y3) - (k * y2);
	double tmp;
	if (y4 <= -5.2e+132) {
		tmp = t_1;
	} else if (y4 <= -0.66) {
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * t_2)));
	} else if (y4 <= -3.2e-209) {
		tmp = y0 * (((y5 * t_2) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
	} else if (y4 <= 2.1e-280) {
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)));
	} else if (y4 <= 8.5e+56) {
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))));
	} 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 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
	t_2 = (j * y3) - (k * y2)
	tmp = 0
	if y4 <= -5.2e+132:
		tmp = t_1
	elif y4 <= -0.66:
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * t_2)))
	elif y4 <= -3.2e-209:
		tmp = y0 * (((y5 * t_2) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))))
	elif y4 <= 2.1e-280:
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)))
	elif y4 <= 8.5e+56:
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))))
	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(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2)))))
	t_2 = Float64(Float64(j * y3) - Float64(k * y2))
	tmp = 0.0
	if (y4 <= -5.2e+132)
		tmp = t_1;
	elseif (y4 <= -0.66)
		tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(i * Float64(Float64(y * k) - Float64(t * j))) + Float64(y0 * t_2))));
	elseif (y4 <= -3.2e-209)
		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)))));
	elseif (y4 <= 2.1e-280)
		tmp = Float64(a * Float64(t * Float64(b * Float64(Float64(y2 * Float64(y5 / b)) - z))));
	elseif (y4 <= 8.5e+56)
		tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))) - Float64(t * Float64(Float64(a * b) - Float64(c * i))))));
	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 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	t_2 = (j * y3) - (k * y2);
	tmp = 0.0;
	if (y4 <= -5.2e+132)
		tmp = t_1;
	elseif (y4 <= -0.66)
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * t_2)));
	elseif (y4 <= -3.2e-209)
		tmp = y0 * (((y5 * t_2) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
	elseif (y4 <= 2.1e-280)
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)));
	elseif (y4 <= 8.5e+56)
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))));
	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[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -5.2e+132], t$95$1, If[LessEqual[y4, -0.66], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.2e-209], 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], If[LessEqual[y4, 2.1e-280], N[(a * N[(t * N[(b * N[(N[(y2 * N[(y5 / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 8.5e+56], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_2 := j \cdot y3 - k \cdot y2\\
\mathbf{if}\;y4 \leq -5.2 \cdot 10^{+132}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;y4 \leq -3.2 \cdot 10^{-209}:\\
\;\;\;\;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)\\

\mathbf{elif}\;y4 \leq 2.1 \cdot 10^{-280}:\\
\;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\

\mathbf{elif}\;y4 \leq 8.5 \cdot 10^{+56}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y4 < -5.2e132 or 8.4999999999999998e56 < y4

    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 y4 around inf 61.0%

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

    if -5.2e132 < y4 < -0.660000000000000031

    1. Initial program 48.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 66.9%

      \[\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 -0.660000000000000031 < y4 < -3.2000000000000001e-209

    1. Initial program 44.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 50.8%

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

    if -3.2000000000000001e-209 < y4 < 2.10000000000000001e-280

    1. Initial program 37.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 t around inf 41.3%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in a around -inf 56.3%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*56.3%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
      2. mul-1-neg56.3%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right) \]
    6. Simplified56.3%

      \[\leadsto \color{blue}{\left(-a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
    7. Taylor expanded in b around inf 56.4%

      \[\leadsto \left(-a\right) \cdot \left(t \cdot \color{blue}{\left(b \cdot \left(z + -1 \cdot \frac{y2 \cdot y5}{b}\right)\right)}\right) \]
    8. Step-by-step derivation
      1. mul-1-neg56.4%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \left(z + \color{blue}{\left(-\frac{y2 \cdot y5}{b}\right)}\right)\right)\right) \]
      2. unsub-neg56.4%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \color{blue}{\left(z - \frac{y2 \cdot y5}{b}\right)}\right)\right) \]
      3. associate-/l*56.4%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \left(z - \color{blue}{y2 \cdot \frac{y5}{b}}\right)\right)\right) \]
    9. Simplified56.4%

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

    if 2.10000000000000001e-280 < y4 < 8.4999999999999998e56

    1. Initial program 30.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 z around -inf 54.2%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification57.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y4 \leq -5.2 \cdot 10^{+132}:\\ \;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;y4 \leq -0.66:\\ \;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(i \cdot \left(y \cdot k - t \cdot j\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\right)\\ \mathbf{elif}\;y4 \leq -3.2 \cdot 10^{-209}:\\ \;\;\;\;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{elif}\;y4 \leq 2.1 \cdot 10^{-280}:\\ \;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\ \mathbf{elif}\;y4 \leq 8.5 \cdot 10^{+56}:\\ \;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 38.9% accurate, 1.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -2.25 \cdot 10^{+88}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

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

\mathbf{elif}\;y2 \leq 1.5 \cdot 10^{-266}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\

\mathbf{elif}\;y2 \leq 1.16 \cdot 10^{+112}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y2 < -2.25e88

    1. Initial program 19.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 t around inf 47.7%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y2 around inf 55.5%

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

    if -2.25e88 < y2 < -2.3499999999999999e-48

    1. Initial program 41.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 i around -inf 65.9%

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

    if -2.3499999999999999e-48 < y2 < 1.5e-266

    1. Initial program 38.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 z around -inf 53.5%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]

    if 1.5e-266 < y2 < 1.16e112

    1. Initial program 33.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 c around inf 54.6%

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

    if 1.16e112 < y2

    1. Initial program 31.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 t around inf 38.5%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in a around -inf 51.6%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*51.6%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
      2. mul-1-neg51.6%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right) \]
    6. Simplified51.6%

      \[\leadsto \color{blue}{\left(-a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
    7. Taylor expanded in b around inf 53.8%

      \[\leadsto \left(-a\right) \cdot \left(t \cdot \color{blue}{\left(b \cdot \left(z + -1 \cdot \frac{y2 \cdot y5}{b}\right)\right)}\right) \]
    8. Step-by-step derivation
      1. mul-1-neg53.8%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \left(z + \color{blue}{\left(-\frac{y2 \cdot y5}{b}\right)}\right)\right)\right) \]
      2. unsub-neg53.8%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \color{blue}{\left(z - \frac{y2 \cdot y5}{b}\right)}\right)\right) \]
      3. associate-/l*53.8%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \left(z - \color{blue}{y2 \cdot \frac{y5}{b}}\right)\right)\right) \]
    9. Simplified53.8%

      \[\leadsto \left(-a\right) \cdot \left(t \cdot \color{blue}{\left(b \cdot \left(z - y2 \cdot \frac{y5}{b}\right)\right)}\right) \]
  3. Recombined 5 regimes into one program.
  4. Final simplification55.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -2.25 \cdot 10^{+88}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -2.35 \cdot 10^{-48}:\\ \;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) - c \cdot \left(x \cdot y - z \cdot t\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 1.5 \cdot 10^{-266}:\\ \;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 1.16 \cdot 10^{+112}:\\ \;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 36.6% accurate, 2.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ t_2 := t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{if}\;k \leq -1.7 \cdot 10^{+118}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;k \leq -150000:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;k \leq 5.4 \cdot 10^{-307}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;k \leq 1.2 \cdot 10^{-184}:\\ \;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\ \mathbf{elif}\;k \leq 8.5 \cdot 10^{+78}:\\ \;\;\;\;t\_2\\ \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 (* i (* k (- (* y y5) (* z y1)))))
        (t_2
         (* t (- (* i (- (* z c) (* j y5))) (* y2 (- (* c y4) (* a y5)))))))
   (if (<= k -1.7e+118)
     t_1
     (if (<= k -150000.0)
       (* j (* y0 (- (* y3 y5) (* x b))))
       (if (<= k 5.4e-307)
         t_2
         (if (<= k 1.2e-184)
           (* a (* t (* b (- (* y2 (/ y5 b)) z))))
           (if (<= k 8.5e+78) t_2 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 = i * (k * ((y * y5) - (z * y1)));
	double t_2 = t * ((i * ((z * c) - (j * y5))) - (y2 * ((c * y4) - (a * y5))));
	double tmp;
	if (k <= -1.7e+118) {
		tmp = t_1;
	} else if (k <= -150000.0) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (k <= 5.4e-307) {
		tmp = t_2;
	} else if (k <= 1.2e-184) {
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)));
	} else if (k <= 8.5e+78) {
		tmp = t_2;
	} 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) :: t_2
    real(8) :: tmp
    t_1 = i * (k * ((y * y5) - (z * y1)))
    t_2 = t * ((i * ((z * c) - (j * y5))) - (y2 * ((c * y4) - (a * y5))))
    if (k <= (-1.7d+118)) then
        tmp = t_1
    else if (k <= (-150000.0d0)) then
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    else if (k <= 5.4d-307) then
        tmp = t_2
    else if (k <= 1.2d-184) then
        tmp = a * (t * (b * ((y2 * (y5 / b)) - z)))
    else if (k <= 8.5d+78) then
        tmp = t_2
    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 = i * (k * ((y * y5) - (z * y1)));
	double t_2 = t * ((i * ((z * c) - (j * y5))) - (y2 * ((c * y4) - (a * y5))));
	double tmp;
	if (k <= -1.7e+118) {
		tmp = t_1;
	} else if (k <= -150000.0) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (k <= 5.4e-307) {
		tmp = t_2;
	} else if (k <= 1.2e-184) {
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)));
	} else if (k <= 8.5e+78) {
		tmp = t_2;
	} 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 = i * (k * ((y * y5) - (z * y1)))
	t_2 = t * ((i * ((z * c) - (j * y5))) - (y2 * ((c * y4) - (a * y5))))
	tmp = 0
	if k <= -1.7e+118:
		tmp = t_1
	elif k <= -150000.0:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	elif k <= 5.4e-307:
		tmp = t_2
	elif k <= 1.2e-184:
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)))
	elif k <= 8.5e+78:
		tmp = t_2
	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(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1))))
	t_2 = Float64(t * Float64(Float64(i * Float64(Float64(z * c) - Float64(j * y5))) - Float64(y2 * Float64(Float64(c * y4) - Float64(a * y5)))))
	tmp = 0.0
	if (k <= -1.7e+118)
		tmp = t_1;
	elseif (k <= -150000.0)
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	elseif (k <= 5.4e-307)
		tmp = t_2;
	elseif (k <= 1.2e-184)
		tmp = Float64(a * Float64(t * Float64(b * Float64(Float64(y2 * Float64(y5 / b)) - z))));
	elseif (k <= 8.5e+78)
		tmp = t_2;
	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 = i * (k * ((y * y5) - (z * y1)));
	t_2 = t * ((i * ((z * c) - (j * y5))) - (y2 * ((c * y4) - (a * y5))));
	tmp = 0.0;
	if (k <= -1.7e+118)
		tmp = t_1;
	elseif (k <= -150000.0)
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	elseif (k <= 5.4e-307)
		tmp = t_2;
	elseif (k <= 1.2e-184)
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)));
	elseif (k <= 8.5e+78)
		tmp = t_2;
	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[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(i * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y2 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.7e+118], t$95$1, If[LessEqual[k, -150000.0], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 5.4e-307], t$95$2, If[LessEqual[k, 1.2e-184], N[(a * N[(t * N[(b * N[(N[(y2 * N[(y5 / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 8.5e+78], t$95$2, t$95$1]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
t_2 := t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{if}\;k \leq -1.7 \cdot 10^{+118}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;k \leq -150000:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\

\mathbf{elif}\;k \leq 5.4 \cdot 10^{-307}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;k \leq 1.2 \cdot 10^{-184}:\\
\;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\

\mathbf{elif}\;k \leq 8.5 \cdot 10^{+78}:\\
\;\;\;\;t\_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if k < -1.69999999999999993e118 or 8.50000000000000079e78 < k

    1. Initial program 31.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 i around -inf 47.2%

      \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\left(c \cdot \left(x \cdot y - t \cdot z\right) + y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in k around -inf 52.5%

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

        \[\leadsto -1 \cdot \color{blue}{\left(\left(-1 \cdot i\right) \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\right)} \]
      2. mul-1-neg52.5%

        \[\leadsto -1 \cdot \left(\color{blue}{\left(-i\right)} \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\right) \]
    6. Simplified52.5%

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

    if -1.69999999999999993e118 < k < -1.5e5

    1. Initial program 26.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 48.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 61.4%

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

    if -1.5e5 < k < 5.39999999999999971e-307 or 1.20000000000000012e-184 < k < 8.50000000000000079e78

    1. Initial program 35.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 t around inf 46.9%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in i around 0 48.5%

      \[\leadsto t \cdot \color{blue}{\left(\left(-1 \cdot \left(a \cdot \left(b \cdot z\right)\right) + \left(b \cdot \left(j \cdot y4\right) + i \cdot \left(-1 \cdot \left(j \cdot y5\right) + c \cdot z\right)\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in b around 0 43.9%

      \[\leadsto \color{blue}{t \cdot \left(i \cdot \left(-1 \cdot \left(j \cdot y5\right) + c \cdot z\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]

    if 5.39999999999999971e-307 < k < 1.20000000000000012e-184

    1. Initial program 31.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 t around inf 55.7%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in a around -inf 62.6%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*62.6%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
      2. mul-1-neg62.6%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right) \]
    6. Simplified62.6%

      \[\leadsto \color{blue}{\left(-a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
    7. Taylor expanded in b around inf 62.6%

      \[\leadsto \left(-a\right) \cdot \left(t \cdot \color{blue}{\left(b \cdot \left(z + -1 \cdot \frac{y2 \cdot y5}{b}\right)\right)}\right) \]
    8. Step-by-step derivation
      1. mul-1-neg62.6%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \left(z + \color{blue}{\left(-\frac{y2 \cdot y5}{b}\right)}\right)\right)\right) \]
      2. unsub-neg62.6%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \color{blue}{\left(z - \frac{y2 \cdot y5}{b}\right)}\right)\right) \]
      3. associate-/l*69.4%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \left(z - \color{blue}{y2 \cdot \frac{y5}{b}}\right)\right)\right) \]
    9. Simplified69.4%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq -1.7 \cdot 10^{+118}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{elif}\;k \leq -150000:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;k \leq 5.4 \cdot 10^{-307}:\\ \;\;\;\;t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{elif}\;k \leq 1.2 \cdot 10^{-184}:\\ \;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\ \mathbf{elif}\;k \leq 8.5 \cdot 10^{+78}:\\ \;\;\;\;t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 44.0% accurate, 2.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{if}\;y4 \leq -5.2 \cdot 10^{+131}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y4 \leq -4.8 \cdot 10^{-128}:\\ \;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(i \cdot \left(y \cdot k - t \cdot j\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\right)\\ \mathbf{elif}\;y4 \leq 8 \cdot 10^{+56}:\\ \;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot \left(a \cdot b - c \cdot i\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
         (*
          y4
          (+
           (+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
           (* c (- (* y y3) (* t y2)))))))
   (if (<= y4 -5.2e+131)
     t_1
     (if (<= y4 -4.8e-128)
       (*
        y5
        (+
         (* a (- (* t y2) (* y y3)))
         (+ (* i (- (* y k) (* t j))) (* y0 (- (* j y3) (* k y2))))))
       (if (<= y4 8e+56)
         (*
          z
          (+
           (* k (- (* b y0) (* i y1)))
           (- (* y3 (- (* a y1) (* c y0))) (* t (- (* a b) (* c i))))))
         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 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	double tmp;
	if (y4 <= -5.2e+131) {
		tmp = t_1;
	} else if (y4 <= -4.8e-128) {
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * ((j * y3) - (k * y2)))));
	} else if (y4 <= 8e+56) {
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))));
	} 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 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
    if (y4 <= (-5.2d+131)) then
        tmp = t_1
    else if (y4 <= (-4.8d-128)) then
        tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * ((j * y3) - (k * y2)))))
    else if (y4 <= 8d+56) then
        tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))))
    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 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	double tmp;
	if (y4 <= -5.2e+131) {
		tmp = t_1;
	} else if (y4 <= -4.8e-128) {
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * ((j * y3) - (k * y2)))));
	} else if (y4 <= 8e+56) {
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))));
	} 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 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
	tmp = 0
	if y4 <= -5.2e+131:
		tmp = t_1
	elif y4 <= -4.8e-128:
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * ((j * y3) - (k * y2)))))
	elif y4 <= 8e+56:
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))))
	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(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2)))))
	tmp = 0.0
	if (y4 <= -5.2e+131)
		tmp = t_1;
	elseif (y4 <= -4.8e-128)
		tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(i * Float64(Float64(y * k) - Float64(t * j))) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))));
	elseif (y4 <= 8e+56)
		tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))) - Float64(t * Float64(Float64(a * b) - Float64(c * i))))));
	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 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	tmp = 0.0;
	if (y4 <= -5.2e+131)
		tmp = t_1;
	elseif (y4 <= -4.8e-128)
		tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * ((j * y3) - (k * y2)))));
	elseif (y4 <= 8e+56)
		tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) - (t * ((a * b) - (c * i)))));
	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[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -5.2e+131], t$95$1, If[LessEqual[y4, -4.8e-128], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 8e+56], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;y4 \leq -5.2 \cdot 10^{+131}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;y4 \leq 8 \cdot 10^{+56}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y4 < -5.2e131 or 8.00000000000000074e56 < y4

    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 y4 around inf 61.0%

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

    if -5.2e131 < y4 < -4.7999999999999996e-128

    1. Initial program 49.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 52.3%

      \[\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.7999999999999996e-128 < y4 < 8.00000000000000074e56

    1. Initial program 32.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 z around -inf 49.0%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification53.9%

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

Alternative 11: 40.4% accurate, 2.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ t_2 := a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\ \mathbf{if}\;y5 \leq -1.02 \cdot 10^{+74}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y5 \leq -6 \cdot 10^{+25}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y5 \leq 2.4 \cdot 10^{+45}:\\ \;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y5 \leq 5.6 \cdot 10^{+211}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \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 (* t (- (* i (- (* z c) (* j y5))) (* y2 (- (* c y4) (* a y5))))))
        (t_2 (* a (* t (* b (- (* y2 (/ y5 b)) z))))))
   (if (<= y5 -1.02e+74)
     t_2
     (if (<= y5 -6e+25)
       t_1
       (if (<= y5 2.4e+45)
         (*
          b
          (+
           (+ (* a (- (* x y) (* z t))) (* y4 (- (* t j) (* y k))))
           (* y0 (- (* z k) (* x j)))))
         (if (<= y5 5.6e+211) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = t * ((i * ((z * c) - (j * y5))) - (y2 * ((c * y4) - (a * y5))));
	double t_2 = a * (t * (b * ((y2 * (y5 / b)) - z)));
	double tmp;
	if (y5 <= -1.02e+74) {
		tmp = t_2;
	} else if (y5 <= -6e+25) {
		tmp = t_1;
	} else if (y5 <= 2.4e+45) {
		tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
	} else if (y5 <= 5.6e+211) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	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 = t * ((i * ((z * c) - (j * y5))) - (y2 * ((c * y4) - (a * y5))))
    t_2 = a * (t * (b * ((y2 * (y5 / b)) - z)))
    if (y5 <= (-1.02d+74)) then
        tmp = t_2
    else if (y5 <= (-6d+25)) then
        tmp = t_1
    else if (y5 <= 2.4d+45) then
        tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
    else if (y5 <= 5.6d+211) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = t * ((i * ((z * c) - (j * y5))) - (y2 * ((c * y4) - (a * y5))));
	double t_2 = a * (t * (b * ((y2 * (y5 / b)) - z)));
	double tmp;
	if (y5 <= -1.02e+74) {
		tmp = t_2;
	} else if (y5 <= -6e+25) {
		tmp = t_1;
	} else if (y5 <= 2.4e+45) {
		tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
	} else if (y5 <= 5.6e+211) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = t * ((i * ((z * c) - (j * y5))) - (y2 * ((c * y4) - (a * y5))))
	t_2 = a * (t * (b * ((y2 * (y5 / b)) - z)))
	tmp = 0
	if y5 <= -1.02e+74:
		tmp = t_2
	elif y5 <= -6e+25:
		tmp = t_1
	elif y5 <= 2.4e+45:
		tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
	elif y5 <= 5.6e+211:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(t * Float64(Float64(i * Float64(Float64(z * c) - Float64(j * y5))) - Float64(y2 * Float64(Float64(c * y4) - Float64(a * y5)))))
	t_2 = Float64(a * Float64(t * Float64(b * Float64(Float64(y2 * Float64(y5 / b)) - z))))
	tmp = 0.0
	if (y5 <= -1.02e+74)
		tmp = t_2;
	elseif (y5 <= -6e+25)
		tmp = t_1;
	elseif (y5 <= 2.4e+45)
		tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))));
	elseif (y5 <= 5.6e+211)
		tmp = t_1;
	else
		tmp = t_2;
	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 = t * ((i * ((z * c) - (j * y5))) - (y2 * ((c * y4) - (a * y5))));
	t_2 = a * (t * (b * ((y2 * (y5 / b)) - z)));
	tmp = 0.0;
	if (y5 <= -1.02e+74)
		tmp = t_2;
	elseif (y5 <= -6e+25)
		tmp = t_1;
	elseif (y5 <= 2.4e+45)
		tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
	elseif (y5 <= 5.6e+211)
		tmp = t_1;
	else
		tmp = t_2;
	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[(t * N[(N[(i * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y2 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(t * N[(b * N[(N[(y2 * N[(y5 / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.02e+74], t$95$2, If[LessEqual[y5, -6e+25], t$95$1, If[LessEqual[y5, 2.4e+45], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 5.6e+211], t$95$1, t$95$2]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
t_2 := a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\
\mathbf{if}\;y5 \leq -1.02 \cdot 10^{+74}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;y5 \leq -6 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y5 \leq 2.4 \cdot 10^{+45}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\

\mathbf{elif}\;y5 \leq 5.6 \cdot 10^{+211}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y5 < -1.02000000000000005e74 or 5.5999999999999999e211 < y5

    1. Initial program 25.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 t around inf 40.6%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in a around -inf 47.0%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*47.0%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
      2. mul-1-neg47.0%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right) \]
    6. Simplified47.0%

      \[\leadsto \color{blue}{\left(-a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
    7. Taylor expanded in b around inf 48.4%

      \[\leadsto \left(-a\right) \cdot \left(t \cdot \color{blue}{\left(b \cdot \left(z + -1 \cdot \frac{y2 \cdot y5}{b}\right)\right)}\right) \]
    8. Step-by-step derivation
      1. mul-1-neg48.4%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \left(z + \color{blue}{\left(-\frac{y2 \cdot y5}{b}\right)}\right)\right)\right) \]
      2. unsub-neg48.4%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \color{blue}{\left(z - \frac{y2 \cdot y5}{b}\right)}\right)\right) \]
      3. associate-/l*54.1%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \left(z - \color{blue}{y2 \cdot \frac{y5}{b}}\right)\right)\right) \]
    9. Simplified54.1%

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

    if -1.02000000000000005e74 < y5 < -6.00000000000000011e25 or 2.39999999999999989e45 < y5 < 5.5999999999999999e211

    1. Initial program 30.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 t around inf 43.8%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in i around 0 52.1%

      \[\leadsto t \cdot \color{blue}{\left(\left(-1 \cdot \left(a \cdot \left(b \cdot z\right)\right) + \left(b \cdot \left(j \cdot y4\right) + i \cdot \left(-1 \cdot \left(j \cdot y5\right) + c \cdot z\right)\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in b around 0 55.4%

      \[\leadsto \color{blue}{t \cdot \left(i \cdot \left(-1 \cdot \left(j \cdot y5\right) + c \cdot z\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]

    if -6.00000000000000011e25 < y5 < 2.39999999999999989e45

    1. Initial program 38.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 b around inf 50.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)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification52.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -1.02 \cdot 10^{+74}:\\ \;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\ \mathbf{elif}\;y5 \leq -6 \cdot 10^{+25}:\\ \;\;\;\;t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq 2.4 \cdot 10^{+45}:\\ \;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y5 \leq 5.6 \cdot 10^{+211}:\\ \;\;\;\;t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 32.9% accurate, 2.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\ \mathbf{if}\;y3 \leq -2 \cdot 10^{+16}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y3 \leq -4.4 \cdot 10^{-97}:\\ \;\;\;\;t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right)\right)\\ \mathbf{elif}\;y3 \leq -7.5 \cdot 10^{-296}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 1.3 \cdot 10^{-150}:\\ \;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;y3 \leq 5.4 \cdot 10^{-18}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5 - z \cdot b\right)\right)\\ \mathbf{elif}\;y3 \leq 4.8 \cdot 10^{+118}:\\ \;\;\;\;i \cdot \left(x \cdot \left(j \cdot y1 - y \cdot c\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 (* z (* y3 (- (* a y1) (* c y0))))))
   (if (<= y3 -2e+16)
     t_1
     (if (<= y3 -4.4e-97)
       (* t (* i (- (* z c) (* j y5))))
       (if (<= y3 -7.5e-296)
         (* t (* y2 (- (* a y5) (* c y4))))
         (if (<= y3 1.3e-150)
           (* t (* j (- (* b y4) (* i y5))))
           (if (<= y3 5.4e-18)
             (* a (* t (- (* y2 y5) (* z b))))
             (if (<= y3 4.8e+118) (* i (* x (- (* j y1) (* y c)))) 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 = z * (y3 * ((a * y1) - (c * y0)));
	double tmp;
	if (y3 <= -2e+16) {
		tmp = t_1;
	} else if (y3 <= -4.4e-97) {
		tmp = t * (i * ((z * c) - (j * y5)));
	} else if (y3 <= -7.5e-296) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else if (y3 <= 1.3e-150) {
		tmp = t * (j * ((b * y4) - (i * y5)));
	} else if (y3 <= 5.4e-18) {
		tmp = a * (t * ((y2 * y5) - (z * b)));
	} else if (y3 <= 4.8e+118) {
		tmp = i * (x * ((j * y1) - (y * c)));
	} 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 = z * (y3 * ((a * y1) - (c * y0)))
    if (y3 <= (-2d+16)) then
        tmp = t_1
    else if (y3 <= (-4.4d-97)) then
        tmp = t * (i * ((z * c) - (j * y5)))
    else if (y3 <= (-7.5d-296)) then
        tmp = t * (y2 * ((a * y5) - (c * y4)))
    else if (y3 <= 1.3d-150) then
        tmp = t * (j * ((b * y4) - (i * y5)))
    else if (y3 <= 5.4d-18) then
        tmp = a * (t * ((y2 * y5) - (z * b)))
    else if (y3 <= 4.8d+118) then
        tmp = i * (x * ((j * y1) - (y * c)))
    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 = z * (y3 * ((a * y1) - (c * y0)));
	double tmp;
	if (y3 <= -2e+16) {
		tmp = t_1;
	} else if (y3 <= -4.4e-97) {
		tmp = t * (i * ((z * c) - (j * y5)));
	} else if (y3 <= -7.5e-296) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else if (y3 <= 1.3e-150) {
		tmp = t * (j * ((b * y4) - (i * y5)));
	} else if (y3 <= 5.4e-18) {
		tmp = a * (t * ((y2 * y5) - (z * b)));
	} else if (y3 <= 4.8e+118) {
		tmp = i * (x * ((j * y1) - (y * c)));
	} 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 = z * (y3 * ((a * y1) - (c * y0)))
	tmp = 0
	if y3 <= -2e+16:
		tmp = t_1
	elif y3 <= -4.4e-97:
		tmp = t * (i * ((z * c) - (j * y5)))
	elif y3 <= -7.5e-296:
		tmp = t * (y2 * ((a * y5) - (c * y4)))
	elif y3 <= 1.3e-150:
		tmp = t * (j * ((b * y4) - (i * y5)))
	elif y3 <= 5.4e-18:
		tmp = a * (t * ((y2 * y5) - (z * b)))
	elif y3 <= 4.8e+118:
		tmp = i * (x * ((j * y1) - (y * c)))
	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(z * Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))))
	tmp = 0.0
	if (y3 <= -2e+16)
		tmp = t_1;
	elseif (y3 <= -4.4e-97)
		tmp = Float64(t * Float64(i * Float64(Float64(z * c) - Float64(j * y5))));
	elseif (y3 <= -7.5e-296)
		tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))));
	elseif (y3 <= 1.3e-150)
		tmp = Float64(t * Float64(j * Float64(Float64(b * y4) - Float64(i * y5))));
	elseif (y3 <= 5.4e-18)
		tmp = Float64(a * Float64(t * Float64(Float64(y2 * y5) - Float64(z * b))));
	elseif (y3 <= 4.8e+118)
		tmp = Float64(i * Float64(x * Float64(Float64(j * y1) - Float64(y * c))));
	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 = z * (y3 * ((a * y1) - (c * y0)));
	tmp = 0.0;
	if (y3 <= -2e+16)
		tmp = t_1;
	elseif (y3 <= -4.4e-97)
		tmp = t * (i * ((z * c) - (j * y5)));
	elseif (y3 <= -7.5e-296)
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	elseif (y3 <= 1.3e-150)
		tmp = t * (j * ((b * y4) - (i * y5)));
	elseif (y3 <= 5.4e-18)
		tmp = a * (t * ((y2 * y5) - (z * b)));
	elseif (y3 <= 4.8e+118)
		tmp = i * (x * ((j * y1) - (y * c)));
	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[(z * N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -2e+16], t$95$1, If[LessEqual[y3, -4.4e-97], N[(t * N[(i * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -7.5e-296], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.3e-150], N[(t * N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 5.4e-18], N[(a * N[(t * N[(N[(y2 * y5), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.8e+118], N[(i * N[(x * N[(N[(j * y1), $MachinePrecision] - N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{if}\;y3 \leq -2 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y3 \leq -4.4 \cdot 10^{-97}:\\
\;\;\;\;t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right)\right)\\

\mathbf{elif}\;y3 \leq -7.5 \cdot 10^{-296}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

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

\mathbf{elif}\;y3 \leq 5.4 \cdot 10^{-18}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5 - z \cdot b\right)\right)\\

\mathbf{elif}\;y3 \leq 4.8 \cdot 10^{+118}:\\
\;\;\;\;i \cdot \left(x \cdot \left(j \cdot y1 - y \cdot c\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y3 < -2e16 or 4.8e118 < y3

    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 z around -inf 45.6%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in y3 around inf 49.3%

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

    if -2e16 < y3 < -4.3999999999999998e-97

    1. Initial program 47.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 t around inf 53.3%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in b around 0 53.8%

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

      \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(i \cdot \left(j \cdot y5\right)\right) + c \cdot \left(i \cdot z\right)\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg48.6%

        \[\leadsto t \cdot \left(\color{blue}{\left(-i \cdot \left(j \cdot y5\right)\right)} + c \cdot \left(i \cdot z\right)\right) \]
      2. distribute-rgt-neg-out48.6%

        \[\leadsto t \cdot \left(\color{blue}{i \cdot \left(-j \cdot y5\right)} + c \cdot \left(i \cdot z\right)\right) \]
      3. *-commutative48.6%

        \[\leadsto t \cdot \left(\color{blue}{\left(-j \cdot y5\right) \cdot i} + c \cdot \left(i \cdot z\right)\right) \]
      4. *-commutative48.6%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + c \cdot \color{blue}{\left(z \cdot i\right)}\right) \]
      5. *-commutative48.6%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + \color{blue}{\left(z \cdot i\right) \cdot c}\right) \]
      6. associate-*l*42.7%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + \color{blue}{z \cdot \left(i \cdot c\right)}\right) \]
      7. *-commutative42.7%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + z \cdot \color{blue}{\left(c \cdot i\right)}\right) \]
      8. associate-*l*59.8%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + \color{blue}{\left(z \cdot c\right) \cdot i}\right) \]
      9. distribute-rgt-out59.8%

        \[\leadsto t \cdot \color{blue}{\left(i \cdot \left(\left(-j \cdot y5\right) + z \cdot c\right)\right)} \]
      10. *-commutative59.8%

        \[\leadsto t \cdot \left(i \cdot \left(\left(-j \cdot y5\right) + \color{blue}{c \cdot z}\right)\right) \]
      11. +-commutative59.8%

        \[\leadsto t \cdot \left(i \cdot \color{blue}{\left(c \cdot z + \left(-j \cdot y5\right)\right)}\right) \]
      12. unsub-neg59.8%

        \[\leadsto t \cdot \left(i \cdot \color{blue}{\left(c \cdot z - j \cdot y5\right)}\right) \]
      13. *-commutative59.8%

        \[\leadsto t \cdot \left(i \cdot \left(\color{blue}{z \cdot c} - j \cdot y5\right)\right) \]
      14. *-commutative59.8%

        \[\leadsto t \cdot \left(i \cdot \left(z \cdot c - \color{blue}{y5 \cdot j}\right)\right) \]
    7. Simplified59.8%

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

    if -4.3999999999999998e-97 < y3 < -7.49999999999999991e-296

    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 t around inf 47.0%

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

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

    if -7.49999999999999991e-296 < y3 < 1.2999999999999999e-150

    1. Initial program 32.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 t around inf 51.8%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in j around inf 46.6%

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

    if 1.2999999999999999e-150 < y3 < 5.39999999999999977e-18

    1. Initial program 45.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 t around inf 54.7%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in a around -inf 51.4%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*51.4%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
      2. mul-1-neg51.4%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right) \]
    6. Simplified51.4%

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

    if 5.39999999999999977e-18 < y3 < 4.8e118

    1. Initial program 46.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 i around -inf 50.4%

      \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\left(c \cdot \left(x \cdot y - t \cdot z\right) + y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in x around inf 47.3%

      \[\leadsto -1 \cdot \color{blue}{\left(i \cdot \left(x \cdot \left(c \cdot y - j \cdot y1\right)\right)\right)} \]
  3. Recombined 6 regimes into one program.
  4. Final simplification48.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -2 \cdot 10^{+16}:\\ \;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\ \mathbf{elif}\;y3 \leq -4.4 \cdot 10^{-97}:\\ \;\;\;\;t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right)\right)\\ \mathbf{elif}\;y3 \leq -7.5 \cdot 10^{-296}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 1.3 \cdot 10^{-150}:\\ \;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;y3 \leq 5.4 \cdot 10^{-18}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5 - z \cdot b\right)\right)\\ \mathbf{elif}\;y3 \leq 4.8 \cdot 10^{+118}:\\ \;\;\;\;i \cdot \left(x \cdot \left(j \cdot y1 - y \cdot c\right)\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 32.5% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{if}\;k \leq -7 \cdot 10^{+115}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;k \leq -1.02 \cdot 10^{-102}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;k \leq -1.02 \cdot 10^{-296}:\\ \;\;\;\;t \cdot \left(c \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\ \mathbf{elif}\;k \leq 7 \cdot 10^{-61}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5 - z \cdot b\right)\right)\\ \mathbf{elif}\;k \leq 10^{+53}:\\ \;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \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 (* i (* k (- (* y y5) (* z y1))))))
   (if (<= k -7e+115)
     t_1
     (if (<= k -1.02e-102)
       (* j (* y0 (- (* y3 y5) (* x b))))
       (if (<= k -1.02e-296)
         (* t (* c (- (* z i) (* y2 y4))))
         (if (<= k 7e-61)
           (* a (* t (- (* y2 y5) (* z b))))
           (if (<= k 1e+53) (* z (* y3 (- (* a y1) (* c 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 = i * (k * ((y * y5) - (z * y1)));
	double tmp;
	if (k <= -7e+115) {
		tmp = t_1;
	} else if (k <= -1.02e-102) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (k <= -1.02e-296) {
		tmp = t * (c * ((z * i) - (y2 * y4)));
	} else if (k <= 7e-61) {
		tmp = a * (t * ((y2 * y5) - (z * b)));
	} else if (k <= 1e+53) {
		tmp = z * (y3 * ((a * y1) - (c * 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 = i * (k * ((y * y5) - (z * y1)))
    if (k <= (-7d+115)) then
        tmp = t_1
    else if (k <= (-1.02d-102)) then
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    else if (k <= (-1.02d-296)) then
        tmp = t * (c * ((z * i) - (y2 * y4)))
    else if (k <= 7d-61) then
        tmp = a * (t * ((y2 * y5) - (z * b)))
    else if (k <= 1d+53) then
        tmp = z * (y3 * ((a * y1) - (c * 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 = i * (k * ((y * y5) - (z * y1)));
	double tmp;
	if (k <= -7e+115) {
		tmp = t_1;
	} else if (k <= -1.02e-102) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (k <= -1.02e-296) {
		tmp = t * (c * ((z * i) - (y2 * y4)));
	} else if (k <= 7e-61) {
		tmp = a * (t * ((y2 * y5) - (z * b)));
	} else if (k <= 1e+53) {
		tmp = z * (y3 * ((a * y1) - (c * 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 = i * (k * ((y * y5) - (z * y1)))
	tmp = 0
	if k <= -7e+115:
		tmp = t_1
	elif k <= -1.02e-102:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	elif k <= -1.02e-296:
		tmp = t * (c * ((z * i) - (y2 * y4)))
	elif k <= 7e-61:
		tmp = a * (t * ((y2 * y5) - (z * b)))
	elif k <= 1e+53:
		tmp = z * (y3 * ((a * y1) - (c * 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(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1))))
	tmp = 0.0
	if (k <= -7e+115)
		tmp = t_1;
	elseif (k <= -1.02e-102)
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	elseif (k <= -1.02e-296)
		tmp = Float64(t * Float64(c * Float64(Float64(z * i) - Float64(y2 * y4))));
	elseif (k <= 7e-61)
		tmp = Float64(a * Float64(t * Float64(Float64(y2 * y5) - Float64(z * b))));
	elseif (k <= 1e+53)
		tmp = Float64(z * Float64(y3 * Float64(Float64(a * y1) - Float64(c * 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 = i * (k * ((y * y5) - (z * y1)));
	tmp = 0.0;
	if (k <= -7e+115)
		tmp = t_1;
	elseif (k <= -1.02e-102)
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	elseif (k <= -1.02e-296)
		tmp = t * (c * ((z * i) - (y2 * y4)));
	elseif (k <= 7e-61)
		tmp = a * (t * ((y2 * y5) - (z * b)));
	elseif (k <= 1e+53)
		tmp = z * (y3 * ((a * y1) - (c * 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[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -7e+115], t$95$1, If[LessEqual[k, -1.02e-102], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.02e-296], N[(t * N[(c * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 7e-61], N[(a * N[(t * N[(N[(y2 * y5), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1e+53], N[(z * N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{if}\;k \leq -7 \cdot 10^{+115}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;k \leq -1.02 \cdot 10^{-102}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\

\mathbf{elif}\;k \leq -1.02 \cdot 10^{-296}:\\
\;\;\;\;t \cdot \left(c \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\

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

\mathbf{elif}\;k \leq 10^{+53}:\\
\;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if k < -7.00000000000000011e115 or 9.9999999999999999e52 < k

    1. Initial program 29.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 i around -inf 46.3%

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

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

        \[\leadsto -1 \cdot \color{blue}{\left(\left(-1 \cdot i\right) \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\right)} \]
      2. mul-1-neg51.3%

        \[\leadsto -1 \cdot \left(\color{blue}{\left(-i\right)} \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\right) \]
    6. Simplified51.3%

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

    if -7.00000000000000011e115 < k < -1.01999999999999996e-102

    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 j around inf 43.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 43.6%

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

    if -1.01999999999999996e-102 < k < -1.02000000000000002e-296

    1. Initial program 28.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 t around inf 47.9%

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

      \[\leadsto t \cdot \color{blue}{\left(c \cdot \left(i \cdot z - y2 \cdot y4\right)\right)} \]

    if -1.02000000000000002e-296 < k < 7.0000000000000006e-61

    1. Initial program 39.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 t around inf 54.7%

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

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*45.2%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
      2. mul-1-neg45.2%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right) \]
    6. Simplified45.2%

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

    if 7.0000000000000006e-61 < k < 9.9999999999999999e52

    1. Initial program 36.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 z around -inf 37.5%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in y3 around inf 58.7%

      \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)}\right) \]
  3. Recombined 5 regimes into one program.
  4. Final simplification47.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq -7 \cdot 10^{+115}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{elif}\;k \leq -1.02 \cdot 10^{-102}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;k \leq -1.02 \cdot 10^{-296}:\\ \;\;\;\;t \cdot \left(c \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\ \mathbf{elif}\;k \leq 7 \cdot 10^{-61}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5 - z \cdot b\right)\right)\\ \mathbf{elif}\;k \leq 10^{+53}:\\ \;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \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 14: 29.0% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot y4 - i \cdot y5\\ \mathbf{if}\;y3 \leq -4.2 \cdot 10^{+202}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -4.5 \cdot 10^{-292}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 1.25 \cdot 10^{-12}:\\ \;\;\;\;t \cdot \left(j \cdot t\_1\right)\\ \mathbf{elif}\;y3 \leq 6 \cdot 10^{+139}:\\ \;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\ \mathbf{elif}\;y3 \leq 1.6 \cdot 10^{+228}:\\ \;\;\;\;j \cdot \left(t \cdot t\_1\right)\\ \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 (- (* b y4) (* i y5))))
   (if (<= y3 -4.2e+202)
     (* y1 (* y4 (- (* k y2) (* j y3))))
     (if (<= y3 -4.5e-292)
       (* t (* y2 (- (* a y5) (* c y4))))
       (if (<= y3 1.25e-12)
         (* t (* j t_1))
         (if (<= y3 6e+139)
           (* y1 (* z (- (* a y3) (* i k))))
           (if (<= y3 1.6e+228)
             (* j (* t 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 = (b * y4) - (i * y5);
	double tmp;
	if (y3 <= -4.2e+202) {
		tmp = y1 * (y4 * ((k * y2) - (j * y3)));
	} else if (y3 <= -4.5e-292) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else if (y3 <= 1.25e-12) {
		tmp = t * (j * t_1);
	} else if (y3 <= 6e+139) {
		tmp = y1 * (z * ((a * y3) - (i * k)));
	} else if (y3 <= 1.6e+228) {
		tmp = j * (t * 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 = (b * y4) - (i * y5)
    if (y3 <= (-4.2d+202)) then
        tmp = y1 * (y4 * ((k * y2) - (j * y3)))
    else if (y3 <= (-4.5d-292)) then
        tmp = t * (y2 * ((a * y5) - (c * y4)))
    else if (y3 <= 1.25d-12) then
        tmp = t * (j * t_1)
    else if (y3 <= 6d+139) then
        tmp = y1 * (z * ((a * y3) - (i * k)))
    else if (y3 <= 1.6d+228) then
        tmp = j * (t * 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 = (b * y4) - (i * y5);
	double tmp;
	if (y3 <= -4.2e+202) {
		tmp = y1 * (y4 * ((k * y2) - (j * y3)));
	} else if (y3 <= -4.5e-292) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else if (y3 <= 1.25e-12) {
		tmp = t * (j * t_1);
	} else if (y3 <= 6e+139) {
		tmp = y1 * (z * ((a * y3) - (i * k)));
	} else if (y3 <= 1.6e+228) {
		tmp = j * (t * 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 = (b * y4) - (i * y5)
	tmp = 0
	if y3 <= -4.2e+202:
		tmp = y1 * (y4 * ((k * y2) - (j * y3)))
	elif y3 <= -4.5e-292:
		tmp = t * (y2 * ((a * y5) - (c * y4)))
	elif y3 <= 1.25e-12:
		tmp = t * (j * t_1)
	elif y3 <= 6e+139:
		tmp = y1 * (z * ((a * y3) - (i * k)))
	elif y3 <= 1.6e+228:
		tmp = j * (t * 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(Float64(b * y4) - Float64(i * y5))
	tmp = 0.0
	if (y3 <= -4.2e+202)
		tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3))));
	elseif (y3 <= -4.5e-292)
		tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))));
	elseif (y3 <= 1.25e-12)
		tmp = Float64(t * Float64(j * t_1));
	elseif (y3 <= 6e+139)
		tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k))));
	elseif (y3 <= 1.6e+228)
		tmp = Float64(j * Float64(t * 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 = (b * y4) - (i * y5);
	tmp = 0.0;
	if (y3 <= -4.2e+202)
		tmp = y1 * (y4 * ((k * y2) - (j * y3)));
	elseif (y3 <= -4.5e-292)
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	elseif (y3 <= 1.25e-12)
		tmp = t * (j * t_1);
	elseif (y3 <= 6e+139)
		tmp = y1 * (z * ((a * y3) - (i * k)));
	elseif (y3 <= 1.6e+228)
		tmp = j * (t * 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[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -4.2e+202], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -4.5e-292], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.25e-12], N[(t * N[(j * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 6e+139], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.6e+228], N[(j * N[(t * t$95$1), $MachinePrecision]), $MachinePrecision], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot y4 - i \cdot y5\\
\mathbf{if}\;y3 \leq -4.2 \cdot 10^{+202}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\

\mathbf{elif}\;y3 \leq -4.5 \cdot 10^{-292}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

\mathbf{elif}\;y3 \leq 1.25 \cdot 10^{-12}:\\
\;\;\;\;t \cdot \left(j \cdot t\_1\right)\\

\mathbf{elif}\;y3 \leq 6 \cdot 10^{+139}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\

\mathbf{elif}\;y3 \leq 1.6 \cdot 10^{+228}:\\
\;\;\;\;j \cdot \left(t \cdot t\_1\right)\\

\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 6 regimes
  2. if y3 < -4.2e202

    1. Initial program 38.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 y1 around inf 62.0%

      \[\leadsto \color{blue}{y1 \cdot \left(\left(-1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in y4 around inf 69.6%

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

    if -4.2e202 < y3 < -4.49999999999999956e-292

    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 t around inf 41.1%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y2 around inf 37.7%

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

    if -4.49999999999999956e-292 < y3 < 1.24999999999999992e-12

    1. Initial program 36.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 t around inf 51.3%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in j around inf 40.7%

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

    if 1.24999999999999992e-12 < y3 < 5.9999999999999999e139

    1. Initial program 50.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 y1 around inf 60.9%

      \[\leadsto \color{blue}{y1 \cdot \left(\left(-1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in z around inf 54.1%

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

    if 5.9999999999999999e139 < y3 < 1.6000000000000001e228

    1. Initial program 24.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 t around inf 52.2%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in j around inf 48.5%

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

    if 1.6000000000000001e228 < y3

    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 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 y0 around inf 62.4%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -4.2 \cdot 10^{+202}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -4.5 \cdot 10^{-292}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 1.25 \cdot 10^{-12}:\\ \;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;y3 \leq 6 \cdot 10^{+139}:\\ \;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\ \mathbf{elif}\;y3 \leq 1.6 \cdot 10^{+228}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 29.4% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{if}\;y5 \leq -4.3 \cdot 10^{+70}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y5 \leq -3.1 \cdot 10^{-61}:\\ \;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\ \mathbf{elif}\;y5 \leq 6.2 \cdot 10^{-195}:\\ \;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y5 \leq 1.3 \cdot 10^{+73}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{elif}\;y5 \leq 3 \cdot 10^{+185}:\\ \;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - 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 (* t (* a (* y2 y5)))))
   (if (<= y5 -4.3e+70)
     t_1
     (if (<= y5 -3.1e-61)
       (* c (* t (- (* z i) (* y2 y4))))
       (if (<= y5 6.2e-195)
         (* b (* y0 (- (* z k) (* x j))))
         (if (<= y5 1.3e+73)
           (* b (* y4 (- (* t j) (* y k))))
           (if (<= y5 3e+185) (* j (* x (- (* i y1) (* 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 = t * (a * (y2 * y5));
	double tmp;
	if (y5 <= -4.3e+70) {
		tmp = t_1;
	} else if (y5 <= -3.1e-61) {
		tmp = c * (t * ((z * i) - (y2 * y4)));
	} else if (y5 <= 6.2e-195) {
		tmp = b * (y0 * ((z * k) - (x * j)));
	} else if (y5 <= 1.3e+73) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} else if (y5 <= 3e+185) {
		tmp = j * (x * ((i * y1) - (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 = t * (a * (y2 * y5))
    if (y5 <= (-4.3d+70)) then
        tmp = t_1
    else if (y5 <= (-3.1d-61)) then
        tmp = c * (t * ((z * i) - (y2 * y4)))
    else if (y5 <= 6.2d-195) then
        tmp = b * (y0 * ((z * k) - (x * j)))
    else if (y5 <= 1.3d+73) then
        tmp = b * (y4 * ((t * j) - (y * k)))
    else if (y5 <= 3d+185) then
        tmp = j * (x * ((i * y1) - (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 = t * (a * (y2 * y5));
	double tmp;
	if (y5 <= -4.3e+70) {
		tmp = t_1;
	} else if (y5 <= -3.1e-61) {
		tmp = c * (t * ((z * i) - (y2 * y4)));
	} else if (y5 <= 6.2e-195) {
		tmp = b * (y0 * ((z * k) - (x * j)));
	} else if (y5 <= 1.3e+73) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} else if (y5 <= 3e+185) {
		tmp = j * (x * ((i * y1) - (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 = t * (a * (y2 * y5))
	tmp = 0
	if y5 <= -4.3e+70:
		tmp = t_1
	elif y5 <= -3.1e-61:
		tmp = c * (t * ((z * i) - (y2 * y4)))
	elif y5 <= 6.2e-195:
		tmp = b * (y0 * ((z * k) - (x * j)))
	elif y5 <= 1.3e+73:
		tmp = b * (y4 * ((t * j) - (y * k)))
	elif y5 <= 3e+185:
		tmp = j * (x * ((i * y1) - (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(t * Float64(a * Float64(y2 * y5)))
	tmp = 0.0
	if (y5 <= -4.3e+70)
		tmp = t_1;
	elseif (y5 <= -3.1e-61)
		tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4))));
	elseif (y5 <= 6.2e-195)
		tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j))));
	elseif (y5 <= 1.3e+73)
		tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k))));
	elseif (y5 <= 3e+185)
		tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - 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 = t * (a * (y2 * y5));
	tmp = 0.0;
	if (y5 <= -4.3e+70)
		tmp = t_1;
	elseif (y5 <= -3.1e-61)
		tmp = c * (t * ((z * i) - (y2 * y4)));
	elseif (y5 <= 6.2e-195)
		tmp = b * (y0 * ((z * k) - (x * j)));
	elseif (y5 <= 1.3e+73)
		tmp = b * (y4 * ((t * j) - (y * k)));
	elseif (y5 <= 3e+185)
		tmp = j * (x * ((i * y1) - (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[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -4.3e+70], t$95$1, If[LessEqual[y5, -3.1e-61], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 6.2e-195], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.3e+73], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3e+185], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;y5 \leq -3.1 \cdot 10^{-61}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\

\mathbf{elif}\;y5 \leq 6.2 \cdot 10^{-195}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\

\mathbf{elif}\;y5 \leq 1.3 \cdot 10^{+73}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

\mathbf{elif}\;y5 \leq 3 \cdot 10^{+185}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y5 < -4.3000000000000001e70 or 2.99999999999999994e185 < y5

    1. Initial program 24.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 t around inf 40.9%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in b around 0 38.5%

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

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

    if -4.3000000000000001e70 < y5 < -3.09999999999999995e-61

    1. Initial program 42.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 t around inf 46.0%

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

      \[\leadsto \color{blue}{c \cdot \left(t \cdot \left(i \cdot z - y2 \cdot y4\right)\right)} \]

    if -3.09999999999999995e-61 < y5 < 6.20000000000000005e-195

    1. Initial program 32.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 b around inf 45.3%

      \[\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)} \]
    4. Taylor expanded in y0 around inf 42.4%

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

    if 6.20000000000000005e-195 < y5 < 1.3e73

    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 b around inf 48.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)} \]
    4. Taylor expanded in y4 around inf 33.6%

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

    if 1.3e73 < y5 < 2.99999999999999994e185

    1. Initial program 34.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 37.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 x around inf 47.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -4.3 \cdot 10^{+70}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq -3.1 \cdot 10^{-61}:\\ \;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\ \mathbf{elif}\;y5 \leq 6.2 \cdot 10^{-195}:\\ \;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y5 \leq 1.3 \cdot 10^{+73}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{elif}\;y5 \leq 3 \cdot 10^{+185}:\\ \;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 29.9% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ t_2 := c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\ \mathbf{if}\;y5 \leq -1.28 \cdot 10^{+70}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y5 \leq -1.15 \cdot 10^{-61}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y5 \leq 1.45 \cdot 10^{-195}:\\ \;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y5 \leq 7.2 \cdot 10^{+43}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{elif}\;y5 \leq 5.5 \cdot 10^{+169}:\\ \;\;\;\;t\_2\\ \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 (* t (* a (* y2 y5)))) (t_2 (* c (* t (- (* z i) (* y2 y4))))))
   (if (<= y5 -1.28e+70)
     t_1
     (if (<= y5 -1.15e-61)
       t_2
       (if (<= y5 1.45e-195)
         (* b (* y0 (- (* z k) (* x j))))
         (if (<= y5 7.2e+43)
           (* b (* y4 (- (* t j) (* y k))))
           (if (<= y5 5.5e+169) t_2 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 = t * (a * (y2 * y5));
	double t_2 = c * (t * ((z * i) - (y2 * y4)));
	double tmp;
	if (y5 <= -1.28e+70) {
		tmp = t_1;
	} else if (y5 <= -1.15e-61) {
		tmp = t_2;
	} else if (y5 <= 1.45e-195) {
		tmp = b * (y0 * ((z * k) - (x * j)));
	} else if (y5 <= 7.2e+43) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} else if (y5 <= 5.5e+169) {
		tmp = t_2;
	} 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) :: t_2
    real(8) :: tmp
    t_1 = t * (a * (y2 * y5))
    t_2 = c * (t * ((z * i) - (y2 * y4)))
    if (y5 <= (-1.28d+70)) then
        tmp = t_1
    else if (y5 <= (-1.15d-61)) then
        tmp = t_2
    else if (y5 <= 1.45d-195) then
        tmp = b * (y0 * ((z * k) - (x * j)))
    else if (y5 <= 7.2d+43) then
        tmp = b * (y4 * ((t * j) - (y * k)))
    else if (y5 <= 5.5d+169) then
        tmp = t_2
    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 = t * (a * (y2 * y5));
	double t_2 = c * (t * ((z * i) - (y2 * y4)));
	double tmp;
	if (y5 <= -1.28e+70) {
		tmp = t_1;
	} else if (y5 <= -1.15e-61) {
		tmp = t_2;
	} else if (y5 <= 1.45e-195) {
		tmp = b * (y0 * ((z * k) - (x * j)));
	} else if (y5 <= 7.2e+43) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} else if (y5 <= 5.5e+169) {
		tmp = t_2;
	} 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 = t * (a * (y2 * y5))
	t_2 = c * (t * ((z * i) - (y2 * y4)))
	tmp = 0
	if y5 <= -1.28e+70:
		tmp = t_1
	elif y5 <= -1.15e-61:
		tmp = t_2
	elif y5 <= 1.45e-195:
		tmp = b * (y0 * ((z * k) - (x * j)))
	elif y5 <= 7.2e+43:
		tmp = b * (y4 * ((t * j) - (y * k)))
	elif y5 <= 5.5e+169:
		tmp = t_2
	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(t * Float64(a * Float64(y2 * y5)))
	t_2 = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4))))
	tmp = 0.0
	if (y5 <= -1.28e+70)
		tmp = t_1;
	elseif (y5 <= -1.15e-61)
		tmp = t_2;
	elseif (y5 <= 1.45e-195)
		tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j))));
	elseif (y5 <= 7.2e+43)
		tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k))));
	elseif (y5 <= 5.5e+169)
		tmp = t_2;
	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 = t * (a * (y2 * y5));
	t_2 = c * (t * ((z * i) - (y2 * y4)));
	tmp = 0.0;
	if (y5 <= -1.28e+70)
		tmp = t_1;
	elseif (y5 <= -1.15e-61)
		tmp = t_2;
	elseif (y5 <= 1.45e-195)
		tmp = b * (y0 * ((z * k) - (x * j)));
	elseif (y5 <= 7.2e+43)
		tmp = b * (y4 * ((t * j) - (y * k)));
	elseif (y5 <= 5.5e+169)
		tmp = t_2;
	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[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.28e+70], t$95$1, If[LessEqual[y5, -1.15e-61], t$95$2, If[LessEqual[y5, 1.45e-195], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 7.2e+43], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 5.5e+169], t$95$2, t$95$1]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
t_2 := c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{if}\;y5 \leq -1.28 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y5 \leq -1.15 \cdot 10^{-61}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;y5 \leq 1.45 \cdot 10^{-195}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\

\mathbf{elif}\;y5 \leq 7.2 \cdot 10^{+43}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

\mathbf{elif}\;y5 \leq 5.5 \cdot 10^{+169}:\\
\;\;\;\;t\_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y5 < -1.27999999999999994e70 or 5.49999999999999972e169 < y5

    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 t around inf 38.4%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in b around 0 37.3%

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

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

    if -1.27999999999999994e70 < y5 < -1.14999999999999996e-61 or 7.2000000000000002e43 < y5 < 5.49999999999999972e169

    1. Initial program 39.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 t around inf 47.2%

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

      \[\leadsto \color{blue}{c \cdot \left(t \cdot \left(i \cdot z - y2 \cdot y4\right)\right)} \]

    if -1.14999999999999996e-61 < y5 < 1.4500000000000001e-195

    1. Initial program 32.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 b around inf 45.3%

      \[\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)} \]
    4. Taylor expanded in y0 around inf 42.4%

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

    if 1.4500000000000001e-195 < y5 < 7.2000000000000002e43

    1. Initial program 45.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 54.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)} \]
    4. Taylor expanded in y4 around inf 37.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -1.28 \cdot 10^{+70}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq -1.15 \cdot 10^{-61}:\\ \;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\ \mathbf{elif}\;y5 \leq 1.45 \cdot 10^{-195}:\\ \;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y5 \leq 7.2 \cdot 10^{+43}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{elif}\;y5 \leq 5.5 \cdot 10^{+169}:\\ \;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 31.9% accurate, 2.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;k \leq -1.35 \cdot 10^{+115}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{elif}\;k \leq -6.5 \cdot 10^{-102}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;k \leq -2.4 \cdot 10^{-307}:\\ \;\;\;\;t \cdot \left(c \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\ \mathbf{elif}\;k \leq 1.7 \cdot 10^{-7}:\\ \;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(z \cdot \left(t \cdot c - k \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 (<= k -1.35e+115)
   (* i (* k (- (* y y5) (* z y1))))
   (if (<= k -6.5e-102)
     (* j (* y0 (- (* y3 y5) (* x b))))
     (if (<= k -2.4e-307)
       (* t (* c (- (* z i) (* y2 y4))))
       (if (<= k 1.7e-7)
         (* a (* t (* b (- (* y2 (/ y5 b)) z))))
         (* i (* z (- (* t c) (* k 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 (k <= -1.35e+115) {
		tmp = i * (k * ((y * y5) - (z * y1)));
	} else if (k <= -6.5e-102) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (k <= -2.4e-307) {
		tmp = t * (c * ((z * i) - (y2 * y4)));
	} else if (k <= 1.7e-7) {
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)));
	} else {
		tmp = i * (z * ((t * c) - (k * 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 (k <= (-1.35d+115)) then
        tmp = i * (k * ((y * y5) - (z * y1)))
    else if (k <= (-6.5d-102)) then
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    else if (k <= (-2.4d-307)) then
        tmp = t * (c * ((z * i) - (y2 * y4)))
    else if (k <= 1.7d-7) then
        tmp = a * (t * (b * ((y2 * (y5 / b)) - z)))
    else
        tmp = i * (z * ((t * c) - (k * 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 (k <= -1.35e+115) {
		tmp = i * (k * ((y * y5) - (z * y1)));
	} else if (k <= -6.5e-102) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (k <= -2.4e-307) {
		tmp = t * (c * ((z * i) - (y2 * y4)));
	} else if (k <= 1.7e-7) {
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)));
	} else {
		tmp = i * (z * ((t * c) - (k * y1)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if k <= -1.35e+115:
		tmp = i * (k * ((y * y5) - (z * y1)))
	elif k <= -6.5e-102:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	elif k <= -2.4e-307:
		tmp = t * (c * ((z * i) - (y2 * y4)))
	elif k <= 1.7e-7:
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)))
	else:
		tmp = i * (z * ((t * c) - (k * 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 (k <= -1.35e+115)
		tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1))));
	elseif (k <= -6.5e-102)
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	elseif (k <= -2.4e-307)
		tmp = Float64(t * Float64(c * Float64(Float64(z * i) - Float64(y2 * y4))));
	elseif (k <= 1.7e-7)
		tmp = Float64(a * Float64(t * Float64(b * Float64(Float64(y2 * Float64(y5 / b)) - z))));
	else
		tmp = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * 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 (k <= -1.35e+115)
		tmp = i * (k * ((y * y5) - (z * y1)));
	elseif (k <= -6.5e-102)
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	elseif (k <= -2.4e-307)
		tmp = t * (c * ((z * i) - (y2 * y4)));
	elseif (k <= 1.7e-7)
		tmp = a * (t * (b * ((y2 * (y5 / b)) - z)));
	else
		tmp = i * (z * ((t * c) - (k * 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[k, -1.35e+115], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -6.5e-102], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -2.4e-307], N[(t * N[(c * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.7e-7], N[(a * N[(t * N[(b * N[(N[(y2 * N[(y5 / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;k \leq -1.35 \cdot 10^{+115}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\

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

\mathbf{elif}\;k \leq -2.4 \cdot 10^{-307}:\\
\;\;\;\;t \cdot \left(c \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\

\mathbf{elif}\;k \leq 1.7 \cdot 10^{-7}:\\
\;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\

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


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

    1. Initial program 34.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 i around -inf 51.2%

      \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\left(c \cdot \left(x \cdot y - t \cdot z\right) + y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in k around -inf 56.5%

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

        \[\leadsto -1 \cdot \color{blue}{\left(\left(-1 \cdot i\right) \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\right)} \]
      2. mul-1-neg56.5%

        \[\leadsto -1 \cdot \left(\color{blue}{\left(-i\right)} \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\right) \]
    6. Simplified56.5%

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

    if -1.35000000000000002e115 < k < -6.5000000000000003e-102

    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 j around inf 43.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 43.6%

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

    if -6.5000000000000003e-102 < k < -2.40000000000000018e-307

    1. Initial program 29.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 t around inf 48.0%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in c around inf 44.0%

      \[\leadsto t \cdot \color{blue}{\left(c \cdot \left(i \cdot z - y2 \cdot y4\right)\right)} \]

    if -2.40000000000000018e-307 < k < 1.69999999999999987e-7

    1. Initial program 35.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 t around inf 49.9%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in a around -inf 46.0%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*46.0%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
      2. mul-1-neg46.0%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right) \]
    6. Simplified46.0%

      \[\leadsto \color{blue}{\left(-a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
    7. Taylor expanded in b around inf 47.4%

      \[\leadsto \left(-a\right) \cdot \left(t \cdot \color{blue}{\left(b \cdot \left(z + -1 \cdot \frac{y2 \cdot y5}{b}\right)\right)}\right) \]
    8. Step-by-step derivation
      1. mul-1-neg47.4%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \left(z + \color{blue}{\left(-\frac{y2 \cdot y5}{b}\right)}\right)\right)\right) \]
      2. unsub-neg47.4%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \color{blue}{\left(z - \frac{y2 \cdot y5}{b}\right)}\right)\right) \]
      3. associate-/l*50.3%

        \[\leadsto \left(-a\right) \cdot \left(t \cdot \left(b \cdot \left(z - \color{blue}{y2 \cdot \frac{y5}{b}}\right)\right)\right) \]
    9. Simplified50.3%

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

    if 1.69999999999999987e-7 < k

    1. Initial program 30.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 i around -inf 44.4%

      \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\left(c \cdot \left(x \cdot y - t \cdot z\right) + y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in z around -inf 41.9%

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

        \[\leadsto -1 \cdot \color{blue}{\left(\left(-1 \cdot i\right) \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\right)} \]
      2. mul-1-neg41.9%

        \[\leadsto -1 \cdot \left(\color{blue}{\left(-i\right)} \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\right) \]
    6. Simplified41.9%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq -1.35 \cdot 10^{+115}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{elif}\;k \leq -6.5 \cdot 10^{-102}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;k \leq -2.4 \cdot 10^{-307}:\\ \;\;\;\;t \cdot \left(c \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\ \mathbf{elif}\;k \leq 1.7 \cdot 10^{-7}:\\ \;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(y2 \cdot \frac{y5}{b} - z\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 18: 31.8% accurate, 3.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y2 \leq -5.2 \cdot 10^{+37}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -2.05 \cdot 10^{-215}:\\ \;\;\;\;i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\\ \mathbf{elif}\;y2 \leq 1.1 \cdot 10^{-292}:\\ \;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\ \mathbf{elif}\;y2 \leq 4.5 \cdot 10^{+80}:\\ \;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5 - z \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 (<= y2 -5.2e+37)
   (* t (* y2 (- (* a y5) (* c y4))))
   (if (<= y2 -2.05e-215)
     (* i (* y5 (- (* y k) (* t j))))
     (if (<= y2 1.1e-292)
       (* b (* z (- (* k y0) (* t a))))
       (if (<= y2 4.5e+80)
         (* y1 (* z (- (* a y3) (* i k))))
         (* a (* t (- (* y2 y5) (* z 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 (y2 <= -5.2e+37) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else if (y2 <= -2.05e-215) {
		tmp = i * (y5 * ((y * k) - (t * j)));
	} else if (y2 <= 1.1e-292) {
		tmp = b * (z * ((k * y0) - (t * a)));
	} else if (y2 <= 4.5e+80) {
		tmp = y1 * (z * ((a * y3) - (i * k)));
	} else {
		tmp = a * (t * ((y2 * y5) - (z * 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 (y2 <= (-5.2d+37)) then
        tmp = t * (y2 * ((a * y5) - (c * y4)))
    else if (y2 <= (-2.05d-215)) then
        tmp = i * (y5 * ((y * k) - (t * j)))
    else if (y2 <= 1.1d-292) then
        tmp = b * (z * ((k * y0) - (t * a)))
    else if (y2 <= 4.5d+80) then
        tmp = y1 * (z * ((a * y3) - (i * k)))
    else
        tmp = a * (t * ((y2 * y5) - (z * 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 (y2 <= -5.2e+37) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else if (y2 <= -2.05e-215) {
		tmp = i * (y5 * ((y * k) - (t * j)));
	} else if (y2 <= 1.1e-292) {
		tmp = b * (z * ((k * y0) - (t * a)));
	} else if (y2 <= 4.5e+80) {
		tmp = y1 * (z * ((a * y3) - (i * k)));
	} else {
		tmp = a * (t * ((y2 * y5) - (z * b)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if y2 <= -5.2e+37:
		tmp = t * (y2 * ((a * y5) - (c * y4)))
	elif y2 <= -2.05e-215:
		tmp = i * (y5 * ((y * k) - (t * j)))
	elif y2 <= 1.1e-292:
		tmp = b * (z * ((k * y0) - (t * a)))
	elif y2 <= 4.5e+80:
		tmp = y1 * (z * ((a * y3) - (i * k)))
	else:
		tmp = a * (t * ((y2 * y5) - (z * 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 (y2 <= -5.2e+37)
		tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))));
	elseif (y2 <= -2.05e-215)
		tmp = Float64(i * Float64(y5 * Float64(Float64(y * k) - Float64(t * j))));
	elseif (y2 <= 1.1e-292)
		tmp = Float64(b * Float64(z * Float64(Float64(k * y0) - Float64(t * a))));
	elseif (y2 <= 4.5e+80)
		tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k))));
	else
		tmp = Float64(a * Float64(t * Float64(Float64(y2 * y5) - Float64(z * 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 (y2 <= -5.2e+37)
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	elseif (y2 <= -2.05e-215)
		tmp = i * (y5 * ((y * k) - (t * j)));
	elseif (y2 <= 1.1e-292)
		tmp = b * (z * ((k * y0) - (t * a)));
	elseif (y2 <= 4.5e+80)
		tmp = y1 * (z * ((a * y3) - (i * k)));
	else
		tmp = a * (t * ((y2 * y5) - (z * 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[y2, -5.2e+37], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.05e-215], N[(i * N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.1e-292], N[(b * N[(z * N[(N[(k * y0), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.5e+80], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * N[(N[(y2 * y5), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -5.2 \cdot 10^{+37}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq -2.05 \cdot 10^{-215}:\\
\;\;\;\;i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\\

\mathbf{elif}\;y2 \leq 1.1 \cdot 10^{-292}:\\
\;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\

\mathbf{elif}\;y2 \leq 4.5 \cdot 10^{+80}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y2 < -5.1999999999999998e37

    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 t around inf 42.5%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y2 around inf 50.8%

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

    if -5.1999999999999998e37 < y2 < -2.04999999999999992e-215

    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 i around -inf 49.5%

      \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\left(c \cdot \left(x \cdot y - t \cdot z\right) + y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in y5 around inf 41.7%

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

    if -2.04999999999999992e-215 < y2 < 1.10000000000000006e-292

    1. Initial program 37.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 55.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)} \]
    4. Taylor expanded in z around -inf 52.9%

      \[\leadsto \color{blue}{-1 \cdot \left(b \cdot \left(z \cdot \left(a \cdot t - k \cdot y0\right)\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg52.9%

        \[\leadsto \color{blue}{-b \cdot \left(z \cdot \left(a \cdot t - k \cdot y0\right)\right)} \]
    6. Simplified52.9%

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

    if 1.10000000000000006e-292 < y2 < 4.50000000000000007e80

    1. Initial program 36.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 y1 around inf 43.1%

      \[\leadsto \color{blue}{y1 \cdot \left(\left(-1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in z around inf 36.2%

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

    if 4.50000000000000007e80 < y2

    1. Initial program 29.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 t around inf 41.8%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in a around -inf 49.5%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*49.5%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
      2. mul-1-neg49.5%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right) \]
    6. Simplified49.5%

      \[\leadsto \color{blue}{\left(-a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification44.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -5.2 \cdot 10^{+37}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -2.05 \cdot 10^{-215}:\\ \;\;\;\;i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\\ \mathbf{elif}\;y2 \leq 1.1 \cdot 10^{-292}:\\ \;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\ \mathbf{elif}\;y2 \leq 4.5 \cdot 10^{+80}:\\ \;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5 - z \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 31.6% accurate, 3.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y2 \leq -6.2 \cdot 10^{+30}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -6.2 \cdot 10^{-121}:\\ \;\;\;\;t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq 7.4 \cdot 10^{-292}:\\ \;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\ \mathbf{elif}\;y2 \leq 4.7 \cdot 10^{+80}:\\ \;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5 - z \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 (<= y2 -6.2e+30)
   (* t (* y2 (- (* a y5) (* c y4))))
   (if (<= y2 -6.2e-121)
     (* t (* i (- (* z c) (* j y5))))
     (if (<= y2 7.4e-292)
       (* b (* z (- (* k y0) (* t a))))
       (if (<= y2 4.7e+80)
         (* y1 (* z (- (* a y3) (* i k))))
         (* a (* t (- (* y2 y5) (* z 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 (y2 <= -6.2e+30) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else if (y2 <= -6.2e-121) {
		tmp = t * (i * ((z * c) - (j * y5)));
	} else if (y2 <= 7.4e-292) {
		tmp = b * (z * ((k * y0) - (t * a)));
	} else if (y2 <= 4.7e+80) {
		tmp = y1 * (z * ((a * y3) - (i * k)));
	} else {
		tmp = a * (t * ((y2 * y5) - (z * 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 (y2 <= (-6.2d+30)) then
        tmp = t * (y2 * ((a * y5) - (c * y4)))
    else if (y2 <= (-6.2d-121)) then
        tmp = t * (i * ((z * c) - (j * y5)))
    else if (y2 <= 7.4d-292) then
        tmp = b * (z * ((k * y0) - (t * a)))
    else if (y2 <= 4.7d+80) then
        tmp = y1 * (z * ((a * y3) - (i * k)))
    else
        tmp = a * (t * ((y2 * y5) - (z * 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 (y2 <= -6.2e+30) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else if (y2 <= -6.2e-121) {
		tmp = t * (i * ((z * c) - (j * y5)));
	} else if (y2 <= 7.4e-292) {
		tmp = b * (z * ((k * y0) - (t * a)));
	} else if (y2 <= 4.7e+80) {
		tmp = y1 * (z * ((a * y3) - (i * k)));
	} else {
		tmp = a * (t * ((y2 * y5) - (z * b)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if y2 <= -6.2e+30:
		tmp = t * (y2 * ((a * y5) - (c * y4)))
	elif y2 <= -6.2e-121:
		tmp = t * (i * ((z * c) - (j * y5)))
	elif y2 <= 7.4e-292:
		tmp = b * (z * ((k * y0) - (t * a)))
	elif y2 <= 4.7e+80:
		tmp = y1 * (z * ((a * y3) - (i * k)))
	else:
		tmp = a * (t * ((y2 * y5) - (z * 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 (y2 <= -6.2e+30)
		tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))));
	elseif (y2 <= -6.2e-121)
		tmp = Float64(t * Float64(i * Float64(Float64(z * c) - Float64(j * y5))));
	elseif (y2 <= 7.4e-292)
		tmp = Float64(b * Float64(z * Float64(Float64(k * y0) - Float64(t * a))));
	elseif (y2 <= 4.7e+80)
		tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k))));
	else
		tmp = Float64(a * Float64(t * Float64(Float64(y2 * y5) - Float64(z * 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 (y2 <= -6.2e+30)
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	elseif (y2 <= -6.2e-121)
		tmp = t * (i * ((z * c) - (j * y5)));
	elseif (y2 <= 7.4e-292)
		tmp = b * (z * ((k * y0) - (t * a)));
	elseif (y2 <= 4.7e+80)
		tmp = y1 * (z * ((a * y3) - (i * k)));
	else
		tmp = a * (t * ((y2 * y5) - (z * 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[y2, -6.2e+30], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -6.2e-121], N[(t * N[(i * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 7.4e-292], N[(b * N[(z * N[(N[(k * y0), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.7e+80], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * N[(N[(y2 * y5), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -6.2 \cdot 10^{+30}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq -6.2 \cdot 10^{-121}:\\
\;\;\;\;t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right)\right)\\

\mathbf{elif}\;y2 \leq 7.4 \cdot 10^{-292}:\\
\;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\

\mathbf{elif}\;y2 \leq 4.7 \cdot 10^{+80}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y2 < -6.1999999999999995e30

    1. Initial program 26.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 t around inf 41.0%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y2 around inf 48.9%

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

    if -6.1999999999999995e30 < y2 < -6.1999999999999997e-121

    1. Initial program 35.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 t around inf 39.2%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in b around 0 39.8%

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

      \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(i \cdot \left(j \cdot y5\right)\right) + c \cdot \left(i \cdot z\right)\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg46.1%

        \[\leadsto t \cdot \left(\color{blue}{\left(-i \cdot \left(j \cdot y5\right)\right)} + c \cdot \left(i \cdot z\right)\right) \]
      2. distribute-rgt-neg-out46.1%

        \[\leadsto t \cdot \left(\color{blue}{i \cdot \left(-j \cdot y5\right)} + c \cdot \left(i \cdot z\right)\right) \]
      3. *-commutative46.1%

        \[\leadsto t \cdot \left(\color{blue}{\left(-j \cdot y5\right) \cdot i} + c \cdot \left(i \cdot z\right)\right) \]
      4. *-commutative46.1%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + c \cdot \color{blue}{\left(z \cdot i\right)}\right) \]
      5. *-commutative46.1%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + \color{blue}{\left(z \cdot i\right) \cdot c}\right) \]
      6. associate-*l*49.2%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + \color{blue}{z \cdot \left(i \cdot c\right)}\right) \]
      7. *-commutative49.2%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + z \cdot \color{blue}{\left(c \cdot i\right)}\right) \]
      8. associate-*l*46.1%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + \color{blue}{\left(z \cdot c\right) \cdot i}\right) \]
      9. distribute-rgt-out49.3%

        \[\leadsto t \cdot \color{blue}{\left(i \cdot \left(\left(-j \cdot y5\right) + z \cdot c\right)\right)} \]
      10. *-commutative49.3%

        \[\leadsto t \cdot \left(i \cdot \left(\left(-j \cdot y5\right) + \color{blue}{c \cdot z}\right)\right) \]
      11. +-commutative49.3%

        \[\leadsto t \cdot \left(i \cdot \color{blue}{\left(c \cdot z + \left(-j \cdot y5\right)\right)}\right) \]
      12. unsub-neg49.3%

        \[\leadsto t \cdot \left(i \cdot \color{blue}{\left(c \cdot z - j \cdot y5\right)}\right) \]
      13. *-commutative49.3%

        \[\leadsto t \cdot \left(i \cdot \left(\color{blue}{z \cdot c} - j \cdot y5\right)\right) \]
      14. *-commutative49.3%

        \[\leadsto t \cdot \left(i \cdot \left(z \cdot c - \color{blue}{y5 \cdot j}\right)\right) \]
    7. Simplified49.3%

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

    if -6.1999999999999997e-121 < y2 < 7.39999999999999993e-292

    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 b around inf 51.4%

      \[\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)} \]
    4. Taylor expanded in z around -inf 44.0%

      \[\leadsto \color{blue}{-1 \cdot \left(b \cdot \left(z \cdot \left(a \cdot t - k \cdot y0\right)\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg44.0%

        \[\leadsto \color{blue}{-b \cdot \left(z \cdot \left(a \cdot t - k \cdot y0\right)\right)} \]
    6. Simplified44.0%

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

    if 7.39999999999999993e-292 < y2 < 4.70000000000000009e80

    1. Initial program 36.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 y1 around inf 43.1%

      \[\leadsto \color{blue}{y1 \cdot \left(\left(-1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in z around inf 36.2%

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

    if 4.70000000000000009e80 < y2

    1. Initial program 29.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 t around inf 41.8%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in a around -inf 49.5%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*49.5%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
      2. mul-1-neg49.5%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right) \]
    6. Simplified49.5%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -6.2 \cdot 10^{+30}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -6.2 \cdot 10^{-121}:\\ \;\;\;\;t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq 7.4 \cdot 10^{-292}:\\ \;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\ \mathbf{elif}\;y2 \leq 4.7 \cdot 10^{+80}:\\ \;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5 - z \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 30.7% accurate, 3.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1.55 \cdot 10^{+187}:\\ \;\;\;\;\left(t \cdot b\right) \cdot \left(j \cdot y4 - z \cdot a\right)\\ \mathbf{elif}\;b \leq -8.5 \cdot 10^{-129}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;b \leq 3.5 \cdot 10^{-44}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;b \leq 6.3 \cdot 10^{+245}:\\ \;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0 - y \cdot y4\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 -1.55e+187)
   (* (* t b) (- (* j y4) (* z a)))
   (if (<= b -8.5e-129)
     (* j (* y0 (- (* y3 y5) (* x b))))
     (if (<= b 3.5e-44)
       (* t (* y2 (- (* a y5) (* c y4))))
       (if (<= b 6.3e+245)
         (* t (* j (- (* b y4) (* i y5))))
         (* b (* k (- (* z y0) (* y 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 (b <= -1.55e+187) {
		tmp = (t * b) * ((j * y4) - (z * a));
	} else if (b <= -8.5e-129) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (b <= 3.5e-44) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else if (b <= 6.3e+245) {
		tmp = t * (j * ((b * y4) - (i * y5)));
	} else {
		tmp = b * (k * ((z * y0) - (y * 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 (b <= (-1.55d+187)) then
        tmp = (t * b) * ((j * y4) - (z * a))
    else if (b <= (-8.5d-129)) then
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    else if (b <= 3.5d-44) then
        tmp = t * (y2 * ((a * y5) - (c * y4)))
    else if (b <= 6.3d+245) then
        tmp = t * (j * ((b * y4) - (i * y5)))
    else
        tmp = b * (k * ((z * y0) - (y * 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 (b <= -1.55e+187) {
		tmp = (t * b) * ((j * y4) - (z * a));
	} else if (b <= -8.5e-129) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (b <= 3.5e-44) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else if (b <= 6.3e+245) {
		tmp = t * (j * ((b * y4) - (i * y5)));
	} else {
		tmp = b * (k * ((z * y0) - (y * y4)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if b <= -1.55e+187:
		tmp = (t * b) * ((j * y4) - (z * a))
	elif b <= -8.5e-129:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	elif b <= 3.5e-44:
		tmp = t * (y2 * ((a * y5) - (c * y4)))
	elif b <= 6.3e+245:
		tmp = t * (j * ((b * y4) - (i * y5)))
	else:
		tmp = b * (k * ((z * y0) - (y * 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 (b <= -1.55e+187)
		tmp = Float64(Float64(t * b) * Float64(Float64(j * y4) - Float64(z * a)));
	elseif (b <= -8.5e-129)
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	elseif (b <= 3.5e-44)
		tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))));
	elseif (b <= 6.3e+245)
		tmp = Float64(t * Float64(j * Float64(Float64(b * y4) - Float64(i * y5))));
	else
		tmp = Float64(b * Float64(k * Float64(Float64(z * y0) - Float64(y * 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 (b <= -1.55e+187)
		tmp = (t * b) * ((j * y4) - (z * a));
	elseif (b <= -8.5e-129)
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	elseif (b <= 3.5e-44)
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	elseif (b <= 6.3e+245)
		tmp = t * (j * ((b * y4) - (i * y5)));
	else
		tmp = b * (k * ((z * y0) - (y * 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[b, -1.55e+187], N[(N[(t * b), $MachinePrecision] * N[(N[(j * y4), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.5e-129], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.5e-44], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.3e+245], N[(t * N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(k * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.55 \cdot 10^{+187}:\\
\;\;\;\;\left(t \cdot b\right) \cdot \left(j \cdot y4 - z \cdot a\right)\\

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

\mathbf{elif}\;b \leq 3.5 \cdot 10^{-44}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

\mathbf{elif}\;b \leq 6.3 \cdot 10^{+245}:\\
\;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if b < -1.55000000000000006e187

    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 t around inf 39.8%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in i around 0 50.5%

      \[\leadsto t \cdot \color{blue}{\left(\left(-1 \cdot \left(a \cdot \left(b \cdot z\right)\right) + \left(b \cdot \left(j \cdot y4\right) + i \cdot \left(-1 \cdot \left(j \cdot y5\right) + c \cdot z\right)\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in b around inf 54.7%

      \[\leadsto \color{blue}{b \cdot \left(t \cdot \left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*54.7%

        \[\leadsto \color{blue}{\left(b \cdot t\right) \cdot \left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)} \]
      2. +-commutative54.7%

        \[\leadsto \left(b \cdot t\right) \cdot \color{blue}{\left(j \cdot y4 + -1 \cdot \left(a \cdot z\right)\right)} \]
      3. mul-1-neg54.7%

        \[\leadsto \left(b \cdot t\right) \cdot \left(j \cdot y4 + \color{blue}{\left(-a \cdot z\right)}\right) \]
      4. unsub-neg54.7%

        \[\leadsto \left(b \cdot t\right) \cdot \color{blue}{\left(j \cdot y4 - a \cdot z\right)} \]
      5. *-commutative54.7%

        \[\leadsto \left(b \cdot t\right) \cdot \left(\color{blue}{y4 \cdot j} - a \cdot z\right) \]
    7. Simplified54.7%

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

    if -1.55000000000000006e187 < b < -8.49999999999999937e-129

    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 j around inf 45.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 y0 around inf 41.9%

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

    if -8.49999999999999937e-129 < b < 3.4999999999999998e-44

    1. Initial program 36.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 t around inf 38.7%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y2 around inf 34.4%

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

    if 3.4999999999999998e-44 < b < 6.2999999999999996e245

    1. Initial program 33.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 t around inf 52.9%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in j around inf 60.0%

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

    if 6.2999999999999996e245 < b

    1. Initial program 33.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 66.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)} \]
    4. Taylor expanded in k around -inf 78.7%

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

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

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

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

Alternative 21: 32.7% accurate, 3.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y0 \leq -4.5 \cdot 10^{+109}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;y0 \leq -7.2 \cdot 10^{-219}:\\ \;\;\;\;t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right)\right)\\ \mathbf{elif}\;y0 \leq 1.25 \cdot 10^{-115}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{elif}\;y0 \leq 7 \cdot 10^{+101}:\\ \;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(y0 \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
 (if (<= y0 -4.5e+109)
   (* j (* y0 (- (* y3 y5) (* x b))))
   (if (<= y0 -7.2e-219)
     (* t (* i (- (* z c) (* j y5))))
     (if (<= y0 1.25e-115)
       (* b (* y4 (- (* t j) (* y k))))
       (if (<= y0 7e+101)
         (* t (* j (- (* b y4) (* i y5))))
         (* b (* y0 (- (* 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 tmp;
	if (y0 <= -4.5e+109) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (y0 <= -7.2e-219) {
		tmp = t * (i * ((z * c) - (j * y5)));
	} else if (y0 <= 1.25e-115) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} else if (y0 <= 7e+101) {
		tmp = t * (j * ((b * y4) - (i * y5)));
	} else {
		tmp = b * (y0 * ((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) :: tmp
    if (y0 <= (-4.5d+109)) then
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    else if (y0 <= (-7.2d-219)) then
        tmp = t * (i * ((z * c) - (j * y5)))
    else if (y0 <= 1.25d-115) then
        tmp = b * (y4 * ((t * j) - (y * k)))
    else if (y0 <= 7d+101) then
        tmp = t * (j * ((b * y4) - (i * y5)))
    else
        tmp = b * (y0 * ((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 tmp;
	if (y0 <= -4.5e+109) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (y0 <= -7.2e-219) {
		tmp = t * (i * ((z * c) - (j * y5)));
	} else if (y0 <= 1.25e-115) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} else if (y0 <= 7e+101) {
		tmp = t * (j * ((b * y4) - (i * y5)));
	} else {
		tmp = b * (y0 * ((z * k) - (x * j)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if y0 <= -4.5e+109:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	elif y0 <= -7.2e-219:
		tmp = t * (i * ((z * c) - (j * y5)))
	elif y0 <= 1.25e-115:
		tmp = b * (y4 * ((t * j) - (y * k)))
	elif y0 <= 7e+101:
		tmp = t * (j * ((b * y4) - (i * y5)))
	else:
		tmp = b * (y0 * ((z * k) - (x * j)))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (y0 <= -4.5e+109)
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	elseif (y0 <= -7.2e-219)
		tmp = Float64(t * Float64(i * Float64(Float64(z * c) - Float64(j * y5))));
	elseif (y0 <= 1.25e-115)
		tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k))));
	elseif (y0 <= 7e+101)
		tmp = Float64(t * Float64(j * Float64(Float64(b * y4) - Float64(i * y5))));
	else
		tmp = Float64(b * Float64(y0 * 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)
	tmp = 0.0;
	if (y0 <= -4.5e+109)
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	elseif (y0 <= -7.2e-219)
		tmp = t * (i * ((z * c) - (j * y5)));
	elseif (y0 <= 1.25e-115)
		tmp = b * (y4 * ((t * j) - (y * k)));
	elseif (y0 <= 7e+101)
		tmp = t * (j * ((b * y4) - (i * y5)));
	else
		tmp = b * (y0 * ((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_] := If[LessEqual[y0, -4.5e+109], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -7.2e-219], N[(t * N[(i * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.25e-115], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 7e+101], N[(t * N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y0 \leq -4.5 \cdot 10^{+109}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\

\mathbf{elif}\;y0 \leq -7.2 \cdot 10^{-219}:\\
\;\;\;\;t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right)\right)\\

\mathbf{elif}\;y0 \leq 1.25 \cdot 10^{-115}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

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

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


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

    1. Initial program 31.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 j around inf 47.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 53.3%

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

    if -4.4999999999999996e109 < y0 < -7.19999999999999947e-219

    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 t around inf 43.6%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in b around 0 38.2%

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

      \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(i \cdot \left(j \cdot y5\right)\right) + c \cdot \left(i \cdot z\right)\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg30.8%

        \[\leadsto t \cdot \left(\color{blue}{\left(-i \cdot \left(j \cdot y5\right)\right)} + c \cdot \left(i \cdot z\right)\right) \]
      2. distribute-rgt-neg-out30.8%

        \[\leadsto t \cdot \left(\color{blue}{i \cdot \left(-j \cdot y5\right)} + c \cdot \left(i \cdot z\right)\right) \]
      3. *-commutative30.8%

        \[\leadsto t \cdot \left(\color{blue}{\left(-j \cdot y5\right) \cdot i} + c \cdot \left(i \cdot z\right)\right) \]
      4. *-commutative30.8%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + c \cdot \color{blue}{\left(z \cdot i\right)}\right) \]
      5. *-commutative30.8%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + \color{blue}{\left(z \cdot i\right) \cdot c}\right) \]
      6. associate-*l*30.8%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + \color{blue}{z \cdot \left(i \cdot c\right)}\right) \]
      7. *-commutative30.8%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + z \cdot \color{blue}{\left(c \cdot i\right)}\right) \]
      8. associate-*l*32.2%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + \color{blue}{\left(z \cdot c\right) \cdot i}\right) \]
      9. distribute-rgt-out35.2%

        \[\leadsto t \cdot \color{blue}{\left(i \cdot \left(\left(-j \cdot y5\right) + z \cdot c\right)\right)} \]
      10. *-commutative35.2%

        \[\leadsto t \cdot \left(i \cdot \left(\left(-j \cdot y5\right) + \color{blue}{c \cdot z}\right)\right) \]
      11. +-commutative35.2%

        \[\leadsto t \cdot \left(i \cdot \color{blue}{\left(c \cdot z + \left(-j \cdot y5\right)\right)}\right) \]
      12. unsub-neg35.2%

        \[\leadsto t \cdot \left(i \cdot \color{blue}{\left(c \cdot z - j \cdot y5\right)}\right) \]
      13. *-commutative35.2%

        \[\leadsto t \cdot \left(i \cdot \left(\color{blue}{z \cdot c} - j \cdot y5\right)\right) \]
      14. *-commutative35.2%

        \[\leadsto t \cdot \left(i \cdot \left(z \cdot c - \color{blue}{y5 \cdot j}\right)\right) \]
    7. Simplified35.2%

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

    if -7.19999999999999947e-219 < y0 < 1.2500000000000001e-115

    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 b around inf 46.5%

      \[\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)} \]
    4. Taylor expanded in y4 around inf 38.8%

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

    if 1.2500000000000001e-115 < y0 < 7.00000000000000046e101

    1. Initial program 38.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 t around inf 44.4%

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

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

    if 7.00000000000000046e101 < y0

    1. Initial program 17.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 37.5%

      \[\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)} \]
    4. Taylor expanded in y0 around inf 48.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y0 \leq -4.5 \cdot 10^{+109}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;y0 \leq -7.2 \cdot 10^{-219}:\\ \;\;\;\;t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right)\right)\\ \mathbf{elif}\;y0 \leq 1.25 \cdot 10^{-115}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{elif}\;y0 \leq 7 \cdot 10^{+101}:\\ \;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 22: 31.0% accurate, 3.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right)\right)\\ \mathbf{if}\;i \leq -3.8 \cdot 10^{-78}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 6.4 \cdot 10^{-140}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;i \leq 3.1 \cdot 10^{+50}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{elif}\;i \leq 1.12 \cdot 10^{+207}:\\ \;\;\;\;t\_1\\ \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
 (let* ((t_1 (* t (* i (- (* z c) (* j y5))))))
   (if (<= i -3.8e-78)
     t_1
     (if (<= i 6.4e-140)
       (* j (* y0 (- (* y3 y5) (* x b))))
       (if (<= i 3.1e+50)
         (* b (* y4 (- (* t j) (* y k))))
         (if (<= i 1.12e+207) t_1 (* 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 t_1 = t * (i * ((z * c) - (j * y5)));
	double tmp;
	if (i <= -3.8e-78) {
		tmp = t_1;
	} else if (i <= 6.4e-140) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (i <= 3.1e+50) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} else if (i <= 1.12e+207) {
		tmp = t_1;
	} 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) :: t_1
    real(8) :: tmp
    t_1 = t * (i * ((z * c) - (j * y5)))
    if (i <= (-3.8d-78)) then
        tmp = t_1
    else if (i <= 6.4d-140) then
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    else if (i <= 3.1d+50) then
        tmp = b * (y4 * ((t * j) - (y * k)))
    else if (i <= 1.12d+207) then
        tmp = t_1
    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 t_1 = t * (i * ((z * c) - (j * y5)));
	double tmp;
	if (i <= -3.8e-78) {
		tmp = t_1;
	} else if (i <= 6.4e-140) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (i <= 3.1e+50) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} else if (i <= 1.12e+207) {
		tmp = t_1;
	} 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):
	t_1 = t * (i * ((z * c) - (j * y5)))
	tmp = 0
	if i <= -3.8e-78:
		tmp = t_1
	elif i <= 6.4e-140:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	elif i <= 3.1e+50:
		tmp = b * (y4 * ((t * j) - (y * k)))
	elif i <= 1.12e+207:
		tmp = t_1
	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)
	t_1 = Float64(t * Float64(i * Float64(Float64(z * c) - Float64(j * y5))))
	tmp = 0.0
	if (i <= -3.8e-78)
		tmp = t_1;
	elseif (i <= 6.4e-140)
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	elseif (i <= 3.1e+50)
		tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k))));
	elseif (i <= 1.12e+207)
		tmp = t_1;
	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)
	t_1 = t * (i * ((z * c) - (j * y5)));
	tmp = 0.0;
	if (i <= -3.8e-78)
		tmp = t_1;
	elseif (i <= 6.4e-140)
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	elseif (i <= 3.1e+50)
		tmp = b * (y4 * ((t * j) - (y * k)));
	elseif (i <= 1.12e+207)
		tmp = t_1;
	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_] := Block[{t$95$1 = N[(t * N[(i * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.8e-78], t$95$1, If[LessEqual[i, 6.4e-140], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.1e+50], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.12e+207], t$95$1, N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{if}\;i \leq -3.8 \cdot 10^{-78}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;i \leq 6.4 \cdot 10^{-140}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\

\mathbf{elif}\;i \leq 3.1 \cdot 10^{+50}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

\mathbf{elif}\;i \leq 1.12 \cdot 10^{+207}:\\
\;\;\;\;t\_1\\

\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 i < -3.7999999999999999e-78 or 3.10000000000000003e50 < i < 1.1199999999999999e207

    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 t around inf 39.6%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in b around 0 37.0%

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

      \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(i \cdot \left(j \cdot y5\right)\right) + c \cdot \left(i \cdot z\right)\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg38.0%

        \[\leadsto t \cdot \left(\color{blue}{\left(-i \cdot \left(j \cdot y5\right)\right)} + c \cdot \left(i \cdot z\right)\right) \]
      2. distribute-rgt-neg-out38.0%

        \[\leadsto t \cdot \left(\color{blue}{i \cdot \left(-j \cdot y5\right)} + c \cdot \left(i \cdot z\right)\right) \]
      3. *-commutative38.0%

        \[\leadsto t \cdot \left(\color{blue}{\left(-j \cdot y5\right) \cdot i} + c \cdot \left(i \cdot z\right)\right) \]
      4. *-commutative38.0%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + c \cdot \color{blue}{\left(z \cdot i\right)}\right) \]
      5. *-commutative38.0%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + \color{blue}{\left(z \cdot i\right) \cdot c}\right) \]
      6. associate-*l*37.9%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + \color{blue}{z \cdot \left(i \cdot c\right)}\right) \]
      7. *-commutative37.9%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + z \cdot \color{blue}{\left(c \cdot i\right)}\right) \]
      8. associate-*l*38.9%

        \[\leadsto t \cdot \left(\left(-j \cdot y5\right) \cdot i + \color{blue}{\left(z \cdot c\right) \cdot i}\right) \]
      9. distribute-rgt-out44.3%

        \[\leadsto t \cdot \color{blue}{\left(i \cdot \left(\left(-j \cdot y5\right) + z \cdot c\right)\right)} \]
      10. *-commutative44.3%

        \[\leadsto t \cdot \left(i \cdot \left(\left(-j \cdot y5\right) + \color{blue}{c \cdot z}\right)\right) \]
      11. +-commutative44.3%

        \[\leadsto t \cdot \left(i \cdot \color{blue}{\left(c \cdot z + \left(-j \cdot y5\right)\right)}\right) \]
      12. unsub-neg44.3%

        \[\leadsto t \cdot \left(i \cdot \color{blue}{\left(c \cdot z - j \cdot y5\right)}\right) \]
      13. *-commutative44.3%

        \[\leadsto t \cdot \left(i \cdot \left(\color{blue}{z \cdot c} - j \cdot y5\right)\right) \]
      14. *-commutative44.3%

        \[\leadsto t \cdot \left(i \cdot \left(z \cdot c - \color{blue}{y5 \cdot j}\right)\right) \]
    7. Simplified44.3%

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

    if -3.7999999999999999e-78 < i < 6.4000000000000003e-140

    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 j around inf 39.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 35.7%

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

    if 6.4000000000000003e-140 < i < 3.10000000000000003e50

    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 b around inf 59.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)} \]
    4. Taylor expanded in y4 around inf 42.3%

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

    if 1.1199999999999999e207 < i

    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 31.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 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 simplification41.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -3.8 \cdot 10^{-78}:\\ \;\;\;\;t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right)\right)\\ \mathbf{elif}\;i \leq 6.4 \cdot 10^{-140}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;i \leq 3.1 \cdot 10^{+50}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{elif}\;i \leq 1.12 \cdot 10^{+207}:\\ \;\;\;\;t \cdot \left(i \cdot \left(z \cdot c - j \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 23: 33.1% accurate, 3.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(c \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\ \mathbf{if}\;c \leq -3.65:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 8.6 \cdot 10^{-305}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{elif}\;c \leq 5.1 \cdot 10^{-118}:\\ \;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;c \leq 3.5 \cdot 10^{+155}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\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 (* t (* c (- (* z i) (* y2 y4))))))
   (if (<= c -3.65)
     t_1
     (if (<= c 8.6e-305)
       (* j (* t (- (* b y4) (* i y5))))
       (if (<= c 5.1e-118)
         (* j (* x (- (* i y1) (* b y0))))
         (if (<= c 3.5e+155) (* b (* y4 (- (* t j) (* y k)))) 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 = t * (c * ((z * i) - (y2 * y4)));
	double tmp;
	if (c <= -3.65) {
		tmp = t_1;
	} else if (c <= 8.6e-305) {
		tmp = j * (t * ((b * y4) - (i * y5)));
	} else if (c <= 5.1e-118) {
		tmp = j * (x * ((i * y1) - (b * y0)));
	} else if (c <= 3.5e+155) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} 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 = t * (c * ((z * i) - (y2 * y4)))
    if (c <= (-3.65d0)) then
        tmp = t_1
    else if (c <= 8.6d-305) then
        tmp = j * (t * ((b * y4) - (i * y5)))
    else if (c <= 5.1d-118) then
        tmp = j * (x * ((i * y1) - (b * y0)))
    else if (c <= 3.5d+155) then
        tmp = b * (y4 * ((t * j) - (y * k)))
    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 = t * (c * ((z * i) - (y2 * y4)));
	double tmp;
	if (c <= -3.65) {
		tmp = t_1;
	} else if (c <= 8.6e-305) {
		tmp = j * (t * ((b * y4) - (i * y5)));
	} else if (c <= 5.1e-118) {
		tmp = j * (x * ((i * y1) - (b * y0)));
	} else if (c <= 3.5e+155) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} 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 = t * (c * ((z * i) - (y2 * y4)))
	tmp = 0
	if c <= -3.65:
		tmp = t_1
	elif c <= 8.6e-305:
		tmp = j * (t * ((b * y4) - (i * y5)))
	elif c <= 5.1e-118:
		tmp = j * (x * ((i * y1) - (b * y0)))
	elif c <= 3.5e+155:
		tmp = b * (y4 * ((t * j) - (y * k)))
	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(t * Float64(c * Float64(Float64(z * i) - Float64(y2 * y4))))
	tmp = 0.0
	if (c <= -3.65)
		tmp = t_1;
	elseif (c <= 8.6e-305)
		tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5))));
	elseif (c <= 5.1e-118)
		tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0))));
	elseif (c <= 3.5e+155)
		tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k))));
	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 = t * (c * ((z * i) - (y2 * y4)));
	tmp = 0.0;
	if (c <= -3.65)
		tmp = t_1;
	elseif (c <= 8.6e-305)
		tmp = j * (t * ((b * y4) - (i * y5)));
	elseif (c <= 5.1e-118)
		tmp = j * (x * ((i * y1) - (b * y0)));
	elseif (c <= 3.5e+155)
		tmp = b * (y4 * ((t * j) - (y * k)));
	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[(t * N[(c * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.65], t$95$1, If[LessEqual[c, 8.6e-305], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.1e-118], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.5e+155], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{if}\;c \leq -3.65:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;c \leq 8.6 \cdot 10^{-305}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\

\mathbf{elif}\;c \leq 5.1 \cdot 10^{-118}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\

\mathbf{elif}\;c \leq 3.5 \cdot 10^{+155}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if c < -3.64999999999999991 or 3.49999999999999985e155 < c

    1. Initial program 29.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 t around inf 44.9%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in c around inf 48.7%

      \[\leadsto t \cdot \color{blue}{\left(c \cdot \left(i \cdot z - y2 \cdot y4\right)\right)} \]

    if -3.64999999999999991 < c < 8.6000000000000004e-305

    1. Initial program 35.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 t around inf 51.9%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in j around inf 38.0%

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

    if 8.6000000000000004e-305 < c < 5.09999999999999964e-118

    1. Initial program 44.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 32.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 x around inf 38.8%

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

    if 5.09999999999999964e-118 < c < 3.49999999999999985e155

    1. Initial program 29.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 38.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)} \]
    4. Taylor expanded in y4 around inf 37.1%

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

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

Alternative 24: 31.6% accurate, 3.1× 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 -4.8 \cdot 10^{+108}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y0 \leq -5 \cdot 10^{-210}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\ \mathbf{elif}\;y0 \leq 3.3 \cdot 10^{-115}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{elif}\;y0 \leq 1.12 \cdot 10^{+67}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\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 -4.8e+108)
     t_1
     (if (<= y0 -5e-210)
       (* a (* b (- (* x y) (* z t))))
       (if (<= y0 3.3e-115)
         (* b (* y4 (- (* t j) (* y k))))
         (if (<= y0 1.12e+67) (* j (* t (- (* b y4) (* i y5)))) 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 <= -4.8e+108) {
		tmp = t_1;
	} else if (y0 <= -5e-210) {
		tmp = a * (b * ((x * y) - (z * t)));
	} else if (y0 <= 3.3e-115) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} else if (y0 <= 1.12e+67) {
		tmp = j * (t * ((b * y4) - (i * y5)));
	} 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 <= (-4.8d+108)) then
        tmp = t_1
    else if (y0 <= (-5d-210)) then
        tmp = a * (b * ((x * y) - (z * t)))
    else if (y0 <= 3.3d-115) then
        tmp = b * (y4 * ((t * j) - (y * k)))
    else if (y0 <= 1.12d+67) then
        tmp = j * (t * ((b * y4) - (i * y5)))
    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 <= -4.8e+108) {
		tmp = t_1;
	} else if (y0 <= -5e-210) {
		tmp = a * (b * ((x * y) - (z * t)));
	} else if (y0 <= 3.3e-115) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} else if (y0 <= 1.12e+67) {
		tmp = j * (t * ((b * y4) - (i * y5)));
	} 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 <= -4.8e+108:
		tmp = t_1
	elif y0 <= -5e-210:
		tmp = a * (b * ((x * y) - (z * t)))
	elif y0 <= 3.3e-115:
		tmp = b * (y4 * ((t * j) - (y * k)))
	elif y0 <= 1.12e+67:
		tmp = j * (t * ((b * y4) - (i * y5)))
	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 <= -4.8e+108)
		tmp = t_1;
	elseif (y0 <= -5e-210)
		tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t))));
	elseif (y0 <= 3.3e-115)
		tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k))));
	elseif (y0 <= 1.12e+67)
		tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5))));
	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 <= -4.8e+108)
		tmp = t_1;
	elseif (y0 <= -5e-210)
		tmp = a * (b * ((x * y) - (z * t)));
	elseif (y0 <= 3.3e-115)
		tmp = b * (y4 * ((t * j) - (y * k)));
	elseif (y0 <= 1.12e+67)
		tmp = j * (t * ((b * y4) - (i * y5)));
	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, -4.8e+108], t$95$1, If[LessEqual[y0, -5e-210], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 3.3e-115], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.12e+67], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $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 -4.8 \cdot 10^{+108}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y0 \leq -5 \cdot 10^{-210}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\

\mathbf{elif}\;y0 \leq 3.3 \cdot 10^{-115}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y0 < -4.80000000000000037e108 or 1.12e67 < y0

    1. Initial program 26.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 46.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 y0 around inf 48.9%

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

    if -4.80000000000000037e108 < y0 < -5.0000000000000002e-210

    1. Initial program 31.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 b around inf 38.1%

      \[\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)} \]
    4. Taylor expanded in a around inf 29.2%

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

    if -5.0000000000000002e-210 < y0 < 3.2999999999999999e-115

    1. Initial program 38.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 45.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)} \]
    4. Taylor expanded in y4 around inf 40.1%

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

    if 3.2999999999999999e-115 < y0 < 1.12e67

    1. Initial program 39.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 t around inf 42.5%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in j around inf 42.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y0 \leq -4.8 \cdot 10^{+108}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;y0 \leq -5 \cdot 10^{-210}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\ \mathbf{elif}\;y0 \leq 3.3 \cdot 10^{-115}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{elif}\;y0 \leq 1.12 \cdot 10^{+67}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 25: 22.1% accurate, 3.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(z \cdot \left(c \cdot i\right)\right)\\ \mathbf{if}\;c \leq -1.65 \cdot 10^{+97}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq -9 \cdot 10^{-202}:\\ \;\;\;\;\left(z \cdot y3\right) \cdot \left(a \cdot y1\right)\\ \mathbf{elif}\;c \leq 3.3 \cdot 10^{-279}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{elif}\;c \leq 1.8 \cdot 10^{+155}:\\ \;\;\;\;y1 \cdot \left(i \cdot \left(z \cdot \left(-k\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 (* t (* z (* c i)))))
   (if (<= c -1.65e+97)
     t_1
     (if (<= c -9e-202)
       (* (* z y3) (* a y1))
       (if (<= c 3.3e-279)
         (* t (* a (* y2 y5)))
         (if (<= c 1.8e+155) (* y1 (* i (* z (- k)))) 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 = t * (z * (c * i));
	double tmp;
	if (c <= -1.65e+97) {
		tmp = t_1;
	} else if (c <= -9e-202) {
		tmp = (z * y3) * (a * y1);
	} else if (c <= 3.3e-279) {
		tmp = t * (a * (y2 * y5));
	} else if (c <= 1.8e+155) {
		tmp = y1 * (i * (z * -k));
	} 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 = t * (z * (c * i))
    if (c <= (-1.65d+97)) then
        tmp = t_1
    else if (c <= (-9d-202)) then
        tmp = (z * y3) * (a * y1)
    else if (c <= 3.3d-279) then
        tmp = t * (a * (y2 * y5))
    else if (c <= 1.8d+155) then
        tmp = y1 * (i * (z * -k))
    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 = t * (z * (c * i));
	double tmp;
	if (c <= -1.65e+97) {
		tmp = t_1;
	} else if (c <= -9e-202) {
		tmp = (z * y3) * (a * y1);
	} else if (c <= 3.3e-279) {
		tmp = t * (a * (y2 * y5));
	} else if (c <= 1.8e+155) {
		tmp = y1 * (i * (z * -k));
	} 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 = t * (z * (c * i))
	tmp = 0
	if c <= -1.65e+97:
		tmp = t_1
	elif c <= -9e-202:
		tmp = (z * y3) * (a * y1)
	elif c <= 3.3e-279:
		tmp = t * (a * (y2 * y5))
	elif c <= 1.8e+155:
		tmp = y1 * (i * (z * -k))
	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(t * Float64(z * Float64(c * i)))
	tmp = 0.0
	if (c <= -1.65e+97)
		tmp = t_1;
	elseif (c <= -9e-202)
		tmp = Float64(Float64(z * y3) * Float64(a * y1));
	elseif (c <= 3.3e-279)
		tmp = Float64(t * Float64(a * Float64(y2 * y5)));
	elseif (c <= 1.8e+155)
		tmp = Float64(y1 * Float64(i * Float64(z * Float64(-k))));
	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 = t * (z * (c * i));
	tmp = 0.0;
	if (c <= -1.65e+97)
		tmp = t_1;
	elseif (c <= -9e-202)
		tmp = (z * y3) * (a * y1);
	elseif (c <= 3.3e-279)
		tmp = t * (a * (y2 * y5));
	elseif (c <= 1.8e+155)
		tmp = y1 * (i * (z * -k));
	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[(t * N[(z * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.65e+97], t$95$1, If[LessEqual[c, -9e-202], N[(N[(z * y3), $MachinePrecision] * N[(a * y1), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.3e-279], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.8e+155], N[(y1 * N[(i * N[(z * (-k)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot \left(z \cdot \left(c \cdot i\right)\right)\\
\mathbf{if}\;c \leq -1.65 \cdot 10^{+97}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;c \leq -9 \cdot 10^{-202}:\\
\;\;\;\;\left(z \cdot y3\right) \cdot \left(a \cdot y1\right)\\

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if c < -1.6500000000000001e97 or 1.80000000000000004e155 < c

    1. Initial program 27.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 t around inf 41.8%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in c around inf 50.7%

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

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

        \[\leadsto t \cdot \left(c \cdot \color{blue}{\left(z \cdot i\right)}\right) \]
      2. *-commutative36.9%

        \[\leadsto t \cdot \color{blue}{\left(\left(z \cdot i\right) \cdot c\right)} \]
      3. associate-*l*42.3%

        \[\leadsto t \cdot \color{blue}{\left(z \cdot \left(i \cdot c\right)\right)} \]
      4. *-commutative42.3%

        \[\leadsto t \cdot \left(z \cdot \color{blue}{\left(c \cdot i\right)}\right) \]
    7. Simplified42.3%

      \[\leadsto t \cdot \color{blue}{\left(z \cdot \left(c \cdot i\right)\right)} \]

    if -1.6500000000000001e97 < c < -9.00000000000000078e-202

    1. Initial program 39.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 y1 around inf 36.0%

      \[\leadsto \color{blue}{y1 \cdot \left(\left(-1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in z around inf 36.5%

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

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

        \[\leadsto \color{blue}{\left(a \cdot y1\right) \cdot \left(y3 \cdot z\right)} \]
      2. *-commutative34.4%

        \[\leadsto \left(a \cdot y1\right) \cdot \color{blue}{\left(z \cdot y3\right)} \]
    7. Simplified34.4%

      \[\leadsto \color{blue}{\left(a \cdot y1\right) \cdot \left(z \cdot y3\right)} \]

    if -9.00000000000000078e-202 < c < 3.3e-279

    1. Initial program 29.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 t around inf 53.4%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in b around 0 33.6%

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

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

    if 3.3e-279 < c < 1.80000000000000004e155

    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 y1 around inf 40.3%

      \[\leadsto \color{blue}{y1 \cdot \left(\left(-1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in z around inf 30.2%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -1.65 \cdot 10^{+97}:\\ \;\;\;\;t \cdot \left(z \cdot \left(c \cdot i\right)\right)\\ \mathbf{elif}\;c \leq -9 \cdot 10^{-202}:\\ \;\;\;\;\left(z \cdot y3\right) \cdot \left(a \cdot y1\right)\\ \mathbf{elif}\;c \leq 3.3 \cdot 10^{-279}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{elif}\;c \leq 1.8 \cdot 10^{+155}:\\ \;\;\;\;y1 \cdot \left(i \cdot \left(z \cdot \left(-k\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(z \cdot \left(c \cdot i\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 26: 30.3% accurate, 3.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -3.15 \cdot 10^{+187}:\\ \;\;\;\;\left(t \cdot b\right) \cdot \left(j \cdot y4 - z \cdot a\right)\\ \mathbf{elif}\;b \leq -1.65 \cdot 10^{-130}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;b \leq 3.5 \cdot 10^{-44}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \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 -3.15e+187)
   (* (* t b) (- (* j y4) (* z a)))
   (if (<= b -1.65e-130)
     (* j (* y0 (- (* y3 y5) (* x b))))
     (if (<= b 3.5e-44)
       (* t (* y2 (- (* a y5) (* c y4))))
       (* t (* j (- (* b y4) (* i 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 <= -3.15e+187) {
		tmp = (t * b) * ((j * y4) - (z * a));
	} else if (b <= -1.65e-130) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (b <= 3.5e-44) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else {
		tmp = t * (j * ((b * y4) - (i * 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 <= (-3.15d+187)) then
        tmp = (t * b) * ((j * y4) - (z * a))
    else if (b <= (-1.65d-130)) then
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    else if (b <= 3.5d-44) then
        tmp = t * (y2 * ((a * y5) - (c * y4)))
    else
        tmp = t * (j * ((b * y4) - (i * 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 <= -3.15e+187) {
		tmp = (t * b) * ((j * y4) - (z * a));
	} else if (b <= -1.65e-130) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (b <= 3.5e-44) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else {
		tmp = t * (j * ((b * y4) - (i * 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 <= -3.15e+187:
		tmp = (t * b) * ((j * y4) - (z * a))
	elif b <= -1.65e-130:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	elif b <= 3.5e-44:
		tmp = t * (y2 * ((a * y5) - (c * y4)))
	else:
		tmp = t * (j * ((b * y4) - (i * 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 <= -3.15e+187)
		tmp = Float64(Float64(t * b) * Float64(Float64(j * y4) - Float64(z * a)));
	elseif (b <= -1.65e-130)
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	elseif (b <= 3.5e-44)
		tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))));
	else
		tmp = Float64(t * Float64(j * Float64(Float64(b * y4) - Float64(i * 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 <= -3.15e+187)
		tmp = (t * b) * ((j * y4) - (z * a));
	elseif (b <= -1.65e-130)
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	elseif (b <= 3.5e-44)
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	else
		tmp = t * (j * ((b * y4) - (i * 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, -3.15e+187], N[(N[(t * b), $MachinePrecision] * N[(N[(j * y4), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.65e-130], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.5e-44], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.15 \cdot 10^{+187}:\\
\;\;\;\;\left(t \cdot b\right) \cdot \left(j \cdot y4 - z \cdot a\right)\\

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

\mathbf{elif}\;b \leq 3.5 \cdot 10^{-44}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if b < -3.15000000000000003e187

    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 t around inf 39.8%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in i around 0 50.5%

      \[\leadsto t \cdot \color{blue}{\left(\left(-1 \cdot \left(a \cdot \left(b \cdot z\right)\right) + \left(b \cdot \left(j \cdot y4\right) + i \cdot \left(-1 \cdot \left(j \cdot y5\right) + c \cdot z\right)\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in b around inf 54.7%

      \[\leadsto \color{blue}{b \cdot \left(t \cdot \left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*54.7%

        \[\leadsto \color{blue}{\left(b \cdot t\right) \cdot \left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)} \]
      2. +-commutative54.7%

        \[\leadsto \left(b \cdot t\right) \cdot \color{blue}{\left(j \cdot y4 + -1 \cdot \left(a \cdot z\right)\right)} \]
      3. mul-1-neg54.7%

        \[\leadsto \left(b \cdot t\right) \cdot \left(j \cdot y4 + \color{blue}{\left(-a \cdot z\right)}\right) \]
      4. unsub-neg54.7%

        \[\leadsto \left(b \cdot t\right) \cdot \color{blue}{\left(j \cdot y4 - a \cdot z\right)} \]
      5. *-commutative54.7%

        \[\leadsto \left(b \cdot t\right) \cdot \left(\color{blue}{y4 \cdot j} - a \cdot z\right) \]
    7. Simplified54.7%

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

    if -3.15000000000000003e187 < b < -1.6499999999999999e-130

    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 j around inf 45.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 y0 around inf 41.9%

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

    if -1.6499999999999999e-130 < b < 3.4999999999999998e-44

    1. Initial program 36.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 t around inf 38.7%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y2 around inf 34.4%

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

    if 3.4999999999999998e-44 < b

    1. Initial program 33.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 t around inf 45.6%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in j around inf 51.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.15 \cdot 10^{+187}:\\ \;\;\;\;\left(t \cdot b\right) \cdot \left(j \cdot y4 - z \cdot a\right)\\ \mathbf{elif}\;b \leq -1.65 \cdot 10^{-130}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;b \leq 3.5 \cdot 10^{-44}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 27: 30.8% accurate, 3.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1.08 \cdot 10^{+188}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\ \mathbf{elif}\;b \leq -3.05 \cdot 10^{-130}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;b \leq 7.3 \cdot 10^{-45}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \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 -1.08e+188)
   (* a (* b (- (* x y) (* z t))))
   (if (<= b -3.05e-130)
     (* j (* y0 (- (* y3 y5) (* x b))))
     (if (<= b 7.3e-45)
       (* t (* y2 (- (* a y5) (* c y4))))
       (* t (* j (- (* b y4) (* i 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 <= -1.08e+188) {
		tmp = a * (b * ((x * y) - (z * t)));
	} else if (b <= -3.05e-130) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (b <= 7.3e-45) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else {
		tmp = t * (j * ((b * y4) - (i * 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 <= (-1.08d+188)) then
        tmp = a * (b * ((x * y) - (z * t)))
    else if (b <= (-3.05d-130)) then
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    else if (b <= 7.3d-45) then
        tmp = t * (y2 * ((a * y5) - (c * y4)))
    else
        tmp = t * (j * ((b * y4) - (i * 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 <= -1.08e+188) {
		tmp = a * (b * ((x * y) - (z * t)));
	} else if (b <= -3.05e-130) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (b <= 7.3e-45) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else {
		tmp = t * (j * ((b * y4) - (i * 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 <= -1.08e+188:
		tmp = a * (b * ((x * y) - (z * t)))
	elif b <= -3.05e-130:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	elif b <= 7.3e-45:
		tmp = t * (y2 * ((a * y5) - (c * y4)))
	else:
		tmp = t * (j * ((b * y4) - (i * 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 <= -1.08e+188)
		tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t))));
	elseif (b <= -3.05e-130)
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	elseif (b <= 7.3e-45)
		tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))));
	else
		tmp = Float64(t * Float64(j * Float64(Float64(b * y4) - Float64(i * 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 <= -1.08e+188)
		tmp = a * (b * ((x * y) - (z * t)));
	elseif (b <= -3.05e-130)
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	elseif (b <= 7.3e-45)
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	else
		tmp = t * (j * ((b * y4) - (i * 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, -1.08e+188], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.05e-130], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.3e-45], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;b \leq 7.3 \cdot 10^{-45}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if b < -1.08000000000000003e188

    1. Initial program 14.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 67.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)} \]
    4. Taylor expanded in a around inf 52.9%

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

    if -1.08000000000000003e188 < b < -3.04999999999999998e-130

    1. Initial program 34.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 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 y0 around inf 41.3%

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

    if -3.04999999999999998e-130 < b < 7.30000000000000062e-45

    1. Initial program 36.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 t around inf 38.7%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in y2 around inf 34.4%

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

    if 7.30000000000000062e-45 < b

    1. Initial program 33.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 t around inf 45.6%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in j around inf 51.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.08 \cdot 10^{+188}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\ \mathbf{elif}\;b \leq -3.05 \cdot 10^{-130}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;b \leq 7.3 \cdot 10^{-45}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 28: 29.4% accurate, 3.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y5 \leq -9 \cdot 10^{+149}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq 2.1 \cdot 10^{-198}:\\ \;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y5 \leq 5 \cdot 10^{+267}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(a \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 (<= y5 -9e+149)
   (* a (* t (* y2 y5)))
   (if (<= y5 2.1e-198)
     (* b (* y0 (- (* z k) (* x j))))
     (if (<= y5 5e+267)
       (* b (* y4 (- (* t j) (* y k))))
       (* t (* a (* 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 (y5 <= -9e+149) {
		tmp = a * (t * (y2 * y5));
	} else if (y5 <= 2.1e-198) {
		tmp = b * (y0 * ((z * k) - (x * j)));
	} else if (y5 <= 5e+267) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} else {
		tmp = t * (a * (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 (y5 <= (-9d+149)) then
        tmp = a * (t * (y2 * y5))
    else if (y5 <= 2.1d-198) then
        tmp = b * (y0 * ((z * k) - (x * j)))
    else if (y5 <= 5d+267) then
        tmp = b * (y4 * ((t * j) - (y * k)))
    else
        tmp = t * (a * (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 (y5 <= -9e+149) {
		tmp = a * (t * (y2 * y5));
	} else if (y5 <= 2.1e-198) {
		tmp = b * (y0 * ((z * k) - (x * j)));
	} else if (y5 <= 5e+267) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} else {
		tmp = t * (a * (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 y5 <= -9e+149:
		tmp = a * (t * (y2 * y5))
	elif y5 <= 2.1e-198:
		tmp = b * (y0 * ((z * k) - (x * j)))
	elif y5 <= 5e+267:
		tmp = b * (y4 * ((t * j) - (y * k)))
	else:
		tmp = t * (a * (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 (y5 <= -9e+149)
		tmp = Float64(a * Float64(t * Float64(y2 * y5)));
	elseif (y5 <= 2.1e-198)
		tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j))));
	elseif (y5 <= 5e+267)
		tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k))));
	else
		tmp = Float64(t * Float64(a * 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 (y5 <= -9e+149)
		tmp = a * (t * (y2 * y5));
	elseif (y5 <= 2.1e-198)
		tmp = b * (y0 * ((z * k) - (x * j)));
	elseif (y5 <= 5e+267)
		tmp = b * (y4 * ((t * j) - (y * k)));
	else
		tmp = t * (a * (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[y5, -9e+149], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.1e-198], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 5e+267], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -9 \cdot 10^{+149}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\

\mathbf{elif}\;y5 \leq 2.1 \cdot 10^{-198}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\

\mathbf{elif}\;y5 \leq 5 \cdot 10^{+267}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y5 < -8.99999999999999965e149

    1. Initial program 32.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 t around inf 54.0%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in a around -inf 54.0%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*54.0%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
      2. mul-1-neg54.0%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right) \]
    6. Simplified54.0%

      \[\leadsto \color{blue}{\left(-a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
    7. Taylor expanded in b around 0 54.1%

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

    if -8.99999999999999965e149 < y5 < 2.09999999999999993e-198

    1. Initial program 33.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 43.3%

      \[\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)} \]
    4. Taylor expanded in y0 around inf 36.4%

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

    if 2.09999999999999993e-198 < y5 < 4.9999999999999999e267

    1. Initial program 35.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 40.5%

      \[\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)} \]
    4. Taylor expanded in y4 around inf 31.7%

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

    if 4.9999999999999999e267 < y5

    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 t around inf 35.7%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in b around 0 42.9%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -9 \cdot 10^{+149}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq 2.1 \cdot 10^{-198}:\\ \;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y5 \leq 5 \cdot 10^{+267}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 29: 26.7% accurate, 4.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y5 \leq -1.5 \cdot 10^{+150}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq 1.9 \cdot 10^{-138}:\\ \;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y5 \leq 10^{+171}:\\ \;\;\;\;y1 \cdot \left(a \cdot \left(z \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(a \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 (<= y5 -1.5e+150)
   (* a (* t (* y2 y5)))
   (if (<= y5 1.9e-138)
     (* b (* y0 (- (* z k) (* x j))))
     (if (<= y5 1e+171) (* y1 (* a (* z y3))) (* t (* a (* 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 (y5 <= -1.5e+150) {
		tmp = a * (t * (y2 * y5));
	} else if (y5 <= 1.9e-138) {
		tmp = b * (y0 * ((z * k) - (x * j)));
	} else if (y5 <= 1e+171) {
		tmp = y1 * (a * (z * y3));
	} else {
		tmp = t * (a * (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 (y5 <= (-1.5d+150)) then
        tmp = a * (t * (y2 * y5))
    else if (y5 <= 1.9d-138) then
        tmp = b * (y0 * ((z * k) - (x * j)))
    else if (y5 <= 1d+171) then
        tmp = y1 * (a * (z * y3))
    else
        tmp = t * (a * (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 (y5 <= -1.5e+150) {
		tmp = a * (t * (y2 * y5));
	} else if (y5 <= 1.9e-138) {
		tmp = b * (y0 * ((z * k) - (x * j)));
	} else if (y5 <= 1e+171) {
		tmp = y1 * (a * (z * y3));
	} else {
		tmp = t * (a * (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 y5 <= -1.5e+150:
		tmp = a * (t * (y2 * y5))
	elif y5 <= 1.9e-138:
		tmp = b * (y0 * ((z * k) - (x * j)))
	elif y5 <= 1e+171:
		tmp = y1 * (a * (z * y3))
	else:
		tmp = t * (a * (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 (y5 <= -1.5e+150)
		tmp = Float64(a * Float64(t * Float64(y2 * y5)));
	elseif (y5 <= 1.9e-138)
		tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j))));
	elseif (y5 <= 1e+171)
		tmp = Float64(y1 * Float64(a * Float64(z * y3)));
	else
		tmp = Float64(t * Float64(a * 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 (y5 <= -1.5e+150)
		tmp = a * (t * (y2 * y5));
	elseif (y5 <= 1.9e-138)
		tmp = b * (y0 * ((z * k) - (x * j)));
	elseif (y5 <= 1e+171)
		tmp = y1 * (a * (z * y3));
	else
		tmp = t * (a * (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[y5, -1.5e+150], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.9e-138], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1e+171], N[(y1 * N[(a * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -1.5 \cdot 10^{+150}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\

\mathbf{elif}\;y5 \leq 1.9 \cdot 10^{-138}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\

\mathbf{elif}\;y5 \leq 10^{+171}:\\
\;\;\;\;y1 \cdot \left(a \cdot \left(z \cdot y3\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y5 < -1.50000000000000006e150

    1. Initial program 32.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 t around inf 54.0%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in a around -inf 54.0%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*54.0%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
      2. mul-1-neg54.0%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right) \]
    6. Simplified54.0%

      \[\leadsto \color{blue}{\left(-a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
    7. Taylor expanded in b around 0 54.1%

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

    if -1.50000000000000006e150 < y5 < 1.9000000000000001e-138

    1. Initial program 34.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 b around inf 45.1%

      \[\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)} \]
    4. Taylor expanded in y0 around inf 35.7%

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

    if 1.9000000000000001e-138 < y5 < 9.99999999999999954e170

    1. Initial program 40.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 y1 around inf 39.5%

      \[\leadsto \color{blue}{y1 \cdot \left(\left(-1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in z around inf 35.3%

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

      \[\leadsto y1 \cdot \color{blue}{\left(a \cdot \left(y3 \cdot z\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative28.6%

        \[\leadsto y1 \cdot \left(a \cdot \color{blue}{\left(z \cdot y3\right)}\right) \]
    7. Simplified28.6%

      \[\leadsto y1 \cdot \color{blue}{\left(a \cdot \left(z \cdot y3\right)\right)} \]

    if 9.99999999999999954e170 < y5

    1. Initial program 16.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 t around inf 30.7%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in b around 0 36.3%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -1.5 \cdot 10^{+150}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq 1.9 \cdot 10^{-138}:\\ \;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y5 \leq 10^{+171}:\\ \;\;\;\;y1 \cdot \left(a \cdot \left(z \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 30: 22.8% accurate, 4.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(z \cdot \left(c \cdot i\right)\right)\\ \mathbf{if}\;c \leq -6.8 \cdot 10^{+100}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq -7.2 \cdot 10^{-199}:\\ \;\;\;\;\left(z \cdot y3\right) \cdot \left(a \cdot y1\right)\\ \mathbf{elif}\;c \leq 5.4 \cdot 10^{+167}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\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 (* t (* z (* c i)))))
   (if (<= c -6.8e+100)
     t_1
     (if (<= c -7.2e-199)
       (* (* z y3) (* a y1))
       (if (<= c 5.4e+167) (* t (* a (* y2 y5))) 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 = t * (z * (c * i));
	double tmp;
	if (c <= -6.8e+100) {
		tmp = t_1;
	} else if (c <= -7.2e-199) {
		tmp = (z * y3) * (a * y1);
	} else if (c <= 5.4e+167) {
		tmp = t * (a * (y2 * y5));
	} 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 = t * (z * (c * i))
    if (c <= (-6.8d+100)) then
        tmp = t_1
    else if (c <= (-7.2d-199)) then
        tmp = (z * y3) * (a * y1)
    else if (c <= 5.4d+167) then
        tmp = t * (a * (y2 * y5))
    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 = t * (z * (c * i));
	double tmp;
	if (c <= -6.8e+100) {
		tmp = t_1;
	} else if (c <= -7.2e-199) {
		tmp = (z * y3) * (a * y1);
	} else if (c <= 5.4e+167) {
		tmp = t * (a * (y2 * y5));
	} 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 = t * (z * (c * i))
	tmp = 0
	if c <= -6.8e+100:
		tmp = t_1
	elif c <= -7.2e-199:
		tmp = (z * y3) * (a * y1)
	elif c <= 5.4e+167:
		tmp = t * (a * (y2 * y5))
	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(t * Float64(z * Float64(c * i)))
	tmp = 0.0
	if (c <= -6.8e+100)
		tmp = t_1;
	elseif (c <= -7.2e-199)
		tmp = Float64(Float64(z * y3) * Float64(a * y1));
	elseif (c <= 5.4e+167)
		tmp = Float64(t * Float64(a * Float64(y2 * y5)));
	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 = t * (z * (c * i));
	tmp = 0.0;
	if (c <= -6.8e+100)
		tmp = t_1;
	elseif (c <= -7.2e-199)
		tmp = (z * y3) * (a * y1);
	elseif (c <= 5.4e+167)
		tmp = t * (a * (y2 * y5));
	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[(t * N[(z * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -6.8e+100], t$95$1, If[LessEqual[c, -7.2e-199], N[(N[(z * y3), $MachinePrecision] * N[(a * y1), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.4e+167], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot \left(z \cdot \left(c \cdot i\right)\right)\\
\mathbf{if}\;c \leq -6.8 \cdot 10^{+100}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;c \leq -7.2 \cdot 10^{-199}:\\
\;\;\;\;\left(z \cdot y3\right) \cdot \left(a \cdot y1\right)\\

\mathbf{elif}\;c \leq 5.4 \cdot 10^{+167}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if c < -6.79999999999999988e100 or 5.4000000000000001e167 < c

    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 t around inf 41.3%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in c around inf 49.2%

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

      \[\leadsto t \cdot \color{blue}{\left(c \cdot \left(i \cdot z\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative37.6%

        \[\leadsto t \cdot \left(c \cdot \color{blue}{\left(z \cdot i\right)}\right) \]
      2. *-commutative37.6%

        \[\leadsto t \cdot \color{blue}{\left(\left(z \cdot i\right) \cdot c\right)} \]
      3. associate-*l*43.4%

        \[\leadsto t \cdot \color{blue}{\left(z \cdot \left(i \cdot c\right)\right)} \]
      4. *-commutative43.4%

        \[\leadsto t \cdot \left(z \cdot \color{blue}{\left(c \cdot i\right)}\right) \]
    7. Simplified43.4%

      \[\leadsto t \cdot \color{blue}{\left(z \cdot \left(c \cdot i\right)\right)} \]

    if -6.79999999999999988e100 < c < -7.2000000000000003e-199

    1. Initial program 39.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 y1 around inf 36.0%

      \[\leadsto \color{blue}{y1 \cdot \left(\left(-1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in z around inf 36.5%

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

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

        \[\leadsto \color{blue}{\left(a \cdot y1\right) \cdot \left(y3 \cdot z\right)} \]
      2. *-commutative34.4%

        \[\leadsto \left(a \cdot y1\right) \cdot \color{blue}{\left(z \cdot y3\right)} \]
    7. Simplified34.4%

      \[\leadsto \color{blue}{\left(a \cdot y1\right) \cdot \left(z \cdot y3\right)} \]

    if -7.2000000000000003e-199 < c < 5.4000000000000001e167

    1. Initial program 31.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 t around inf 35.4%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in b around 0 24.0%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -6.8 \cdot 10^{+100}:\\ \;\;\;\;t \cdot \left(z \cdot \left(c \cdot i\right)\right)\\ \mathbf{elif}\;c \leq -7.2 \cdot 10^{-199}:\\ \;\;\;\;\left(z \cdot y3\right) \cdot \left(a \cdot y1\right)\\ \mathbf{elif}\;c \leq 5.4 \cdot 10^{+167}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(z \cdot \left(c \cdot i\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 31: 22.8% accurate, 4.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(z \cdot \left(c \cdot i\right)\right)\\ \mathbf{if}\;c \leq -1.75 \cdot 10^{+97}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq -4.5 \cdot 10^{-210}:\\ \;\;\;\;y1 \cdot \left(a \cdot \left(z \cdot y3\right)\right)\\ \mathbf{elif}\;c \leq 1.05 \cdot 10^{+167}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\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 (* t (* z (* c i)))))
   (if (<= c -1.75e+97)
     t_1
     (if (<= c -4.5e-210)
       (* y1 (* a (* z y3)))
       (if (<= c 1.05e+167) (* t (* a (* y2 y5))) 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 = t * (z * (c * i));
	double tmp;
	if (c <= -1.75e+97) {
		tmp = t_1;
	} else if (c <= -4.5e-210) {
		tmp = y1 * (a * (z * y3));
	} else if (c <= 1.05e+167) {
		tmp = t * (a * (y2 * y5));
	} 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 = t * (z * (c * i))
    if (c <= (-1.75d+97)) then
        tmp = t_1
    else if (c <= (-4.5d-210)) then
        tmp = y1 * (a * (z * y3))
    else if (c <= 1.05d+167) then
        tmp = t * (a * (y2 * y5))
    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 = t * (z * (c * i));
	double tmp;
	if (c <= -1.75e+97) {
		tmp = t_1;
	} else if (c <= -4.5e-210) {
		tmp = y1 * (a * (z * y3));
	} else if (c <= 1.05e+167) {
		tmp = t * (a * (y2 * y5));
	} 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 = t * (z * (c * i))
	tmp = 0
	if c <= -1.75e+97:
		tmp = t_1
	elif c <= -4.5e-210:
		tmp = y1 * (a * (z * y3))
	elif c <= 1.05e+167:
		tmp = t * (a * (y2 * y5))
	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(t * Float64(z * Float64(c * i)))
	tmp = 0.0
	if (c <= -1.75e+97)
		tmp = t_1;
	elseif (c <= -4.5e-210)
		tmp = Float64(y1 * Float64(a * Float64(z * y3)));
	elseif (c <= 1.05e+167)
		tmp = Float64(t * Float64(a * Float64(y2 * y5)));
	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 = t * (z * (c * i));
	tmp = 0.0;
	if (c <= -1.75e+97)
		tmp = t_1;
	elseif (c <= -4.5e-210)
		tmp = y1 * (a * (z * y3));
	elseif (c <= 1.05e+167)
		tmp = t * (a * (y2 * y5));
	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[(t * N[(z * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.75e+97], t$95$1, If[LessEqual[c, -4.5e-210], N[(y1 * N[(a * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.05e+167], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot \left(z \cdot \left(c \cdot i\right)\right)\\
\mathbf{if}\;c \leq -1.75 \cdot 10^{+97}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;c \leq -4.5 \cdot 10^{-210}:\\
\;\;\;\;y1 \cdot \left(a \cdot \left(z \cdot y3\right)\right)\\

\mathbf{elif}\;c \leq 1.05 \cdot 10^{+167}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if c < -1.75e97 or 1.05e167 < c

    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 t around inf 41.3%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in c around inf 49.2%

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

      \[\leadsto t \cdot \color{blue}{\left(c \cdot \left(i \cdot z\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative37.6%

        \[\leadsto t \cdot \left(c \cdot \color{blue}{\left(z \cdot i\right)}\right) \]
      2. *-commutative37.6%

        \[\leadsto t \cdot \color{blue}{\left(\left(z \cdot i\right) \cdot c\right)} \]
      3. associate-*l*43.4%

        \[\leadsto t \cdot \color{blue}{\left(z \cdot \left(i \cdot c\right)\right)} \]
      4. *-commutative43.4%

        \[\leadsto t \cdot \left(z \cdot \color{blue}{\left(c \cdot i\right)}\right) \]
    7. Simplified43.4%

      \[\leadsto t \cdot \color{blue}{\left(z \cdot \left(c \cdot i\right)\right)} \]

    if -1.75e97 < c < -4.5000000000000002e-210

    1. Initial program 39.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 y1 around inf 36.0%

      \[\leadsto \color{blue}{y1 \cdot \left(\left(-1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in z around inf 36.5%

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

      \[\leadsto y1 \cdot \color{blue}{\left(a \cdot \left(y3 \cdot z\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative31.5%

        \[\leadsto y1 \cdot \left(a \cdot \color{blue}{\left(z \cdot y3\right)}\right) \]
    7. Simplified31.5%

      \[\leadsto y1 \cdot \color{blue}{\left(a \cdot \left(z \cdot y3\right)\right)} \]

    if -4.5000000000000002e-210 < c < 1.05e167

    1. Initial program 31.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 t around inf 35.4%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in b around 0 24.0%

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

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

Alternative 32: 22.9% accurate, 4.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(z \cdot \left(c \cdot i\right)\right)\\ \mathbf{if}\;c \leq -3 \cdot 10^{+102}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq -8.5 \cdot 10^{-203}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{elif}\;c \leq 7.5 \cdot 10^{+168}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\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 (* t (* z (* c i)))))
   (if (<= c -3e+102)
     t_1
     (if (<= c -8.5e-203)
       (* a (* y1 (* z y3)))
       (if (<= c 7.5e+168) (* t (* a (* y2 y5))) 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 = t * (z * (c * i));
	double tmp;
	if (c <= -3e+102) {
		tmp = t_1;
	} else if (c <= -8.5e-203) {
		tmp = a * (y1 * (z * y3));
	} else if (c <= 7.5e+168) {
		tmp = t * (a * (y2 * y5));
	} 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 = t * (z * (c * i))
    if (c <= (-3d+102)) then
        tmp = t_1
    else if (c <= (-8.5d-203)) then
        tmp = a * (y1 * (z * y3))
    else if (c <= 7.5d+168) then
        tmp = t * (a * (y2 * y5))
    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 = t * (z * (c * i));
	double tmp;
	if (c <= -3e+102) {
		tmp = t_1;
	} else if (c <= -8.5e-203) {
		tmp = a * (y1 * (z * y3));
	} else if (c <= 7.5e+168) {
		tmp = t * (a * (y2 * y5));
	} 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 = t * (z * (c * i))
	tmp = 0
	if c <= -3e+102:
		tmp = t_1
	elif c <= -8.5e-203:
		tmp = a * (y1 * (z * y3))
	elif c <= 7.5e+168:
		tmp = t * (a * (y2 * y5))
	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(t * Float64(z * Float64(c * i)))
	tmp = 0.0
	if (c <= -3e+102)
		tmp = t_1;
	elseif (c <= -8.5e-203)
		tmp = Float64(a * Float64(y1 * Float64(z * y3)));
	elseif (c <= 7.5e+168)
		tmp = Float64(t * Float64(a * Float64(y2 * y5)));
	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 = t * (z * (c * i));
	tmp = 0.0;
	if (c <= -3e+102)
		tmp = t_1;
	elseif (c <= -8.5e-203)
		tmp = a * (y1 * (z * y3));
	elseif (c <= 7.5e+168)
		tmp = t * (a * (y2 * y5));
	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[(t * N[(z * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3e+102], t$95$1, If[LessEqual[c, -8.5e-203], N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.5e+168], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot \left(z \cdot \left(c \cdot i\right)\right)\\
\mathbf{if}\;c \leq -3 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;c \leq -8.5 \cdot 10^{-203}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\

\mathbf{elif}\;c \leq 7.5 \cdot 10^{+168}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if c < -2.9999999999999998e102 or 7.4999999999999999e168 < c

    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 t around inf 41.3%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in c around inf 49.2%

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

      \[\leadsto t \cdot \color{blue}{\left(c \cdot \left(i \cdot z\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative37.6%

        \[\leadsto t \cdot \left(c \cdot \color{blue}{\left(z \cdot i\right)}\right) \]
      2. *-commutative37.6%

        \[\leadsto t \cdot \color{blue}{\left(\left(z \cdot i\right) \cdot c\right)} \]
      3. associate-*l*43.4%

        \[\leadsto t \cdot \color{blue}{\left(z \cdot \left(i \cdot c\right)\right)} \]
      4. *-commutative43.4%

        \[\leadsto t \cdot \left(z \cdot \color{blue}{\left(c \cdot i\right)}\right) \]
    7. Simplified43.4%

      \[\leadsto t \cdot \color{blue}{\left(z \cdot \left(c \cdot i\right)\right)} \]

    if -2.9999999999999998e102 < c < -8.50000000000000031e-203

    1. Initial program 39.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 y1 around inf 36.0%

      \[\leadsto \color{blue}{y1 \cdot \left(\left(-1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in z around inf 36.5%

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

      \[\leadsto \color{blue}{a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)} \]

    if -8.50000000000000031e-203 < c < 7.4999999999999999e168

    1. Initial program 31.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 t around inf 35.4%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in b around 0 24.0%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -3 \cdot 10^{+102}:\\ \;\;\;\;t \cdot \left(z \cdot \left(c \cdot i\right)\right)\\ \mathbf{elif}\;c \leq -8.5 \cdot 10^{-203}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{elif}\;c \leq 7.5 \cdot 10^{+168}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(z \cdot \left(c \cdot i\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 33: 22.0% accurate, 4.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{if}\;y2 \leq -1.25 \cdot 10^{+204}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y2 \leq -1.05 \cdot 10^{-98}:\\ \;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\ \mathbf{elif}\;y2 \leq 6.5 \cdot 10^{-10}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\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 (* t (* a (* y2 y5)))))
   (if (<= y2 -1.25e+204)
     t_1
     (if (<= y2 -1.05e-98)
       (* c (* i (* z t)))
       (if (<= y2 6.5e-10) (* a (* y1 (* z y3))) 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 = t * (a * (y2 * y5));
	double tmp;
	if (y2 <= -1.25e+204) {
		tmp = t_1;
	} else if (y2 <= -1.05e-98) {
		tmp = c * (i * (z * t));
	} else if (y2 <= 6.5e-10) {
		tmp = a * (y1 * (z * y3));
	} 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 = t * (a * (y2 * y5))
    if (y2 <= (-1.25d+204)) then
        tmp = t_1
    else if (y2 <= (-1.05d-98)) then
        tmp = c * (i * (z * t))
    else if (y2 <= 6.5d-10) then
        tmp = a * (y1 * (z * y3))
    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 = t * (a * (y2 * y5));
	double tmp;
	if (y2 <= -1.25e+204) {
		tmp = t_1;
	} else if (y2 <= -1.05e-98) {
		tmp = c * (i * (z * t));
	} else if (y2 <= 6.5e-10) {
		tmp = a * (y1 * (z * y3));
	} 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 = t * (a * (y2 * y5))
	tmp = 0
	if y2 <= -1.25e+204:
		tmp = t_1
	elif y2 <= -1.05e-98:
		tmp = c * (i * (z * t))
	elif y2 <= 6.5e-10:
		tmp = a * (y1 * (z * y3))
	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(t * Float64(a * Float64(y2 * y5)))
	tmp = 0.0
	if (y2 <= -1.25e+204)
		tmp = t_1;
	elseif (y2 <= -1.05e-98)
		tmp = Float64(c * Float64(i * Float64(z * t)));
	elseif (y2 <= 6.5e-10)
		tmp = Float64(a * Float64(y1 * Float64(z * y3)));
	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 = t * (a * (y2 * y5));
	tmp = 0.0;
	if (y2 <= -1.25e+204)
		tmp = t_1;
	elseif (y2 <= -1.05e-98)
		tmp = c * (i * (z * t));
	elseif (y2 <= 6.5e-10)
		tmp = a * (y1 * (z * y3));
	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[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.25e+204], t$95$1, If[LessEqual[y2, -1.05e-98], N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6.5e-10], N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

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

\mathbf{elif}\;y2 \leq -1.05 \cdot 10^{-98}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\

\mathbf{elif}\;y2 \leq 6.5 \cdot 10^{-10}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y2 < -1.25000000000000002e204 or 6.5000000000000003e-10 < y2

    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 t around inf 39.2%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in b around 0 34.9%

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

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

    if -1.25000000000000002e204 < y2 < -1.04999999999999996e-98

    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 t around inf 37.7%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in c around inf 33.7%

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

      \[\leadsto \color{blue}{c \cdot \left(i \cdot \left(t \cdot z\right)\right)} \]

    if -1.04999999999999996e-98 < y2 < 6.5000000000000003e-10

    1. Initial program 36.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 y1 around inf 36.8%

      \[\leadsto \color{blue}{y1 \cdot \left(\left(-1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in z around inf 30.3%

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

      \[\leadsto \color{blue}{a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification30.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -1.25 \cdot 10^{+204}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq -1.05 \cdot 10^{-98}:\\ \;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\ \mathbf{elif}\;y2 \leq 6.5 \cdot 10^{-10}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 34: 21.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}\;y2 \leq -1.22 \cdot 10^{+204}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y2 \leq -2.35 \cdot 10^{-99}:\\ \;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\ \mathbf{elif}\;y2 \leq 4.7 \cdot 10^{+80}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\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 (<= y2 -1.22e+204)
     t_1
     (if (<= y2 -2.35e-99)
       (* c (* i (* z t)))
       (if (<= y2 4.7e+80) (* a (* y1 (* z y3))) 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 (y2 <= -1.22e+204) {
		tmp = t_1;
	} else if (y2 <= -2.35e-99) {
		tmp = c * (i * (z * t));
	} else if (y2 <= 4.7e+80) {
		tmp = a * (y1 * (z * y3));
	} 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 (y2 <= (-1.22d+204)) then
        tmp = t_1
    else if (y2 <= (-2.35d-99)) then
        tmp = c * (i * (z * t))
    else if (y2 <= 4.7d+80) then
        tmp = a * (y1 * (z * y3))
    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 (y2 <= -1.22e+204) {
		tmp = t_1;
	} else if (y2 <= -2.35e-99) {
		tmp = c * (i * (z * t));
	} else if (y2 <= 4.7e+80) {
		tmp = a * (y1 * (z * y3));
	} 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 y2 <= -1.22e+204:
		tmp = t_1
	elif y2 <= -2.35e-99:
		tmp = c * (i * (z * t))
	elif y2 <= 4.7e+80:
		tmp = a * (y1 * (z * y3))
	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 (y2 <= -1.22e+204)
		tmp = t_1;
	elseif (y2 <= -2.35e-99)
		tmp = Float64(c * Float64(i * Float64(z * t)));
	elseif (y2 <= 4.7e+80)
		tmp = Float64(a * Float64(y1 * Float64(z * y3)));
	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 (y2 <= -1.22e+204)
		tmp = t_1;
	elseif (y2 <= -2.35e-99)
		tmp = c * (i * (z * t));
	elseif (y2 <= 4.7e+80)
		tmp = a * (y1 * (z * y3));
	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[y2, -1.22e+204], t$95$1, If[LessEqual[y2, -2.35e-99], N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.7e+80], N[(a * N[(y1 * N[(z * y3), $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}\;y2 \leq -1.22 \cdot 10^{+204}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y2 \leq -2.35 \cdot 10^{-99}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\

\mathbf{elif}\;y2 \leq 4.7 \cdot 10^{+80}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y2 < -1.22000000000000003e204 or 4.70000000000000009e80 < y2

    1. Initial program 25.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 t around inf 44.1%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in a around -inf 48.6%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*48.6%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
      2. mul-1-neg48.6%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right) \]
    6. Simplified48.6%

      \[\leadsto \color{blue}{\left(-a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
    7. Taylor expanded in b around 0 41.6%

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

    if -1.22000000000000003e204 < y2 < -2.34999999999999995e-99

    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 t around inf 37.7%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in c around inf 33.7%

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

      \[\leadsto \color{blue}{c \cdot \left(i \cdot \left(t \cdot z\right)\right)} \]

    if -2.34999999999999995e-99 < y2 < 4.70000000000000009e80

    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 y1 around inf 36.8%

      \[\leadsto \color{blue}{y1 \cdot \left(\left(-1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in z around inf 29.2%

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

      \[\leadsto \color{blue}{a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification30.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -1.22 \cdot 10^{+204}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq -2.35 \cdot 10^{-99}:\\ \;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\ \mathbf{elif}\;y2 \leq 4.7 \cdot 10^{+80}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 35: 22.7% accurate, 5.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y2 \leq -1.9 \cdot 10^{-26} \lor \neg \left(y2 \leq 4.55 \cdot 10^{+80}\right):\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\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 (<= y2 -1.9e-26) (not (<= y2 4.55e+80)))
   (* a (* t (* y2 y5)))
   (* a (* y1 (* z y3)))))
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 ((y2 <= -1.9e-26) || !(y2 <= 4.55e+80)) {
		tmp = a * (t * (y2 * y5));
	} else {
		tmp = a * (y1 * (z * y3));
	}
	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 ((y2 <= (-1.9d-26)) .or. (.not. (y2 <= 4.55d+80))) then
        tmp = a * (t * (y2 * y5))
    else
        tmp = a * (y1 * (z * y3))
    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 ((y2 <= -1.9e-26) || !(y2 <= 4.55e+80)) {
		tmp = a * (t * (y2 * y5));
	} else {
		tmp = a * (y1 * (z * y3));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if (y2 <= -1.9e-26) or not (y2 <= 4.55e+80):
		tmp = a * (t * (y2 * y5))
	else:
		tmp = a * (y1 * (z * y3))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if ((y2 <= -1.9e-26) || !(y2 <= 4.55e+80))
		tmp = Float64(a * Float64(t * Float64(y2 * y5)));
	else
		tmp = Float64(a * Float64(y1 * Float64(z * y3)));
	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 ((y2 <= -1.9e-26) || ~((y2 <= 4.55e+80)))
		tmp = a * (t * (y2 * y5));
	else
		tmp = a * (y1 * (z * y3));
	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[y2, -1.9e-26], N[Not[LessEqual[y2, 4.55e+80]], $MachinePrecision]], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -1.9 \cdot 10^{-26} \lor \neg \left(y2 \leq 4.55 \cdot 10^{+80}\right):\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y2 < -1.90000000000000007e-26 or 4.55000000000000007e80 < y2

    1. Initial program 28.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 t around inf 42.7%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in a around -inf 38.0%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*38.0%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
      2. mul-1-neg38.0%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right) \]
    6. Simplified38.0%

      \[\leadsto \color{blue}{\left(-a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
    7. Taylor expanded in b around 0 32.9%

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

    if -1.90000000000000007e-26 < y2 < 4.55000000000000007e80

    1. Initial program 36.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 y1 around inf 37.6%

      \[\leadsto \color{blue}{y1 \cdot \left(\left(-1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    4. Taylor expanded in z around inf 27.9%

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

      \[\leadsto \color{blue}{a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification28.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -1.9 \cdot 10^{-26} \lor \neg \left(y2 \leq 4.55 \cdot 10^{+80}\right):\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 36: 20.0% accurate, 7.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -4.8 \cdot 10^{+50}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\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 -4.8e+50) (* a (* (* x y) b)) (* 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 <= -4.8e+50) {
		tmp = a * ((x * y) * b);
	} 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 <= (-4.8d+50)) then
        tmp = a * ((x * y) * b)
    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 <= -4.8e+50) {
		tmp = a * ((x * y) * b);
	} 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 <= -4.8e+50:
		tmp = a * ((x * y) * b)
	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 <= -4.8e+50)
		tmp = Float64(a * Float64(Float64(x * y) * b));
	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 <= -4.8e+50)
		tmp = a * ((x * y) * b);
	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, -4.8e+50], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.8 \cdot 10^{+50}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\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 < -4.8000000000000004e50

    1. Initial program 26.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 b around inf 53.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)} \]
    4. Taylor expanded in a around inf 40.5%

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

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

    if -4.8000000000000004e50 < b

    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 t around inf 41.0%

      \[\leadsto \color{blue}{t \cdot \left(\left(-1 \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    4. Taylor expanded in a around -inf 27.1%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*27.1%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
      2. mul-1-neg27.1%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right) \]
    6. Simplified27.1%

      \[\leadsto \color{blue}{\left(-a\right) \cdot \left(t \cdot \left(b \cdot z - y2 \cdot y5\right)\right)} \]
    7. Taylor expanded in b around 0 23.0%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -4.8 \cdot 10^{+50}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 37: 17.2% 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 33.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 38.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)} \]
  4. Taylor expanded in a around inf 23.2%

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

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

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

Developer Target 1: 28.3% 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 2024146 
(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)))))