Linear.Matrix:det44 from linear-1.19.1.3

Percentage Accurate: 29.9% → 41.6%
Time: 47.2s
Alternatives: 38
Speedup: 4.5×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 38 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: 29.9% 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.6% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot i - a \cdot b\\ t_2 := b \cdot y0 - i \cdot y1\\ t_3 := b \cdot y4 - i \cdot y5\\ \mathbf{if}\;y2 \leq -1.05 \cdot 10^{+178}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -8 \cdot 10^{-20}:\\ \;\;\;\;k \cdot \left(z \cdot t\_2 - \left(y \cdot t\_3 + y2 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\right)\\ \mathbf{elif}\;y2 \leq -1.2 \cdot 10^{-56}:\\ \;\;\;\;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}\;y2 \leq 3.5 \cdot 10^{-272}:\\ \;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) + y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 1.9 \cdot 10^{-94}:\\ \;\;\;\;z \cdot \left(k \cdot t\_2 + \left(t \cdot t\_1 + y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 3.6 \cdot 10^{+47}:\\ \;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot t\_3 + x \cdot t\_1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \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
 (let* ((t_1 (- (* c i) (* a b)))
        (t_2 (- (* b y0) (* i y1)))
        (t_3 (- (* b y4) (* i y5))))
   (if (<= y2 -1.05e+178)
     (* c (* y2 (- (* x y0) (* t y4))))
     (if (<= y2 -8e-20)
       (* k (- (* z t_2) (+ (* y t_3) (* y2 (- (* y0 y5) (* y1 y4))))))
       (if (<= y2 -1.2e-56)
         (*
          y4
          (+
           (+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
           (* c (- (* y y3) (* t y2)))))
         (if (<= y2 3.5e-272)
           (*
            i
            (+
             (* y1 (- (* x j) (* z k)))
             (+ (* c (- (* z t) (* x y))) (* y5 (- (* y k) (* t j))))))
           (if (<= y2 1.9e-94)
             (* z (+ (* k t_2) (+ (* t t_1) (* y3 (- (* a y1) (* c y0))))))
             (if (<= y2 3.6e+47)
               (* y (- (* y3 (- (* c y4) (* a y5))) (+ (* k t_3) (* x t_1))))
               (*
                y2
                (+
                 (+ (* x (- (* c y0) (* a y1))) (* k (- (* y1 y4) (* y0 y5))))
                 (* t (- (* a y5) (* c y4)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (c * i) - (a * b);
	double t_2 = (b * y0) - (i * y1);
	double t_3 = (b * y4) - (i * y5);
	double tmp;
	if (y2 <= -1.05e+178) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -8e-20) {
		tmp = k * ((z * t_2) - ((y * t_3) + (y2 * ((y0 * y5) - (y1 * y4)))));
	} else if (y2 <= -1.2e-56) {
		tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	} else if (y2 <= 3.5e-272) {
		tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))));
	} else if (y2 <= 1.9e-94) {
		tmp = z * ((k * t_2) + ((t * t_1) + (y3 * ((a * y1) - (c * y0)))));
	} else if (y2 <= 3.6e+47) {
		tmp = y * ((y3 * ((c * y4) - (a * y5))) - ((k * t_3) + (x * t_1)));
	} else {
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = (c * i) - (a * b)
    t_2 = (b * y0) - (i * y1)
    t_3 = (b * y4) - (i * y5)
    if (y2 <= (-1.05d+178)) then
        tmp = c * (y2 * ((x * y0) - (t * y4)))
    else if (y2 <= (-8d-20)) then
        tmp = k * ((z * t_2) - ((y * t_3) + (y2 * ((y0 * y5) - (y1 * y4)))))
    else if (y2 <= (-1.2d-56)) then
        tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
    else if (y2 <= 3.5d-272) then
        tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))))
    else if (y2 <= 1.9d-94) then
        tmp = z * ((k * t_2) + ((t * t_1) + (y3 * ((a * y1) - (c * y0)))))
    else if (y2 <= 3.6d+47) then
        tmp = y * ((y3 * ((c * y4) - (a * y5))) - ((k * t_3) + (x * t_1)))
    else
        tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (c * i) - (a * b);
	double t_2 = (b * y0) - (i * y1);
	double t_3 = (b * y4) - (i * y5);
	double tmp;
	if (y2 <= -1.05e+178) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -8e-20) {
		tmp = k * ((z * t_2) - ((y * t_3) + (y2 * ((y0 * y5) - (y1 * y4)))));
	} else if (y2 <= -1.2e-56) {
		tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	} else if (y2 <= 3.5e-272) {
		tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))));
	} else if (y2 <= 1.9e-94) {
		tmp = z * ((k * t_2) + ((t * t_1) + (y3 * ((a * y1) - (c * y0)))));
	} else if (y2 <= 3.6e+47) {
		tmp = y * ((y3 * ((c * y4) - (a * y5))) - ((k * t_3) + (x * t_1)));
	} else {
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = (c * i) - (a * b)
	t_2 = (b * y0) - (i * y1)
	t_3 = (b * y4) - (i * y5)
	tmp = 0
	if y2 <= -1.05e+178:
		tmp = c * (y2 * ((x * y0) - (t * y4)))
	elif y2 <= -8e-20:
		tmp = k * ((z * t_2) - ((y * t_3) + (y2 * ((y0 * y5) - (y1 * y4)))))
	elif y2 <= -1.2e-56:
		tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
	elif y2 <= 3.5e-272:
		tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))))
	elif y2 <= 1.9e-94:
		tmp = z * ((k * t_2) + ((t * t_1) + (y3 * ((a * y1) - (c * y0)))))
	elif y2 <= 3.6e+47:
		tmp = y * ((y3 * ((c * y4) - (a * y5))) - ((k * t_3) + (x * t_1)))
	else:
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(c * i) - Float64(a * b))
	t_2 = Float64(Float64(b * y0) - Float64(i * y1))
	t_3 = Float64(Float64(b * y4) - Float64(i * y5))
	tmp = 0.0
	if (y2 <= -1.05e+178)
		tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4))));
	elseif (y2 <= -8e-20)
		tmp = Float64(k * Float64(Float64(z * t_2) - Float64(Float64(y * t_3) + Float64(y2 * Float64(Float64(y0 * y5) - Float64(y1 * y4))))));
	elseif (y2 <= -1.2e-56)
		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 (y2 <= 3.5e-272)
		tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(c * Float64(Float64(z * t) - Float64(x * y))) + Float64(y5 * Float64(Float64(y * k) - Float64(t * j))))));
	elseif (y2 <= 1.9e-94)
		tmp = Float64(z * Float64(Float64(k * t_2) + Float64(Float64(t * t_1) + Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))))));
	elseif (y2 <= 3.6e+47)
		tmp = Float64(y * Float64(Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5))) - Float64(Float64(k * t_3) + Float64(x * t_1))));
	else
		tmp = Float64(y2 * Float64(Float64(Float64(x * Float64(Float64(c * y0) - Float64(a * y1))) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * 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)
	t_1 = (c * i) - (a * b);
	t_2 = (b * y0) - (i * y1);
	t_3 = (b * y4) - (i * y5);
	tmp = 0.0;
	if (y2 <= -1.05e+178)
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	elseif (y2 <= -8e-20)
		tmp = k * ((z * t_2) - ((y * t_3) + (y2 * ((y0 * y5) - (y1 * y4)))));
	elseif (y2 <= -1.2e-56)
		tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	elseif (y2 <= 3.5e-272)
		tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))));
	elseif (y2 <= 1.9e-94)
		tmp = z * ((k * t_2) + ((t * t_1) + (y3 * ((a * y1) - (c * y0)))));
	elseif (y2 <= 3.6e+47)
		tmp = y * ((y3 * ((c * y4) - (a * y5))) - ((k * t_3) + (x * t_1)));
	else
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	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[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.05e+178], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -8e-20], N[(k * N[(N[(z * t$95$2), $MachinePrecision] - N[(N[(y * t$95$3), $MachinePrecision] + N[(y2 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.2e-56], 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[y2, 3.5e-272], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.9e-94], N[(z * N[(N[(k * t$95$2), $MachinePrecision] + N[(N[(t * t$95$1), $MachinePrecision] + N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.6e+47], N[(y * N[(N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(k * t$95$3), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y2 * N[(N[(N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := c \cdot i - a \cdot b\\
t_2 := b \cdot y0 - i \cdot y1\\
t_3 := b \cdot y4 - i \cdot y5\\
\mathbf{if}\;y2 \leq -1.05 \cdot 10^{+178}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq -8 \cdot 10^{-20}:\\
\;\;\;\;k \cdot \left(z \cdot t\_2 - \left(y \cdot t\_3 + y2 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\right)\\

\mathbf{elif}\;y2 \leq -1.2 \cdot 10^{-56}:\\
\;\;\;\;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}\;y2 \leq 3.5 \cdot 10^{-272}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) + y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\

\mathbf{elif}\;y2 \leq 1.9 \cdot 10^{-94}:\\
\;\;\;\;z \cdot \left(k \cdot t\_2 + \left(t \cdot t\_1 + y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\

\mathbf{elif}\;y2 \leq 3.6 \cdot 10^{+47}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot t\_3 + x \cdot t\_1\right)\right)\\

\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if y2 < -1.0499999999999999e178

    1. Initial program 15.2%

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

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

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

    if -1.0499999999999999e178 < y2 < -7.99999999999999956e-20

    1. Initial program 35.6%

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

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

    if -7.99999999999999956e-20 < y2 < -1.2e-56

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

      \[\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 -1.2e-56 < y2 < 3.4999999999999997e-272

    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 50.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 3.4999999999999997e-272 < y2 < 1.9e-94

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

      \[\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.9e-94 < y2 < 3.60000000000000008e47

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

      \[\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 3.60000000000000008e47 < y2

    1. Initial program 25.6%

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

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
  3. Recombined 7 regimes into one program.
  4. Final simplification61.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -1.05 \cdot 10^{+178}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -8 \cdot 10^{-20}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) - \left(y \cdot \left(b \cdot y4 - i \cdot y5\right) + y2 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\right)\\ \mathbf{elif}\;y2 \leq -1.2 \cdot 10^{-56}:\\ \;\;\;\;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}\;y2 \leq 3.5 \cdot 10^{-272}:\\ \;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) + y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 1.9 \cdot 10^{-94}:\\ \;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(t \cdot \left(c \cdot i - a \cdot b\right) + y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 3.6 \cdot 10^{+47}:\\ \;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot \left(b \cdot y4 - i \cdot y5\right) + x \cdot \left(c \cdot i - a \cdot b\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 52.8% accurate, 0.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot j - y \cdot k\\ t_2 := \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\ t_3 := \sqrt[3]{t\_2}\\ t_4 := b \cdot y4 - i \cdot y5\\ t_5 := a \cdot b - c \cdot i\\ t_6 := c \cdot y0 - a \cdot y1\\ t_7 := x \cdot y2 - z \cdot y3\\ t_8 := a \cdot y5 - c \cdot y4\\ t_9 := \left(t \cdot y2 - y \cdot y3\right) \cdot t\_8\\ \mathbf{if}\;\left(\left(\left(t\_7 \cdot t\_6 - \left(\left(z \cdot t - x \cdot y\right) \cdot t\_5 + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(x \cdot j - z \cdot k\right)\right)\right) + t\_4 \cdot t\_1\right) + t\_9\right) + t\_2 \leq \infty:\\ \;\;\;\;\mathsf{fma}\left({t\_3}^{2}, t\_3, \mathsf{fma}\left(t\_1, t\_4, \mathsf{fma}\left(t\_7, t\_6, t\_5 \cdot \left(x \cdot y - z \cdot t\right) + \mathsf{fma}\left(x, j, k \cdot \left(-z\right)\right) \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\right) + t\_9\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(x \cdot t\_6 + t \cdot t\_8\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 j) (* y k)))
        (t_2 (* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))))
        (t_3 (cbrt t_2))
        (t_4 (- (* b y4) (* i y5)))
        (t_5 (- (* a b) (* c i)))
        (t_6 (- (* c y0) (* a y1)))
        (t_7 (- (* x y2) (* z y3)))
        (t_8 (- (* a y5) (* c y4)))
        (t_9 (* (- (* t y2) (* y y3)) t_8)))
   (if (<=
        (+
         (+
          (+
           (-
            (* t_7 t_6)
            (+
             (* (- (* z t) (* x y)) t_5)
             (* (- (* b y0) (* i y1)) (- (* x j) (* z k)))))
           (* t_4 t_1))
          t_9)
         t_2)
        INFINITY)
     (fma
      (pow t_3 2.0)
      t_3
      (+
       (fma
        t_1
        t_4
        (fma
         t_7
         t_6
         (+
          (* t_5 (- (* x y) (* z t)))
          (* (fma x j (* k (- z))) (- (* i y1) (* b y0))))))
       t_9))
     (* y2 (+ (* x t_6) (* t t_8))))))
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 = ((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5));
	double t_3 = cbrt(t_2);
	double t_4 = (b * y4) - (i * y5);
	double t_5 = (a * b) - (c * i);
	double t_6 = (c * y0) - (a * y1);
	double t_7 = (x * y2) - (z * y3);
	double t_8 = (a * y5) - (c * y4);
	double t_9 = ((t * y2) - (y * y3)) * t_8;
	double tmp;
	if ((((((t_7 * t_6) - ((((z * t) - (x * y)) * t_5) + (((b * y0) - (i * y1)) * ((x * j) - (z * k))))) + (t_4 * t_1)) + t_9) + t_2) <= ((double) INFINITY)) {
		tmp = fma(pow(t_3, 2.0), t_3, (fma(t_1, t_4, fma(t_7, t_6, ((t_5 * ((x * y) - (z * t))) + (fma(x, j, (k * -z)) * ((i * y1) - (b * y0)))))) + t_9));
	} else {
		tmp = y2 * ((x * t_6) + (t * t_8));
	}
	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(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5)))
	t_3 = cbrt(t_2)
	t_4 = Float64(Float64(b * y4) - Float64(i * y5))
	t_5 = Float64(Float64(a * b) - Float64(c * i))
	t_6 = Float64(Float64(c * y0) - Float64(a * y1))
	t_7 = Float64(Float64(x * y2) - Float64(z * y3))
	t_8 = Float64(Float64(a * y5) - Float64(c * y4))
	t_9 = Float64(Float64(Float64(t * y2) - Float64(y * y3)) * t_8)
	tmp = 0.0
	if (Float64(Float64(Float64(Float64(Float64(t_7 * t_6) - Float64(Float64(Float64(Float64(z * t) - Float64(x * y)) * t_5) + Float64(Float64(Float64(b * y0) - Float64(i * y1)) * Float64(Float64(x * j) - Float64(z * k))))) + Float64(t_4 * t_1)) + t_9) + t_2) <= Inf)
		tmp = fma((t_3 ^ 2.0), t_3, Float64(fma(t_1, t_4, fma(t_7, t_6, Float64(Float64(t_5 * Float64(Float64(x * y) - Float64(z * t))) + Float64(fma(x, j, Float64(k * Float64(-z))) * Float64(Float64(i * y1) - Float64(b * y0)))))) + t_9));
	else
		tmp = Float64(y2 * Float64(Float64(x * t_6) + Float64(t * t_8)));
	end
	return 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[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Power[t$95$2, 1/3], $MachinePrecision]}, Block[{t$95$4 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * t$95$8), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(t$95$7 * t$95$6), $MachinePrecision] - N[(N[(N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision] + N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$4 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$9), $MachinePrecision] + t$95$2), $MachinePrecision], Infinity], N[(N[Power[t$95$3, 2.0], $MachinePrecision] * t$95$3 + N[(N[(t$95$1 * t$95$4 + N[(t$95$7 * t$95$6 + N[(N[(t$95$5 * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * j + N[(k * (-z)), $MachinePrecision]), $MachinePrecision] * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$9), $MachinePrecision]), $MachinePrecision], N[(y2 * N[(N[(x * t$95$6), $MachinePrecision] + N[(t * t$95$8), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\
t_3 := \sqrt[3]{t\_2}\\
t_4 := b \cdot y4 - i \cdot y5\\
t_5 := a \cdot b - c \cdot i\\
t_6 := c \cdot y0 - a \cdot y1\\
t_7 := x \cdot y2 - z \cdot y3\\
t_8 := a \cdot y5 - c \cdot y4\\
t_9 := \left(t \cdot y2 - y \cdot y3\right) \cdot t\_8\\
\mathbf{if}\;\left(\left(\left(t\_7 \cdot t\_6 - \left(\left(z \cdot t - x \cdot y\right) \cdot t\_5 + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(x \cdot j - z \cdot k\right)\right)\right) + t\_4 \cdot t\_1\right) + t\_9\right) + t\_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left({t\_3}^{2}, t\_3, \mathsf{fma}\left(t\_1, t\_4, \mathsf{fma}\left(t\_7, t\_6, t\_5 \cdot \left(x \cdot y - z \cdot t\right) + \mathsf{fma}\left(x, j, k \cdot \left(-z\right)\right) \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\right) + t\_9\right)\\

\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(x \cdot t\_6 + t \cdot t\_8\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 86.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. Applied egg-rr86.7%

      \[\leadsto \color{blue}{\mathsf{fma}\left({\left(\sqrt[3]{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}\right)}^{2}, \sqrt[3]{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}, \mathsf{fma}\left(t \cdot j - y \cdot k, b \cdot y4 - i \cdot y5, \mathsf{fma}\left(x \cdot y2 - z \cdot y3, c \cdot y0 - a \cdot y1, \left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \mathsf{fma}\left(x, j, \left(-z\right) \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]

    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 y2 around inf 41.0%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\left(\left(\left(x \cdot y2 - z \cdot y3\right) \cdot \left(c \cdot y0 - a \cdot y1\right) - \left(\left(z \cdot t - x \cdot y\right) \cdot \left(a \cdot b - c \cdot i\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(x \cdot j - z \cdot k\right)\right)\right) + \left(b \cdot y4 - i \cdot y5\right) \cdot \left(t \cdot j - y \cdot k\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:\\ \;\;\;\;\mathsf{fma}\left({\left(\sqrt[3]{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}\right)}^{2}, \sqrt[3]{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}, \mathsf{fma}\left(t \cdot j - y \cdot k, b \cdot y4 - i \cdot y5, \mathsf{fma}\left(x \cdot y2 - z \cdot y3, c \cdot y0 - a \cdot y1, \left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - z \cdot t\right) + \mathsf{fma}\left(x, j, k \cdot \left(-z\right)\right) \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\right) + \left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 52.8% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(x \cdot t\_2 + t \cdot t\_1\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 86.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

    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 y2 around inf 41.0%

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

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

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

Alternative 4: 41.0% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot y0 - i \cdot y1\\ \mathbf{if}\;y2 \leq -1.45 \cdot 10^{+177}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -1.5 \cdot 10^{-20}:\\ \;\;\;\;k \cdot \left(z \cdot t\_1 - \left(y \cdot \left(b \cdot y4 - i \cdot y5\right) + y2 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\right)\\ \mathbf{elif}\;y2 \leq -1.5 \cdot 10^{-56}:\\ \;\;\;\;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}\;y2 \leq 1.4 \cdot 10^{-273}:\\ \;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) + y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 10^{-70}:\\ \;\;\;\;z \cdot \left(k \cdot t\_1 + \left(t \cdot \left(c \cdot i - a \cdot b\right) + y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \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
 (let* ((t_1 (- (* b y0) (* i y1))))
   (if (<= y2 -1.45e+177)
     (* c (* y2 (- (* x y0) (* t y4))))
     (if (<= y2 -1.5e-20)
       (*
        k
        (-
         (* z t_1)
         (+ (* y (- (* b y4) (* i y5))) (* y2 (- (* y0 y5) (* y1 y4))))))
       (if (<= y2 -1.5e-56)
         (*
          y4
          (+
           (+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
           (* c (- (* y y3) (* t y2)))))
         (if (<= y2 1.4e-273)
           (*
            i
            (+
             (* y1 (- (* x j) (* z k)))
             (+ (* c (- (* z t) (* x y))) (* y5 (- (* y k) (* t j))))))
           (if (<= y2 1e-70)
             (*
              z
              (+
               (* k t_1)
               (+ (* t (- (* c i) (* a b))) (* y3 (- (* a y1) (* c y0))))))
             (*
              y2
              (+
               (+ (* x (- (* c y0) (* a y1))) (* k (- (* y1 y4) (* y0 y5))))
               (* t (- (* a y5) (* c y4))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (b * y0) - (i * y1);
	double tmp;
	if (y2 <= -1.45e+177) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -1.5e-20) {
		tmp = k * ((z * t_1) - ((y * ((b * y4) - (i * y5))) + (y2 * ((y0 * y5) - (y1 * y4)))));
	} else if (y2 <= -1.5e-56) {
		tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	} else if (y2 <= 1.4e-273) {
		tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))));
	} else if (y2 <= 1e-70) {
		tmp = z * ((k * t_1) + ((t * ((c * i) - (a * b))) + (y3 * ((a * y1) - (c * y0)))));
	} else {
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (b * y0) - (i * y1)
    if (y2 <= (-1.45d+177)) then
        tmp = c * (y2 * ((x * y0) - (t * y4)))
    else if (y2 <= (-1.5d-20)) then
        tmp = k * ((z * t_1) - ((y * ((b * y4) - (i * y5))) + (y2 * ((y0 * y5) - (y1 * y4)))))
    else if (y2 <= (-1.5d-56)) then
        tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
    else if (y2 <= 1.4d-273) then
        tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))))
    else if (y2 <= 1d-70) then
        tmp = z * ((k * t_1) + ((t * ((c * i) - (a * b))) + (y3 * ((a * y1) - (c * y0)))))
    else
        tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (b * y0) - (i * y1);
	double tmp;
	if (y2 <= -1.45e+177) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -1.5e-20) {
		tmp = k * ((z * t_1) - ((y * ((b * y4) - (i * y5))) + (y2 * ((y0 * y5) - (y1 * y4)))));
	} else if (y2 <= -1.5e-56) {
		tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	} else if (y2 <= 1.4e-273) {
		tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))));
	} else if (y2 <= 1e-70) {
		tmp = z * ((k * t_1) + ((t * ((c * i) - (a * b))) + (y3 * ((a * y1) - (c * y0)))));
	} else {
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	}
	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)
	tmp = 0
	if y2 <= -1.45e+177:
		tmp = c * (y2 * ((x * y0) - (t * y4)))
	elif y2 <= -1.5e-20:
		tmp = k * ((z * t_1) - ((y * ((b * y4) - (i * y5))) + (y2 * ((y0 * y5) - (y1 * y4)))))
	elif y2 <= -1.5e-56:
		tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
	elif y2 <= 1.4e-273:
		tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))))
	elif y2 <= 1e-70:
		tmp = z * ((k * t_1) + ((t * ((c * i) - (a * b))) + (y3 * ((a * y1) - (c * y0)))))
	else:
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
	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))
	tmp = 0.0
	if (y2 <= -1.45e+177)
		tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4))));
	elseif (y2 <= -1.5e-20)
		tmp = Float64(k * Float64(Float64(z * t_1) - Float64(Float64(y * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y2 * Float64(Float64(y0 * y5) - Float64(y1 * y4))))));
	elseif (y2 <= -1.5e-56)
		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 (y2 <= 1.4e-273)
		tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(c * Float64(Float64(z * t) - Float64(x * y))) + Float64(y5 * Float64(Float64(y * k) - Float64(t * j))))));
	elseif (y2 <= 1e-70)
		tmp = Float64(z * Float64(Float64(k * t_1) + Float64(Float64(t * Float64(Float64(c * i) - Float64(a * b))) + Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))))));
	else
		tmp = Float64(y2 * Float64(Float64(Float64(x * Float64(Float64(c * y0) - Float64(a * y1))) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * 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)
	t_1 = (b * y0) - (i * y1);
	tmp = 0.0;
	if (y2 <= -1.45e+177)
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	elseif (y2 <= -1.5e-20)
		tmp = k * ((z * t_1) - ((y * ((b * y4) - (i * y5))) + (y2 * ((y0 * y5) - (y1 * y4)))));
	elseif (y2 <= -1.5e-56)
		tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	elseif (y2 <= 1.4e-273)
		tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))));
	elseif (y2 <= 1e-70)
		tmp = z * ((k * t_1) + ((t * ((c * i) - (a * b))) + (y3 * ((a * y1) - (c * y0)))));
	else
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	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]}, If[LessEqual[y2, -1.45e+177], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.5e-20], N[(k * N[(N[(z * t$95$1), $MachinePrecision] - N[(N[(y * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.5e-56], 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[y2, 1.4e-273], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1e-70], N[(z * N[(N[(k * t$95$1), $MachinePrecision] + N[(N[(t * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y2 * N[(N[(N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot y0 - i \cdot y1\\
\mathbf{if}\;y2 \leq -1.45 \cdot 10^{+177}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq -1.5 \cdot 10^{-20}:\\
\;\;\;\;k \cdot \left(z \cdot t\_1 - \left(y \cdot \left(b \cdot y4 - i \cdot y5\right) + y2 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\right)\\

\mathbf{elif}\;y2 \leq -1.5 \cdot 10^{-56}:\\
\;\;\;\;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}\;y2 \leq 1.4 \cdot 10^{-273}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) + y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\

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

\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y2 < -1.45000000000000007e177

    1. Initial program 15.2%

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

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

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

    if -1.45000000000000007e177 < y2 < -1.50000000000000014e-20

    1. Initial program 35.6%

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

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

    if -1.50000000000000014e-20 < y2 < -1.49999999999999995e-56

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

      \[\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 -1.49999999999999995e-56 < y2 < 1.39999999999999993e-273

    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 50.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 1.39999999999999993e-273 < y2 < 9.99999999999999996e-71

    1. Initial program 47.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 z around -inf 63.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)} \]

    if 9.99999999999999996e-71 < y2

    1. Initial program 25.7%

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

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
  3. Recombined 6 regimes into one program.
  4. Final simplification59.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -1.45 \cdot 10^{+177}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -1.5 \cdot 10^{-20}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) - \left(y \cdot \left(b \cdot y4 - i \cdot y5\right) + y2 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\right)\\ \mathbf{elif}\;y2 \leq -1.5 \cdot 10^{-56}:\\ \;\;\;\;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}\;y2 \leq 1.4 \cdot 10^{-273}:\\ \;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) + y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 10^{-70}:\\ \;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(t \cdot \left(c \cdot i - a \cdot b\right) + y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 40.7% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot y0 - i \cdot y1\\ \mathbf{if}\;y2 \leq -4.5 \cdot 10^{+176}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -6.2 \cdot 10^{+69}:\\ \;\;\;\;k \cdot \left(z \cdot t\_1 + y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\ \mathbf{elif}\;y2 \leq -8.8 \cdot 10^{-57}:\\ \;\;\;\;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}\;y2 \leq 8.2 \cdot 10^{-272}:\\ \;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) + y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 7.8 \cdot 10^{-72}:\\ \;\;\;\;z \cdot \left(k \cdot t\_1 + \left(t \cdot \left(c \cdot i - a \cdot b\right) + y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \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
 (let* ((t_1 (- (* b y0) (* i y1))))
   (if (<= y2 -4.5e+176)
     (* c (* y2 (- (* x y0) (* t y4))))
     (if (<= y2 -6.2e+69)
       (* k (+ (* z t_1) (* y4 (- (* y1 y2) (* y b)))))
       (if (<= y2 -8.8e-57)
         (*
          y4
          (+
           (+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
           (* c (- (* y y3) (* t y2)))))
         (if (<= y2 8.2e-272)
           (*
            i
            (+
             (* y1 (- (* x j) (* z k)))
             (+ (* c (- (* z t) (* x y))) (* y5 (- (* y k) (* t j))))))
           (if (<= y2 7.8e-72)
             (*
              z
              (+
               (* k t_1)
               (+ (* t (- (* c i) (* a b))) (* y3 (- (* a y1) (* c y0))))))
             (*
              y2
              (+
               (+ (* x (- (* c y0) (* a y1))) (* k (- (* y1 y4) (* y0 y5))))
               (* t (- (* a y5) (* c y4))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (b * y0) - (i * y1);
	double tmp;
	if (y2 <= -4.5e+176) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -6.2e+69) {
		tmp = k * ((z * t_1) + (y4 * ((y1 * y2) - (y * b))));
	} else if (y2 <= -8.8e-57) {
		tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	} else if (y2 <= 8.2e-272) {
		tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))));
	} else if (y2 <= 7.8e-72) {
		tmp = z * ((k * t_1) + ((t * ((c * i) - (a * b))) + (y3 * ((a * y1) - (c * y0)))));
	} else {
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (b * y0) - (i * y1)
    if (y2 <= (-4.5d+176)) then
        tmp = c * (y2 * ((x * y0) - (t * y4)))
    else if (y2 <= (-6.2d+69)) then
        tmp = k * ((z * t_1) + (y4 * ((y1 * y2) - (y * b))))
    else if (y2 <= (-8.8d-57)) then
        tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
    else if (y2 <= 8.2d-272) then
        tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))))
    else if (y2 <= 7.8d-72) then
        tmp = z * ((k * t_1) + ((t * ((c * i) - (a * b))) + (y3 * ((a * y1) - (c * y0)))))
    else
        tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (b * y0) - (i * y1);
	double tmp;
	if (y2 <= -4.5e+176) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -6.2e+69) {
		tmp = k * ((z * t_1) + (y4 * ((y1 * y2) - (y * b))));
	} else if (y2 <= -8.8e-57) {
		tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	} else if (y2 <= 8.2e-272) {
		tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))));
	} else if (y2 <= 7.8e-72) {
		tmp = z * ((k * t_1) + ((t * ((c * i) - (a * b))) + (y3 * ((a * y1) - (c * y0)))));
	} else {
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	}
	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)
	tmp = 0
	if y2 <= -4.5e+176:
		tmp = c * (y2 * ((x * y0) - (t * y4)))
	elif y2 <= -6.2e+69:
		tmp = k * ((z * t_1) + (y4 * ((y1 * y2) - (y * b))))
	elif y2 <= -8.8e-57:
		tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
	elif y2 <= 8.2e-272:
		tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))))
	elif y2 <= 7.8e-72:
		tmp = z * ((k * t_1) + ((t * ((c * i) - (a * b))) + (y3 * ((a * y1) - (c * y0)))))
	else:
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
	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))
	tmp = 0.0
	if (y2 <= -4.5e+176)
		tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4))));
	elseif (y2 <= -6.2e+69)
		tmp = Float64(k * Float64(Float64(z * t_1) + Float64(y4 * Float64(Float64(y1 * y2) - Float64(y * b)))));
	elseif (y2 <= -8.8e-57)
		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 (y2 <= 8.2e-272)
		tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(c * Float64(Float64(z * t) - Float64(x * y))) + Float64(y5 * Float64(Float64(y * k) - Float64(t * j))))));
	elseif (y2 <= 7.8e-72)
		tmp = Float64(z * Float64(Float64(k * t_1) + Float64(Float64(t * Float64(Float64(c * i) - Float64(a * b))) + Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))))));
	else
		tmp = Float64(y2 * Float64(Float64(Float64(x * Float64(Float64(c * y0) - Float64(a * y1))) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * 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)
	t_1 = (b * y0) - (i * y1);
	tmp = 0.0;
	if (y2 <= -4.5e+176)
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	elseif (y2 <= -6.2e+69)
		tmp = k * ((z * t_1) + (y4 * ((y1 * y2) - (y * b))));
	elseif (y2 <= -8.8e-57)
		tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	elseif (y2 <= 8.2e-272)
		tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))));
	elseif (y2 <= 7.8e-72)
		tmp = z * ((k * t_1) + ((t * ((c * i) - (a * b))) + (y3 * ((a * y1) - (c * y0)))));
	else
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	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]}, If[LessEqual[y2, -4.5e+176], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -6.2e+69], N[(k * N[(N[(z * t$95$1), $MachinePrecision] + N[(y4 * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -8.8e-57], 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[y2, 8.2e-272], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 7.8e-72], N[(z * N[(N[(k * t$95$1), $MachinePrecision] + N[(N[(t * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y2 * N[(N[(N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot y0 - i \cdot y1\\
\mathbf{if}\;y2 \leq -4.5 \cdot 10^{+176}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq -6.2 \cdot 10^{+69}:\\
\;\;\;\;k \cdot \left(z \cdot t\_1 + y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\

\mathbf{elif}\;y2 \leq -8.8 \cdot 10^{-57}:\\
\;\;\;\;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}\;y2 \leq 8.2 \cdot 10^{-272}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) + y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\

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

\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y2 < -4.50000000000000003e176

    1. Initial program 15.2%

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

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

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

    if -4.50000000000000003e176 < y2 < -6.1999999999999997e69

    1. Initial program 32.7%

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

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

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(b \cdot \left(y \cdot y4\right)\right) + y1 \cdot \left(y2 \cdot y4\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Step-by-step derivation
      1. cancel-sign-sub-inv49.1%

        \[\leadsto k \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(y \cdot y4\right)\right) + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. mul-1-neg49.1%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-b \cdot \left(y \cdot y4\right)\right)} + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      3. associate-*r*53.1%

        \[\leadsto k \cdot \left(\left(\left(-\color{blue}{\left(b \cdot y\right) \cdot y4}\right) + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      4. distribute-lft-neg-in53.1%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-b \cdot y\right) \cdot y4} + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      5. mul-1-neg53.1%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-1 \cdot \left(b \cdot y\right)\right)} \cdot y4 + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      6. associate-*r*53.1%

        \[\leadsto k \cdot \left(\left(\left(-1 \cdot \left(b \cdot y\right)\right) \cdot y4 + \color{blue}{\left(y1 \cdot y2\right) \cdot y4}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      7. distribute-rgt-in53.1%

        \[\leadsto k \cdot \left(\color{blue}{y4 \cdot \left(-1 \cdot \left(b \cdot y\right) + y1 \cdot y2\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      8. +-commutative53.1%

        \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(y1 \cdot y2 + -1 \cdot \left(b \cdot y\right)\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      9. mul-1-neg53.1%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 + \color{blue}{\left(-b \cdot y\right)}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      10. unsub-neg53.1%

        \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(y1 \cdot y2 - b \cdot y\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      11. *-commutative53.1%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - \color{blue}{y \cdot b}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      12. metadata-eval53.1%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right) + \color{blue}{1} \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      13. *-lft-identity53.1%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right) + \color{blue}{z \cdot \left(b \cdot y0 - i \cdot y1\right)}\right) \]
    6. Simplified53.1%

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

    if -6.1999999999999997e69 < y2 < -8.79999999999999994e-57

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

      \[\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 -8.79999999999999994e-57 < y2 < 8.1999999999999995e-272

    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 50.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 8.1999999999999995e-272 < y2 < 7.8e-72

    1. Initial program 47.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 z around -inf 63.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)} \]

    if 7.8e-72 < y2

    1. Initial program 25.7%

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

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
  3. Recombined 6 regimes into one program.
  4. Final simplification58.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -4.5 \cdot 10^{+176}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -6.2 \cdot 10^{+69}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) + y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\ \mathbf{elif}\;y2 \leq -8.8 \cdot 10^{-57}:\\ \;\;\;\;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}\;y2 \leq 8.2 \cdot 10^{-272}:\\ \;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) + y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 7.8 \cdot 10^{-72}:\\ \;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(t \cdot \left(c \cdot i - a \cdot b\right) + y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 41.3% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot j - y \cdot k\\ \mathbf{if}\;y2 \leq -8 \cdot 10^{+176}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -4.3 \cdot 10^{+67}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) + y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\ \mathbf{elif}\;y2 \leq -2.1 \cdot 10^{-57}:\\ \;\;\;\;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}\;y2 \leq 1.12 \cdot 10^{-259}:\\ \;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) + y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 1.26 \cdot 10^{-14}:\\ \;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t\_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \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
 (let* ((t_1 (- (* t j) (* y k))))
   (if (<= y2 -8e+176)
     (* c (* y2 (- (* x y0) (* t y4))))
     (if (<= y2 -4.3e+67)
       (* k (+ (* z (- (* b y0) (* i y1))) (* y4 (- (* y1 y2) (* y b)))))
       (if (<= y2 -2.1e-57)
         (*
          y4
          (+
           (+ (* b t_1) (* y1 (- (* k y2) (* j y3))))
           (* c (- (* y y3) (* t y2)))))
         (if (<= y2 1.12e-259)
           (*
            i
            (+
             (* y1 (- (* x j) (* z k)))
             (+ (* c (- (* z t) (* x y))) (* y5 (- (* y k) (* t j))))))
           (if (<= y2 1.26e-14)
             (*
              b
              (+
               (+ (* a (- (* x y) (* z t))) (* y4 t_1))
               (* y0 (- (* z k) (* x j)))))
             (*
              y2
              (+
               (+ (* x (- (* c y0) (* a y1))) (* k (- (* y1 y4) (* y0 y5))))
               (* t (- (* a y5) (* c y4))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (t * j) - (y * k);
	double tmp;
	if (y2 <= -8e+176) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -4.3e+67) {
		tmp = k * ((z * ((b * y0) - (i * y1))) + (y4 * ((y1 * y2) - (y * b))));
	} else if (y2 <= -2.1e-57) {
		tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	} else if (y2 <= 1.12e-259) {
		tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))));
	} else if (y2 <= 1.26e-14) {
		tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
	} else {
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (t * j) - (y * k)
    if (y2 <= (-8d+176)) then
        tmp = c * (y2 * ((x * y0) - (t * y4)))
    else if (y2 <= (-4.3d+67)) then
        tmp = k * ((z * ((b * y0) - (i * y1))) + (y4 * ((y1 * y2) - (y * b))))
    else if (y2 <= (-2.1d-57)) then
        tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
    else if (y2 <= 1.12d-259) then
        tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))))
    else if (y2 <= 1.26d-14) then
        tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
    else
        tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (t * j) - (y * k);
	double tmp;
	if (y2 <= -8e+176) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -4.3e+67) {
		tmp = k * ((z * ((b * y0) - (i * y1))) + (y4 * ((y1 * y2) - (y * b))));
	} else if (y2 <= -2.1e-57) {
		tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	} else if (y2 <= 1.12e-259) {
		tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))));
	} else if (y2 <= 1.26e-14) {
		tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
	} else {
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	}
	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)
	tmp = 0
	if y2 <= -8e+176:
		tmp = c * (y2 * ((x * y0) - (t * y4)))
	elif y2 <= -4.3e+67:
		tmp = k * ((z * ((b * y0) - (i * y1))) + (y4 * ((y1 * y2) - (y * b))))
	elif y2 <= -2.1e-57:
		tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
	elif y2 <= 1.12e-259:
		tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))))
	elif y2 <= 1.26e-14:
		tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
	else:
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
	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))
	tmp = 0.0
	if (y2 <= -8e+176)
		tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4))));
	elseif (y2 <= -4.3e+67)
		tmp = Float64(k * Float64(Float64(z * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(y4 * Float64(Float64(y1 * y2) - Float64(y * b)))));
	elseif (y2 <= -2.1e-57)
		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 (y2 <= 1.12e-259)
		tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(c * Float64(Float64(z * t) - Float64(x * y))) + Float64(y5 * Float64(Float64(y * k) - Float64(t * j))))));
	elseif (y2 <= 1.26e-14)
		tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_1)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))));
	else
		tmp = Float64(y2 * Float64(Float64(Float64(x * Float64(Float64(c * y0) - Float64(a * y1))) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * 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)
	t_1 = (t * j) - (y * k);
	tmp = 0.0;
	if (y2 <= -8e+176)
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	elseif (y2 <= -4.3e+67)
		tmp = k * ((z * ((b * y0) - (i * y1))) + (y4 * ((y1 * y2) - (y * b))));
	elseif (y2 <= -2.1e-57)
		tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	elseif (y2 <= 1.12e-259)
		tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))));
	elseif (y2 <= 1.26e-14)
		tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
	else
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	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]}, If[LessEqual[y2, -8e+176], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -4.3e+67], N[(k * N[(N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.1e-57], 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[y2, 1.12e-259], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.26e-14], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y2 * N[(N[(N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
\mathbf{if}\;y2 \leq -8 \cdot 10^{+176}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq -4.3 \cdot 10^{+67}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) + y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\

\mathbf{elif}\;y2 \leq -2.1 \cdot 10^{-57}:\\
\;\;\;\;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}\;y2 \leq 1.12 \cdot 10^{-259}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) + y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\

\mathbf{elif}\;y2 \leq 1.26 \cdot 10^{-14}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t\_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\

\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y2 < -8.0000000000000001e176

    1. Initial program 15.2%

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

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

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

    if -8.0000000000000001e176 < y2 < -4.3000000000000001e67

    1. Initial program 32.7%

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

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

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(b \cdot \left(y \cdot y4\right)\right) + y1 \cdot \left(y2 \cdot y4\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Step-by-step derivation
      1. cancel-sign-sub-inv49.1%

        \[\leadsto k \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(y \cdot y4\right)\right) + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. mul-1-neg49.1%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-b \cdot \left(y \cdot y4\right)\right)} + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      3. associate-*r*53.1%

        \[\leadsto k \cdot \left(\left(\left(-\color{blue}{\left(b \cdot y\right) \cdot y4}\right) + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      4. distribute-lft-neg-in53.1%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-b \cdot y\right) \cdot y4} + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      5. mul-1-neg53.1%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-1 \cdot \left(b \cdot y\right)\right)} \cdot y4 + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      6. associate-*r*53.1%

        \[\leadsto k \cdot \left(\left(\left(-1 \cdot \left(b \cdot y\right)\right) \cdot y4 + \color{blue}{\left(y1 \cdot y2\right) \cdot y4}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      7. distribute-rgt-in53.1%

        \[\leadsto k \cdot \left(\color{blue}{y4 \cdot \left(-1 \cdot \left(b \cdot y\right) + y1 \cdot y2\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      8. +-commutative53.1%

        \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(y1 \cdot y2 + -1 \cdot \left(b \cdot y\right)\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      9. mul-1-neg53.1%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 + \color{blue}{\left(-b \cdot y\right)}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      10. unsub-neg53.1%

        \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(y1 \cdot y2 - b \cdot y\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      11. *-commutative53.1%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - \color{blue}{y \cdot b}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      12. metadata-eval53.1%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right) + \color{blue}{1} \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      13. *-lft-identity53.1%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right) + \color{blue}{z \cdot \left(b \cdot y0 - i \cdot y1\right)}\right) \]
    6. Simplified53.1%

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

    if -4.3000000000000001e67 < y2 < -2.0999999999999999e-57

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

      \[\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.0999999999999999e-57 < y2 < 1.1199999999999999e-259

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

      \[\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.1199999999999999e-259 < y2 < 1.25999999999999996e-14

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

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

    if 1.25999999999999996e-14 < y2

    1. Initial program 24.7%

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

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
  3. Recombined 6 regimes into one program.
  4. Final simplification58.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -8 \cdot 10^{+176}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -4.3 \cdot 10^{+67}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) + y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\ \mathbf{elif}\;y2 \leq -2.1 \cdot 10^{-57}:\\ \;\;\;\;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}\;y2 \leq 1.12 \cdot 10^{-259}:\\ \;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) + y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 1.26 \cdot 10^{-14}:\\ \;\;\;\;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}:\\ \;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 33.3% accurate, 1.7× speedup?

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

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

\mathbf{elif}\;y3 \leq -6.5 \cdot 10^{+96}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) + y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\

\mathbf{elif}\;y3 \leq -1.42 \cdot 10^{-266}:\\
\;\;\;\;y2 \cdot \left(y5 \cdot \left(k \cdot \left(a \cdot \frac{t}{k} - y0\right)\right)\right)\\

\mathbf{elif}\;y3 \leq 6.8 \cdot 10^{+78}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(y1 \cdot \left(\frac{c \cdot y0}{y1} - a\right)\right)\right)\\

\mathbf{elif}\;y3 \leq 2.3 \cdot 10^{+151}:\\
\;\;\;\;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}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right) + j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y3 < -4.59999999999999989e199

    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 y1 around inf 40.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 65.0%

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

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

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

    if -4.59999999999999989e199 < y3 < -6.5e96

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

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

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(b \cdot \left(y \cdot y4\right)\right) + y1 \cdot \left(y2 \cdot y4\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Step-by-step derivation
      1. cancel-sign-sub-inv66.5%

        \[\leadsto k \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(y \cdot y4\right)\right) + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. mul-1-neg66.5%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-b \cdot \left(y \cdot y4\right)\right)} + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      3. associate-*r*66.5%

        \[\leadsto k \cdot \left(\left(\left(-\color{blue}{\left(b \cdot y\right) \cdot y4}\right) + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      4. distribute-lft-neg-in66.5%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-b \cdot y\right) \cdot y4} + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      5. mul-1-neg66.5%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-1 \cdot \left(b \cdot y\right)\right)} \cdot y4 + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      6. associate-*r*66.5%

        \[\leadsto k \cdot \left(\left(\left(-1 \cdot \left(b \cdot y\right)\right) \cdot y4 + \color{blue}{\left(y1 \cdot y2\right) \cdot y4}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      7. distribute-rgt-in66.5%

        \[\leadsto k \cdot \left(\color{blue}{y4 \cdot \left(-1 \cdot \left(b \cdot y\right) + y1 \cdot y2\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      8. +-commutative66.5%

        \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(y1 \cdot y2 + -1 \cdot \left(b \cdot y\right)\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      9. mul-1-neg66.5%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 + \color{blue}{\left(-b \cdot y\right)}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      10. unsub-neg66.5%

        \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(y1 \cdot y2 - b \cdot y\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      11. *-commutative66.5%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - \color{blue}{y \cdot b}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      12. metadata-eval66.5%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right) + \color{blue}{1} \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      13. *-lft-identity66.5%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right) + \color{blue}{z \cdot \left(b \cdot y0 - i \cdot y1\right)}\right) \]
    6. Simplified66.5%

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

    if -6.5e96 < y3 < -1.42000000000000001e-266

    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 y2 around inf 47.8%

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

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

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

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

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

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

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

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

        \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \left(k \cdot \left(y0 - \color{blue}{a \cdot \frac{t}{k}}\right)\right)\right) \]
    9. Simplified51.1%

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

    if -1.42000000000000001e-266 < y3 < 6.80000000000000014e78

    1. Initial program 30.1%

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

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

      \[\leadsto \color{blue}{x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]
    5. Taylor expanded in y1 around inf 44.4%

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

    if 6.80000000000000014e78 < y3 < 2.3000000000000001e151

    1. Initial program 19.9%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 63.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)} \]

    if 2.3000000000000001e151 < y3

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

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in y around 0 85.0%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)} \]
  3. Recombined 6 regimes into one program.
  4. Final simplification54.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -4.6 \cdot 10^{+199}:\\ \;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4\right)\\ \mathbf{elif}\;y3 \leq -6.5 \cdot 10^{+96}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) + y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\ \mathbf{elif}\;y3 \leq -1.42 \cdot 10^{-266}:\\ \;\;\;\;y2 \cdot \left(y5 \cdot \left(k \cdot \left(a \cdot \frac{t}{k} - y0\right)\right)\right)\\ \mathbf{elif}\;y3 \leq 6.8 \cdot 10^{+78}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(y1 \cdot \left(\frac{c \cdot y0}{y1} - a\right)\right)\right)\\ \mathbf{elif}\;y3 \leq 2.3 \cdot 10^{+151}:\\ \;\;\;\;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}:\\ \;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right) + j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 40.8% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot j - y \cdot k\\ \mathbf{if}\;y2 \leq -4.2 \cdot 10^{+176}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -1.9 \cdot 10^{+65}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) + y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\ \mathbf{elif}\;y2 \leq 1.02 \cdot 10^{-271}:\\ \;\;\;\;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}\;y2 \leq 1.25 \cdot 10^{-21}:\\ \;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t\_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \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
 (let* ((t_1 (- (* t j) (* y k))))
   (if (<= y2 -4.2e+176)
     (* c (* y2 (- (* x y0) (* t y4))))
     (if (<= y2 -1.9e+65)
       (* k (+ (* z (- (* b y0) (* i y1))) (* y4 (- (* y1 y2) (* y b)))))
       (if (<= y2 1.02e-271)
         (*
          y4
          (+
           (+ (* b t_1) (* y1 (- (* k y2) (* j y3))))
           (* c (- (* y y3) (* t y2)))))
         (if (<= y2 1.25e-21)
           (*
            b
            (+
             (+ (* a (- (* x y) (* z t))) (* y4 t_1))
             (* y0 (- (* z k) (* x j)))))
           (*
            y2
            (+
             (+ (* x (- (* c y0) (* a y1))) (* k (- (* y1 y4) (* y0 y5))))
             (* t (- (* a y5) (* c y4)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (t * j) - (y * k);
	double tmp;
	if (y2 <= -4.2e+176) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -1.9e+65) {
		tmp = k * ((z * ((b * y0) - (i * y1))) + (y4 * ((y1 * y2) - (y * b))));
	} else if (y2 <= 1.02e-271) {
		tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	} else if (y2 <= 1.25e-21) {
		tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
	} else {
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (t * j) - (y * k)
    if (y2 <= (-4.2d+176)) then
        tmp = c * (y2 * ((x * y0) - (t * y4)))
    else if (y2 <= (-1.9d+65)) then
        tmp = k * ((z * ((b * y0) - (i * y1))) + (y4 * ((y1 * y2) - (y * b))))
    else if (y2 <= 1.02d-271) then
        tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
    else if (y2 <= 1.25d-21) then
        tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
    else
        tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (t * j) - (y * k);
	double tmp;
	if (y2 <= -4.2e+176) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -1.9e+65) {
		tmp = k * ((z * ((b * y0) - (i * y1))) + (y4 * ((y1 * y2) - (y * b))));
	} else if (y2 <= 1.02e-271) {
		tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	} else if (y2 <= 1.25e-21) {
		tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
	} else {
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	}
	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)
	tmp = 0
	if y2 <= -4.2e+176:
		tmp = c * (y2 * ((x * y0) - (t * y4)))
	elif y2 <= -1.9e+65:
		tmp = k * ((z * ((b * y0) - (i * y1))) + (y4 * ((y1 * y2) - (y * b))))
	elif y2 <= 1.02e-271:
		tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
	elif y2 <= 1.25e-21:
		tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
	else:
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
	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))
	tmp = 0.0
	if (y2 <= -4.2e+176)
		tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4))));
	elseif (y2 <= -1.9e+65)
		tmp = Float64(k * Float64(Float64(z * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(y4 * Float64(Float64(y1 * y2) - Float64(y * b)))));
	elseif (y2 <= 1.02e-271)
		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 (y2 <= 1.25e-21)
		tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_1)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))));
	else
		tmp = Float64(y2 * Float64(Float64(Float64(x * Float64(Float64(c * y0) - Float64(a * y1))) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * 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)
	t_1 = (t * j) - (y * k);
	tmp = 0.0;
	if (y2 <= -4.2e+176)
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	elseif (y2 <= -1.9e+65)
		tmp = k * ((z * ((b * y0) - (i * y1))) + (y4 * ((y1 * y2) - (y * b))));
	elseif (y2 <= 1.02e-271)
		tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
	elseif (y2 <= 1.25e-21)
		tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
	else
		tmp = y2 * (((x * ((c * y0) - (a * y1))) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	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]}, If[LessEqual[y2, -4.2e+176], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.9e+65], N[(k * N[(N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.02e-271], 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[y2, 1.25e-21], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y2 * N[(N[(N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
\mathbf{if}\;y2 \leq -4.2 \cdot 10^{+176}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq -1.9 \cdot 10^{+65}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) + y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\

\mathbf{elif}\;y2 \leq 1.02 \cdot 10^{-271}:\\
\;\;\;\;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}\;y2 \leq 1.25 \cdot 10^{-21}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t\_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\

\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\


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

    1. Initial program 15.2%

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

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

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

    if -4.1999999999999998e176 < y2 < -1.90000000000000006e65

    1. Initial program 32.7%

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

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

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(b \cdot \left(y \cdot y4\right)\right) + y1 \cdot \left(y2 \cdot y4\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Step-by-step derivation
      1. cancel-sign-sub-inv49.1%

        \[\leadsto k \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(y \cdot y4\right)\right) + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. mul-1-neg49.1%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-b \cdot \left(y \cdot y4\right)\right)} + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      3. associate-*r*53.1%

        \[\leadsto k \cdot \left(\left(\left(-\color{blue}{\left(b \cdot y\right) \cdot y4}\right) + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      4. distribute-lft-neg-in53.1%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-b \cdot y\right) \cdot y4} + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      5. mul-1-neg53.1%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-1 \cdot \left(b \cdot y\right)\right)} \cdot y4 + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      6. associate-*r*53.1%

        \[\leadsto k \cdot \left(\left(\left(-1 \cdot \left(b \cdot y\right)\right) \cdot y4 + \color{blue}{\left(y1 \cdot y2\right) \cdot y4}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      7. distribute-rgt-in53.1%

        \[\leadsto k \cdot \left(\color{blue}{y4 \cdot \left(-1 \cdot \left(b \cdot y\right) + y1 \cdot y2\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      8. +-commutative53.1%

        \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(y1 \cdot y2 + -1 \cdot \left(b \cdot y\right)\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      9. mul-1-neg53.1%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 + \color{blue}{\left(-b \cdot y\right)}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      10. unsub-neg53.1%

        \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(y1 \cdot y2 - b \cdot y\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      11. *-commutative53.1%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - \color{blue}{y \cdot b}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      12. metadata-eval53.1%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right) + \color{blue}{1} \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      13. *-lft-identity53.1%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right) + \color{blue}{z \cdot \left(b \cdot y0 - i \cdot y1\right)}\right) \]
    6. Simplified53.1%

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

    if -1.90000000000000006e65 < y2 < 1.02e-271

    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 y4 around inf 44.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 1.02e-271 < y2 < 1.24999999999999993e-21

    1. Initial program 43.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 b around inf 55.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)} \]

    if 1.24999999999999993e-21 < y2

    1. Initial program 24.7%

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

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification55.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -4.2 \cdot 10^{+176}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -1.9 \cdot 10^{+65}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) + y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\ \mathbf{elif}\;y2 \leq 1.02 \cdot 10^{-271}:\\ \;\;\;\;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}\;y2 \leq 1.25 \cdot 10^{-21}:\\ \;\;\;\;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}:\\ \;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 39.4% accurate, 1.9× speedup?

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

\\
\begin{array}{l}
t_1 := x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;x \leq -1.25 \cdot 10^{+49}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;x \leq -1.02 \cdot 10^{-302}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) + y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\

\mathbf{elif}\;x \leq 2.8 \cdot 10^{-145}:\\
\;\;\;\;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}\;x \leq 7.2 \cdot 10^{+213}:\\
\;\;\;\;y2 \cdot \left(y5 \cdot \left(k \cdot \left(a \cdot \frac{t}{k} - y0\right)\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if x < -1.2500000000000001e49 or 7.2000000000000002e213 < x

    1. Initial program 18.2%

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

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

    if -1.2500000000000001e49 < x < -1.02e-302

    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 k around inf 48.3%

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

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(b \cdot \left(y \cdot y4\right)\right) + y1 \cdot \left(y2 \cdot y4\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Step-by-step derivation
      1. cancel-sign-sub-inv43.5%

        \[\leadsto k \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(y \cdot y4\right)\right) + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. mul-1-neg43.5%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-b \cdot \left(y \cdot y4\right)\right)} + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      3. associate-*r*46.0%

        \[\leadsto k \cdot \left(\left(\left(-\color{blue}{\left(b \cdot y\right) \cdot y4}\right) + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      4. distribute-lft-neg-in46.0%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-b \cdot y\right) \cdot y4} + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      5. mul-1-neg46.0%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-1 \cdot \left(b \cdot y\right)\right)} \cdot y4 + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      6. associate-*r*46.0%

        \[\leadsto k \cdot \left(\left(\left(-1 \cdot \left(b \cdot y\right)\right) \cdot y4 + \color{blue}{\left(y1 \cdot y2\right) \cdot y4}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      7. distribute-rgt-in46.0%

        \[\leadsto k \cdot \left(\color{blue}{y4 \cdot \left(-1 \cdot \left(b \cdot y\right) + y1 \cdot y2\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      8. +-commutative46.0%

        \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(y1 \cdot y2 + -1 \cdot \left(b \cdot y\right)\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      9. mul-1-neg46.0%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 + \color{blue}{\left(-b \cdot y\right)}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      10. unsub-neg46.0%

        \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(y1 \cdot y2 - b \cdot y\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      11. *-commutative46.0%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - \color{blue}{y \cdot b}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      12. metadata-eval46.0%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right) + \color{blue}{1} \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      13. *-lft-identity46.0%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right) + \color{blue}{z \cdot \left(b \cdot y0 - i \cdot y1\right)}\right) \]
    6. Simplified46.0%

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

    if -1.02e-302 < x < 2.8000000000000001e-145

    1. Initial program 41.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 47.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)} \]

    if 2.8000000000000001e-145 < x < 7.2000000000000002e213

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

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot y2\right) \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right)} \]
      2. mul-1-neg50.8%

        \[\leadsto \color{blue}{\left(-y2\right)} \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right) \]
    6. Simplified50.8%

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

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

        \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \left(k \cdot \left(y0 + \color{blue}{\left(-\frac{a \cdot t}{k}\right)}\right)\right)\right) \]
      2. unsub-neg54.1%

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

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

      \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \color{blue}{\left(k \cdot \left(y0 - a \cdot \frac{t}{k}\right)\right)}\right) \]
  3. Recombined 4 regimes into one program.
  4. Final simplification54.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.25 \cdot 10^{+49}:\\ \;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;x \leq -1.02 \cdot 10^{-302}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) + y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\ \mathbf{elif}\;x \leq 2.8 \cdot 10^{-145}:\\ \;\;\;\;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}\;x \leq 7.2 \cdot 10^{+213}:\\ \;\;\;\;y2 \cdot \left(y5 \cdot \left(k \cdot \left(a \cdot \frac{t}{k} - y0\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 41.2% accurate, 2.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot y0 - a \cdot y1\\ \mathbf{if}\;y2 \leq -3.6 \cdot 10^{+165}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -4.4 \cdot 10^{-160}:\\ \;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t\_1\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;y2 \leq 3.7 \cdot 10^{-19}:\\ \;\;\;\;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}:\\ \;\;\;\;y2 \cdot \left(\left(x \cdot t\_1 + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \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
 (let* ((t_1 (- (* c y0) (* a y1))))
   (if (<= y2 -3.6e+165)
     (* c (* y2 (- (* x y0) (* t y4))))
     (if (<= y2 -4.4e-160)
       (*
        x
        (+
         (+ (* y (- (* a b) (* c i))) (* y2 t_1))
         (* j (- (* i y1) (* b y0)))))
       (if (<= y2 3.7e-19)
         (*
          b
          (+
           (+ (* a (- (* x y) (* z t))) (* y4 (- (* t j) (* y k))))
           (* y0 (- (* z k) (* x j)))))
         (*
          y2
          (+
           (+ (* x t_1) (* k (- (* y1 y4) (* y0 y5))))
           (* t (- (* a y5) (* c y4))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (c * y0) - (a * y1);
	double tmp;
	if (y2 <= -3.6e+165) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -4.4e-160) {
		tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_1)) + (j * ((i * y1) - (b * y0))));
	} else if (y2 <= 3.7e-19) {
		tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
	} else {
		tmp = y2 * (((x * t_1) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (c * y0) - (a * y1)
    if (y2 <= (-3.6d+165)) then
        tmp = c * (y2 * ((x * y0) - (t * y4)))
    else if (y2 <= (-4.4d-160)) then
        tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_1)) + (j * ((i * y1) - (b * y0))))
    else if (y2 <= 3.7d-19) then
        tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
    else
        tmp = y2 * (((x * t_1) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (c * y0) - (a * y1);
	double tmp;
	if (y2 <= -3.6e+165) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -4.4e-160) {
		tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_1)) + (j * ((i * y1) - (b * y0))));
	} else if (y2 <= 3.7e-19) {
		tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
	} else {
		tmp = y2 * (((x * t_1) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = (c * y0) - (a * y1)
	tmp = 0
	if y2 <= -3.6e+165:
		tmp = c * (y2 * ((x * y0) - (t * y4)))
	elif y2 <= -4.4e-160:
		tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_1)) + (j * ((i * y1) - (b * y0))))
	elif y2 <= 3.7e-19:
		tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
	else:
		tmp = y2 * (((x * t_1) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(c * y0) - Float64(a * y1))
	tmp = 0.0
	if (y2 <= -3.6e+165)
		tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4))));
	elseif (y2 <= -4.4e-160)
		tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_1)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0)))));
	elseif (y2 <= 3.7e-19)
		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)))));
	else
		tmp = Float64(y2 * Float64(Float64(Float64(x * t_1) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * 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)
	t_1 = (c * y0) - (a * y1);
	tmp = 0.0;
	if (y2 <= -3.6e+165)
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	elseif (y2 <= -4.4e-160)
		tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_1)) + (j * ((i * y1) - (b * y0))));
	elseif (y2 <= 3.7e-19)
		tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
	else
		tmp = y2 * (((x * t_1) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
	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[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -3.6e+165], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -4.4e-160], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.7e-19], 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], N[(y2 * N[(N[(N[(x * t$95$1), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
\mathbf{if}\;y2 \leq -3.6 \cdot 10^{+165}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq -4.4 \cdot 10^{-160}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t\_1\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\

\mathbf{elif}\;y2 \leq 3.7 \cdot 10^{-19}:\\
\;\;\;\;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}:\\
\;\;\;\;y2 \cdot \left(\left(x \cdot t\_1 + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y2 < -3.5999999999999998e165

    1. Initial program 18.9%

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

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

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

    if -3.5999999999999998e165 < y2 < -4.4e-160

    1. Initial program 28.3%

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

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

    if -4.4e-160 < y2 < 3.70000000000000005e-19

    1. Initial program 42.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 b around inf 48.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)} \]

    if 3.70000000000000005e-19 < y2

    1. Initial program 24.7%

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

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification53.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -3.6 \cdot 10^{+165}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -4.4 \cdot 10^{-160}:\\ \;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;y2 \leq 3.7 \cdot 10^{-19}:\\ \;\;\;\;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}:\\ \;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 32.0% accurate, 2.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y2 \leq -3.3 \cdot 10^{-30}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -1.05 \cdot 10^{-158}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y2 \leq 2.35 \cdot 10^{-289}:\\ \;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{elif}\;y2 \leq 10^{-193}:\\ \;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\ \mathbf{elif}\;y2 \leq 5.3 \cdot 10^{-42}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \mathbf{elif}\;y2 \leq 4.5 \cdot 10^{+62}:\\ \;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \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 (<= y2 -3.3e-30)
   (* c (* y2 (- (* x y0) (* t y4))))
   (if (<= y2 -1.05e-158)
     (* y0 (* c (- (* x y2) (* z y3))))
     (if (<= y2 2.35e-289)
       (* k (* i (- (* y y5) (* z y1))))
       (if (<= y2 1e-193)
         (* y1 (* z (- (* a y3) (* i k))))
         (if (<= y2 5.3e-42)
           (* b (* j (- (* t y4) (* x y0))))
           (if (<= y2 4.5e+62)
             (* k (* y4 (- (* y1 y2) (* y b))))
             (* k (* y2 (- (* y1 y4) (* y0 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 (y2 <= -3.3e-30) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -1.05e-158) {
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	} else if (y2 <= 2.35e-289) {
		tmp = k * (i * ((y * y5) - (z * y1)));
	} else if (y2 <= 1e-193) {
		tmp = y1 * (z * ((a * y3) - (i * k)));
	} else if (y2 <= 5.3e-42) {
		tmp = b * (j * ((t * y4) - (x * y0)));
	} else if (y2 <= 4.5e+62) {
		tmp = k * (y4 * ((y1 * y2) - (y * b)));
	} else {
		tmp = k * (y2 * ((y1 * y4) - (y0 * 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 (y2 <= (-3.3d-30)) then
        tmp = c * (y2 * ((x * y0) - (t * y4)))
    else if (y2 <= (-1.05d-158)) then
        tmp = y0 * (c * ((x * y2) - (z * y3)))
    else if (y2 <= 2.35d-289) then
        tmp = k * (i * ((y * y5) - (z * y1)))
    else if (y2 <= 1d-193) then
        tmp = y1 * (z * ((a * y3) - (i * k)))
    else if (y2 <= 5.3d-42) then
        tmp = b * (j * ((t * y4) - (x * y0)))
    else if (y2 <= 4.5d+62) then
        tmp = k * (y4 * ((y1 * y2) - (y * b)))
    else
        tmp = k * (y2 * ((y1 * y4) - (y0 * 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 (y2 <= -3.3e-30) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -1.05e-158) {
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	} else if (y2 <= 2.35e-289) {
		tmp = k * (i * ((y * y5) - (z * y1)));
	} else if (y2 <= 1e-193) {
		tmp = y1 * (z * ((a * y3) - (i * k)));
	} else if (y2 <= 5.3e-42) {
		tmp = b * (j * ((t * y4) - (x * y0)));
	} else if (y2 <= 4.5e+62) {
		tmp = k * (y4 * ((y1 * y2) - (y * b)));
	} else {
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if y2 <= -3.3e-30:
		tmp = c * (y2 * ((x * y0) - (t * y4)))
	elif y2 <= -1.05e-158:
		tmp = y0 * (c * ((x * y2) - (z * y3)))
	elif y2 <= 2.35e-289:
		tmp = k * (i * ((y * y5) - (z * y1)))
	elif y2 <= 1e-193:
		tmp = y1 * (z * ((a * y3) - (i * k)))
	elif y2 <= 5.3e-42:
		tmp = b * (j * ((t * y4) - (x * y0)))
	elif y2 <= 4.5e+62:
		tmp = k * (y4 * ((y1 * y2) - (y * b)))
	else:
		tmp = k * (y2 * ((y1 * y4) - (y0 * 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 (y2 <= -3.3e-30)
		tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4))));
	elseif (y2 <= -1.05e-158)
		tmp = Float64(y0 * Float64(c * Float64(Float64(x * y2) - Float64(z * y3))));
	elseif (y2 <= 2.35e-289)
		tmp = Float64(k * Float64(i * Float64(Float64(y * y5) - Float64(z * y1))));
	elseif (y2 <= 1e-193)
		tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k))));
	elseif (y2 <= 5.3e-42)
		tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0))));
	elseif (y2 <= 4.5e+62)
		tmp = Float64(k * Float64(y4 * Float64(Float64(y1 * y2) - Float64(y * b))));
	else
		tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * 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 (y2 <= -3.3e-30)
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	elseif (y2 <= -1.05e-158)
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	elseif (y2 <= 2.35e-289)
		tmp = k * (i * ((y * y5) - (z * y1)));
	elseif (y2 <= 1e-193)
		tmp = y1 * (z * ((a * y3) - (i * k)));
	elseif (y2 <= 5.3e-42)
		tmp = b * (j * ((t * y4) - (x * y0)));
	elseif (y2 <= 4.5e+62)
		tmp = k * (y4 * ((y1 * y2) - (y * b)));
	else
		tmp = k * (y2 * ((y1 * y4) - (y0 * 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[y2, -3.3e-30], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.05e-158], N[(y0 * N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.35e-289], N[(k * N[(i * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1e-193], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.3e-42], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.5e+62], N[(k * N[(y4 * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -3.3 \cdot 10^{-30}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq -1.05 \cdot 10^{-158}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\

\mathbf{elif}\;y2 \leq 2.35 \cdot 10^{-289}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\

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

\mathbf{elif}\;y2 \leq 5.3 \cdot 10^{-42}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\

\mathbf{elif}\;y2 \leq 4.5 \cdot 10^{+62}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if y2 < -3.3000000000000003e-30

    1. Initial program 26.6%

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

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

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

    if -3.3000000000000003e-30 < y2 < -1.04999999999999996e-158

    1. Initial program 23.5%

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

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

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

    if -1.04999999999999996e-158 < y2 < 2.34999999999999983e-289

    1. Initial program 35.2%

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

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

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

    if 2.34999999999999983e-289 < y2 < 1e-193

    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 51.2%

      \[\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 51.8%

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

    if 1e-193 < y2 < 5.3e-42

    1. Initial program 43.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 50.6%

      \[\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 j around inf 47.9%

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

    if 5.3e-42 < y2 < 4.49999999999999999e62

    1. Initial program 27.2%

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

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

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

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

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

        \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(y1 \cdot y2 - b \cdot y\right)}\right) \]
      4. *-commutative59.7%

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

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

    if 4.49999999999999999e62 < y2

    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 y2 around inf 65.3%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -3.3 \cdot 10^{-30}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -1.05 \cdot 10^{-158}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y2 \leq 2.35 \cdot 10^{-289}:\\ \;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{elif}\;y2 \leq 10^{-193}:\\ \;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\ \mathbf{elif}\;y2 \leq 5.3 \cdot 10^{-42}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \mathbf{elif}\;y2 \leq 4.5 \cdot 10^{+62}:\\ \;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 32.1% accurate, 2.6× speedup?

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

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

\mathbf{elif}\;y3 \leq -2.45 \cdot 10^{+92}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) + y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\

\mathbf{elif}\;y3 \leq -1.7 \cdot 10^{-266}:\\
\;\;\;\;y2 \cdot \left(y5 \cdot \left(k \cdot \left(a \cdot \frac{t}{k} - y0\right)\right)\right)\\

\mathbf{elif}\;y3 \leq 1.1 \cdot 10^{+147}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(y1 \cdot \left(\frac{c \cdot y0}{y1} - a\right)\right)\right)\\

\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(a \cdot \left(z \cdot y1\right) - j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y3 < -6.19999999999999971e199

    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 y1 around inf 40.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 65.0%

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

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

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

    if -6.19999999999999971e199 < y3 < -2.4500000000000001e92

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

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

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(b \cdot \left(y \cdot y4\right)\right) + y1 \cdot \left(y2 \cdot y4\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Step-by-step derivation
      1. cancel-sign-sub-inv66.5%

        \[\leadsto k \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(y \cdot y4\right)\right) + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. mul-1-neg66.5%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-b \cdot \left(y \cdot y4\right)\right)} + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      3. associate-*r*66.5%

        \[\leadsto k \cdot \left(\left(\left(-\color{blue}{\left(b \cdot y\right) \cdot y4}\right) + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      4. distribute-lft-neg-in66.5%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-b \cdot y\right) \cdot y4} + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      5. mul-1-neg66.5%

        \[\leadsto k \cdot \left(\left(\color{blue}{\left(-1 \cdot \left(b \cdot y\right)\right)} \cdot y4 + y1 \cdot \left(y2 \cdot y4\right)\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      6. associate-*r*66.5%

        \[\leadsto k \cdot \left(\left(\left(-1 \cdot \left(b \cdot y\right)\right) \cdot y4 + \color{blue}{\left(y1 \cdot y2\right) \cdot y4}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      7. distribute-rgt-in66.5%

        \[\leadsto k \cdot \left(\color{blue}{y4 \cdot \left(-1 \cdot \left(b \cdot y\right) + y1 \cdot y2\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      8. +-commutative66.5%

        \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(y1 \cdot y2 + -1 \cdot \left(b \cdot y\right)\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      9. mul-1-neg66.5%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 + \color{blue}{\left(-b \cdot y\right)}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      10. unsub-neg66.5%

        \[\leadsto k \cdot \left(y4 \cdot \color{blue}{\left(y1 \cdot y2 - b \cdot y\right)} + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      11. *-commutative66.5%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - \color{blue}{y \cdot b}\right) + \left(--1\right) \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      12. metadata-eval66.5%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right) + \color{blue}{1} \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right) \]
      13. *-lft-identity66.5%

        \[\leadsto k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right) + \color{blue}{z \cdot \left(b \cdot y0 - i \cdot y1\right)}\right) \]
    6. Simplified66.5%

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

    if -2.4500000000000001e92 < y3 < -1.69999999999999997e-266

    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 y2 around inf 47.8%

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

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

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

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

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

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

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

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

        \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \left(k \cdot \left(y0 - \color{blue}{a \cdot \frac{t}{k}}\right)\right)\right) \]
    9. Simplified51.1%

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

    if -1.69999999999999997e-266 < y3 < 1.1000000000000001e147

    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 y2 around inf 34.5%

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

      \[\leadsto \color{blue}{x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]
    5. Taylor expanded in y1 around inf 41.5%

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

    if 1.1000000000000001e147 < y3

    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 y3 around -inf 85.3%

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in c around 0 74.5%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(-1 \cdot \left(a \cdot \left(y1 \cdot z\right)\right) + j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(a \cdot \left(y \cdot y5\right)\right)\right)\right)} \]
    5. Taylor expanded in y around 0 74.7%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(-1 \cdot \left(a \cdot \left(y1 \cdot z\right)\right) + j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\right)} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification51.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -6.2 \cdot 10^{+199}:\\ \;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4\right)\\ \mathbf{elif}\;y3 \leq -2.45 \cdot 10^{+92}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) + y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\ \mathbf{elif}\;y3 \leq -1.7 \cdot 10^{-266}:\\ \;\;\;\;y2 \cdot \left(y5 \cdot \left(k \cdot \left(a \cdot \frac{t}{k} - y0\right)\right)\right)\\ \mathbf{elif}\;y3 \leq 1.1 \cdot 10^{+147}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(y1 \cdot \left(\frac{c \cdot y0}{y1} - a\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y3 \cdot \left(a \cdot \left(z \cdot y1\right) - j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 32.0% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{if}\;y2 \leq -3.9 \cdot 10^{-31}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -9.5 \cdot 10^{-159}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y2 \leq 7.8 \cdot 10^{-284}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y2 \leq 4.5 \cdot 10^{-141}:\\ \;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\ \mathbf{elif}\;y2 \leq 1.55 \cdot 10^{+71}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \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
 (let* ((t_1 (* k (* i (- (* y y5) (* z y1))))))
   (if (<= y2 -3.9e-31)
     (* c (* y2 (- (* x y0) (* t y4))))
     (if (<= y2 -9.5e-159)
       (* y0 (* c (- (* x y2) (* z y3))))
       (if (<= y2 7.8e-284)
         t_1
         (if (<= y2 4.5e-141)
           (* y3 (* z (- (* a y1) (* c y0))))
           (if (<= y2 1.55e+71) t_1 (* k (* y2 (- (* y1 y4) (* y0 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 t_1 = k * (i * ((y * y5) - (z * y1)));
	double tmp;
	if (y2 <= -3.9e-31) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -9.5e-159) {
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	} else if (y2 <= 7.8e-284) {
		tmp = t_1;
	} else if (y2 <= 4.5e-141) {
		tmp = y3 * (z * ((a * y1) - (c * y0)));
	} else if (y2 <= 1.55e+71) {
		tmp = t_1;
	} else {
		tmp = k * (y2 * ((y1 * y4) - (y0 * 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) :: t_1
    real(8) :: tmp
    t_1 = k * (i * ((y * y5) - (z * y1)))
    if (y2 <= (-3.9d-31)) then
        tmp = c * (y2 * ((x * y0) - (t * y4)))
    else if (y2 <= (-9.5d-159)) then
        tmp = y0 * (c * ((x * y2) - (z * y3)))
    else if (y2 <= 7.8d-284) then
        tmp = t_1
    else if (y2 <= 4.5d-141) then
        tmp = y3 * (z * ((a * y1) - (c * y0)))
    else if (y2 <= 1.55d+71) then
        tmp = t_1
    else
        tmp = k * (y2 * ((y1 * y4) - (y0 * 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 t_1 = k * (i * ((y * y5) - (z * y1)));
	double tmp;
	if (y2 <= -3.9e-31) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -9.5e-159) {
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	} else if (y2 <= 7.8e-284) {
		tmp = t_1;
	} else if (y2 <= 4.5e-141) {
		tmp = y3 * (z * ((a * y1) - (c * y0)));
	} else if (y2 <= 1.55e+71) {
		tmp = t_1;
	} else {
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = k * (i * ((y * y5) - (z * y1)))
	tmp = 0
	if y2 <= -3.9e-31:
		tmp = c * (y2 * ((x * y0) - (t * y4)))
	elif y2 <= -9.5e-159:
		tmp = y0 * (c * ((x * y2) - (z * y3)))
	elif y2 <= 7.8e-284:
		tmp = t_1
	elif y2 <= 4.5e-141:
		tmp = y3 * (z * ((a * y1) - (c * y0)))
	elif y2 <= 1.55e+71:
		tmp = t_1
	else:
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(k * Float64(i * Float64(Float64(y * y5) - Float64(z * y1))))
	tmp = 0.0
	if (y2 <= -3.9e-31)
		tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4))));
	elseif (y2 <= -9.5e-159)
		tmp = Float64(y0 * Float64(c * Float64(Float64(x * y2) - Float64(z * y3))));
	elseif (y2 <= 7.8e-284)
		tmp = t_1;
	elseif (y2 <= 4.5e-141)
		tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0))));
	elseif (y2 <= 1.55e+71)
		tmp = t_1;
	else
		tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * 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)
	t_1 = k * (i * ((y * y5) - (z * y1)));
	tmp = 0.0;
	if (y2 <= -3.9e-31)
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	elseif (y2 <= -9.5e-159)
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	elseif (y2 <= 7.8e-284)
		tmp = t_1;
	elseif (y2 <= 4.5e-141)
		tmp = y3 * (z * ((a * y1) - (c * y0)));
	elseif (y2 <= 1.55e+71)
		tmp = t_1;
	else
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
	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[(k * N[(i * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -3.9e-31], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -9.5e-159], N[(y0 * N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 7.8e-284], t$95$1, If[LessEqual[y2, 4.5e-141], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.55e+71], t$95$1, N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{if}\;y2 \leq -3.9 \cdot 10^{-31}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq -9.5 \cdot 10^{-159}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\

\mathbf{elif}\;y2 \leq 7.8 \cdot 10^{-284}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y2 \leq 4.5 \cdot 10^{-141}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\

\mathbf{elif}\;y2 \leq 1.55 \cdot 10^{+71}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y2 < -3.9000000000000001e-31

    1. Initial program 26.6%

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

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

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

    if -3.9000000000000001e-31 < y2 < -9.4999999999999997e-159

    1. Initial program 23.5%

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

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

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

    if -9.4999999999999997e-159 < y2 < 7.7999999999999994e-284 or 4.5e-141 < y2 < 1.55000000000000009e71

    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 k around inf 42.8%

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

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

    if 7.7999999999999994e-284 < y2 < 4.5e-141

    1. Initial program 60.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 y3 around -inf 44.2%

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in z around inf 54.5%

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

    if 1.55000000000000009e71 < y2

    1. Initial program 23.1%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -3.9 \cdot 10^{-31}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -9.5 \cdot 10^{-159}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y2 \leq 7.8 \cdot 10^{-284}:\\ \;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{elif}\;y2 \leq 4.5 \cdot 10^{-141}:\\ \;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\ \mathbf{elif}\;y2 \leq 1.55 \cdot 10^{+71}:\\ \;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 30.8% accurate, 2.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -1.2 \cdot 10^{-30}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq -1.2 \cdot 10^{-158}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\

\mathbf{elif}\;y2 \leq 9 \cdot 10^{-288}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\

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

\mathbf{elif}\;y2 \leq 8.5 \cdot 10^{+20}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y2 < -1.19999999999999992e-30

    1. Initial program 26.6%

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

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

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

    if -1.19999999999999992e-30 < y2 < -1.20000000000000004e-158

    1. Initial program 23.5%

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

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

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

    if -1.20000000000000004e-158 < y2 < 9.0000000000000003e-288

    1. Initial program 35.2%

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

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

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

    if 9.0000000000000003e-288 < y2 < 3.50000000000000005e-193

    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 51.2%

      \[\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 51.8%

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

    if 3.50000000000000005e-193 < y2 < 8.5e20

    1. Initial program 39.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 b around inf 46.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 j around inf 46.8%

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

    if 8.5e20 < y2

    1. Initial program 24.7%

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

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

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

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

        \[\leadsto \color{blue}{\left(-y2\right)} \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right) \]
    6. Simplified55.3%

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

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

Alternative 15: 35.2% accurate, 2.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y0 \leq -0.038:\\
\;\;\;\;y2 \cdot \left(y5 \cdot \left(k \cdot \left(a \cdot \frac{t}{k} - y0\right)\right)\right)\\

\mathbf{elif}\;y0 \leq -1.6 \cdot 10^{-164}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\

\mathbf{elif}\;y0 \leq 3.5 \cdot 10^{+177}:\\
\;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

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


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

    1. Initial program 21.8%

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

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot y2\right) \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right)} \]
      2. mul-1-neg50.7%

        \[\leadsto \color{blue}{\left(-y2\right)} \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right) \]
    6. Simplified50.7%

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

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

        \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \left(k \cdot \left(y0 + \color{blue}{\left(-\frac{a \cdot t}{k}\right)}\right)\right)\right) \]
      2. unsub-neg57.3%

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

        \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \left(k \cdot \left(y0 - \color{blue}{a \cdot \frac{t}{k}}\right)\right)\right) \]
    9. Simplified58.9%

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

    if -0.0379999999999999991 < y0 < -1.6e-164

    1. Initial program 36.7%

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

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

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

    if -1.6e-164 < y0 < 3.49999999999999991e177

    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 y2 around inf 41.9%

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

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

    if 3.49999999999999991e177 < y0

    1. Initial program 26.9%

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

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

      \[\leadsto \color{blue}{x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]
    5. Taylor expanded in y1 around inf 62.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y0 \leq -0.038:\\ \;\;\;\;y2 \cdot \left(y5 \cdot \left(k \cdot \left(a \cdot \frac{t}{k} - y0\right)\right)\right)\\ \mathbf{elif}\;y0 \leq -1.6 \cdot 10^{-164}:\\ \;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{elif}\;y0 \leq 3.5 \cdot 10^{+177}:\\ \;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(y1 \cdot \left(\frac{c \cdot y0}{y1} - a\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 31.9% accurate, 2.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -3.9 \cdot 10^{-31}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq 1.62 \cdot 10^{-254}:\\
\;\;\;\;y1 \cdot \left(j \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\

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

\mathbf{elif}\;y2 \leq 2.2 \cdot 10^{-14}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y2 < -3.9000000000000001e-31

    1. Initial program 26.6%

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

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

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

    if -3.9000000000000001e-31 < y2 < 1.62e-254

    1. Initial program 32.1%

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

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

    if 1.62e-254 < y2 < 1e-142

    1. Initial program 56.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 y3 around -inf 48.7%

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in z around inf 57.8%

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

    if 1e-142 < y2 < 2.2000000000000001e-14

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

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

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

    if 2.2000000000000001e-14 < y2

    1. Initial program 24.7%

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

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

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

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

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

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

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

        \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \left(k \cdot \left(y0 + \color{blue}{\left(-\frac{a \cdot t}{k}\right)}\right)\right)\right) \]
      2. unsub-neg54.9%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -3.9 \cdot 10^{-31}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq 1.62 \cdot 10^{-254}:\\ \;\;\;\;y1 \cdot \left(j \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq 10^{-142}:\\ \;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\ \mathbf{elif}\;y2 \leq 2.2 \cdot 10^{-14}:\\ \;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(y5 \cdot \left(k \cdot \left(a \cdot \frac{t}{k} - y0\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 21.6% accurate, 3.0× speedup?

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

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

\mathbf{elif}\;y0 \leq -1.52 \cdot 10^{-55}:\\
\;\;\;\;\left(y \cdot y3\right) \cdot \left(a \cdot \left(-y5\right)\right)\\

\mathbf{elif}\;y0 \leq -1.65 \cdot 10^{-295}:\\
\;\;\;\;j \cdot \left(y1 \cdot \left(y3 \cdot \left(-y4\right)\right)\right)\\

\mathbf{elif}\;y0 \leq 6.9 \cdot 10^{-200}:\\
\;\;\;\;c \cdot \left(t \cdot \left(y2 \cdot \left(-y4\right)\right)\right)\\

\mathbf{elif}\;y0 \leq 9.5 \cdot 10^{+40}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\

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


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

    1. Initial program 17.2%

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

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot y2\right) \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right)} \]
      2. mul-1-neg53.8%

        \[\leadsto \color{blue}{\left(-y2\right)} \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right) \]
    6. Simplified53.8%

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

      \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \color{blue}{\left(k \cdot y0\right)}\right) \]
    8. Step-by-step derivation
      1. *-commutative51.6%

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

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

    if -4.8999999999999999e67 < y0 < -1.5200000000000001e-55

    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 y3 around -inf 48.3%

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in y around inf 49.2%

      \[\leadsto -1 \cdot \color{blue}{\left(y \cdot \left(y3 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*45.8%

        \[\leadsto -1 \cdot \color{blue}{\left(\left(y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    6. Simplified45.8%

      \[\leadsto -1 \cdot \color{blue}{\left(\left(y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    7. Taylor expanded in a around inf 45.5%

      \[\leadsto -1 \cdot \left(\left(y \cdot y3\right) \cdot \color{blue}{\left(a \cdot y5\right)}\right) \]
    8. Step-by-step derivation
      1. *-commutative45.5%

        \[\leadsto -1 \cdot \left(\left(y \cdot y3\right) \cdot \color{blue}{\left(y5 \cdot a\right)}\right) \]
    9. Simplified45.5%

      \[\leadsto -1 \cdot \left(\left(y \cdot y3\right) \cdot \color{blue}{\left(y5 \cdot a\right)}\right) \]

    if -1.5200000000000001e-55 < y0 < -1.6499999999999999e-295

    1. Initial program 43.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 y3 around -inf 36.1%

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in c around 0 32.4%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(-1 \cdot \left(a \cdot \left(y1 \cdot z\right)\right) + j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(a \cdot \left(y \cdot y5\right)\right)\right)\right)} \]
    5. Taylor expanded in y4 around inf 31.2%

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

    if -1.6499999999999999e-295 < y0 < 6.8999999999999999e-200

    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 y2 around inf 46.0%

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

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

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

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

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

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

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

    if 6.8999999999999999e-200 < y0 < 9.5000000000000003e40

    1. Initial program 32.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 37.7%

      \[\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 i around inf 43.6%

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

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

    if 9.5000000000000003e40 < y0

    1. Initial program 24.0%

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

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

      \[\leadsto \color{blue}{x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]
    5. Taylor expanded in c around inf 38.9%

      \[\leadsto x \cdot \left(y2 \cdot \color{blue}{\left(c \cdot y0\right)}\right) \]
  3. Recombined 6 regimes into one program.
  4. Final simplification40.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y0 \leq -4.9 \cdot 10^{+67}:\\ \;\;\;\;y2 \cdot \left(y5 \cdot \left(-k \cdot y0\right)\right)\\ \mathbf{elif}\;y0 \leq -1.52 \cdot 10^{-55}:\\ \;\;\;\;\left(y \cdot y3\right) \cdot \left(a \cdot \left(-y5\right)\right)\\ \mathbf{elif}\;y0 \leq -1.65 \cdot 10^{-295}:\\ \;\;\;\;j \cdot \left(y1 \cdot \left(y3 \cdot \left(-y4\right)\right)\right)\\ \mathbf{elif}\;y0 \leq 6.9 \cdot 10^{-200}:\\ \;\;\;\;c \cdot \left(t \cdot \left(y2 \cdot \left(-y4\right)\right)\right)\\ \mathbf{elif}\;y0 \leq 9.5 \cdot 10^{+40}:\\ \;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 18: 21.7% accurate, 3.0× speedup?

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

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

\mathbf{elif}\;y0 \leq -1.05 \cdot 10^{-55}:\\
\;\;\;\;\left(y \cdot a\right) \cdot \left(y3 \cdot \left(-y5\right)\right)\\

\mathbf{elif}\;y0 \leq -6.8 \cdot 10^{-296}:\\
\;\;\;\;j \cdot \left(y1 \cdot \left(y3 \cdot \left(-y4\right)\right)\right)\\

\mathbf{elif}\;y0 \leq 2.7 \cdot 10^{-202}:\\
\;\;\;\;c \cdot \left(t \cdot \left(y2 \cdot \left(-y4\right)\right)\right)\\

\mathbf{elif}\;y0 \leq 1.55 \cdot 10^{+41}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\

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


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

    1. Initial program 17.2%

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

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot y2\right) \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right)} \]
      2. mul-1-neg53.8%

        \[\leadsto \color{blue}{\left(-y2\right)} \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right) \]
    6. Simplified53.8%

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

      \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \color{blue}{\left(k \cdot y0\right)}\right) \]
    8. Step-by-step derivation
      1. *-commutative51.6%

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

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

    if -4.5999999999999997e67 < y0 < -1.0500000000000001e-55

    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 y3 around -inf 48.3%

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in c around 0 48.8%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(-1 \cdot \left(a \cdot \left(y1 \cdot z\right)\right) + j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(a \cdot \left(y \cdot y5\right)\right)\right)\right)} \]
    5. Taylor expanded in y around inf 38.9%

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

        \[\leadsto -1 \cdot \color{blue}{\left(\left(a \cdot y\right) \cdot \left(y3 \cdot y5\right)\right)} \]
      2. *-commutative41.9%

        \[\leadsto -1 \cdot \left(\left(a \cdot y\right) \cdot \color{blue}{\left(y5 \cdot y3\right)}\right) \]
    7. Simplified41.9%

      \[\leadsto -1 \cdot \color{blue}{\left(\left(a \cdot y\right) \cdot \left(y5 \cdot y3\right)\right)} \]

    if -1.0500000000000001e-55 < y0 < -6.79999999999999993e-296

    1. Initial program 43.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 y3 around -inf 36.1%

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in c around 0 32.4%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(-1 \cdot \left(a \cdot \left(y1 \cdot z\right)\right) + j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(a \cdot \left(y \cdot y5\right)\right)\right)\right)} \]
    5. Taylor expanded in y4 around inf 31.2%

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

    if -6.79999999999999993e-296 < y0 < 2.6999999999999999e-202

    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 y2 around inf 46.0%

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

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

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

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

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

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

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

    if 2.6999999999999999e-202 < y0 < 1.55e41

    1. Initial program 32.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 37.7%

      \[\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 i around inf 43.6%

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

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

    if 1.55e41 < y0

    1. Initial program 24.0%

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

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

      \[\leadsto \color{blue}{x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]
    5. Taylor expanded in c around inf 38.9%

      \[\leadsto x \cdot \left(y2 \cdot \color{blue}{\left(c \cdot y0\right)}\right) \]
  3. Recombined 6 regimes into one program.
  4. Final simplification39.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y0 \leq -4.6 \cdot 10^{+67}:\\ \;\;\;\;y2 \cdot \left(y5 \cdot \left(-k \cdot y0\right)\right)\\ \mathbf{elif}\;y0 \leq -1.05 \cdot 10^{-55}:\\ \;\;\;\;\left(y \cdot a\right) \cdot \left(y3 \cdot \left(-y5\right)\right)\\ \mathbf{elif}\;y0 \leq -6.8 \cdot 10^{-296}:\\ \;\;\;\;j \cdot \left(y1 \cdot \left(y3 \cdot \left(-y4\right)\right)\right)\\ \mathbf{elif}\;y0 \leq 2.7 \cdot 10^{-202}:\\ \;\;\;\;c \cdot \left(t \cdot \left(y2 \cdot \left(-y4\right)\right)\right)\\ \mathbf{elif}\;y0 \leq 1.55 \cdot 10^{+41}:\\ \;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 21.6% accurate, 3.0× speedup?

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

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

\mathbf{elif}\;y0 \leq -1.56 \cdot 10^{-54}:\\
\;\;\;\;a \cdot \left(-y \cdot \left(y3 \cdot y5\right)\right)\\

\mathbf{elif}\;y0 \leq -1.35 \cdot 10^{-295}:\\
\;\;\;\;j \cdot \left(y1 \cdot \left(y3 \cdot \left(-y4\right)\right)\right)\\

\mathbf{elif}\;y0 \leq 1.66 \cdot 10^{-202}:\\
\;\;\;\;c \cdot \left(t \cdot \left(y2 \cdot \left(-y4\right)\right)\right)\\

\mathbf{elif}\;y0 \leq 1.3 \cdot 10^{+41}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\

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


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

    1. Initial program 16.4%

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

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

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

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

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

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

      \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \color{blue}{\left(k \cdot y0\right)}\right) \]
    8. Step-by-step derivation
      1. *-commutative54.0%

        \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \color{blue}{\left(y0 \cdot k\right)}\right) \]
    9. Simplified54.0%

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

    if -2.1500000000000001e86 < y0 < -1.56e-54

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

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in c around 0 43.0%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(-1 \cdot \left(a \cdot \left(y1 \cdot z\right)\right) + j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(a \cdot \left(y \cdot y5\right)\right)\right)\right)} \]
    5. Taylor expanded in y around inf 37.4%

      \[\leadsto -1 \cdot \color{blue}{\left(a \cdot \left(y \cdot \left(y3 \cdot y5\right)\right)\right)} \]

    if -1.56e-54 < y0 < -1.35e-295

    1. Initial program 43.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 y3 around -inf 36.1%

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in c around 0 32.4%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(-1 \cdot \left(a \cdot \left(y1 \cdot z\right)\right) + j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(a \cdot \left(y \cdot y5\right)\right)\right)\right)} \]
    5. Taylor expanded in y4 around inf 31.2%

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

    if -1.35e-295 < y0 < 1.65999999999999997e-202

    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 y2 around inf 46.0%

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

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

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

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

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

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

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

    if 1.65999999999999997e-202 < y0 < 1.3e41

    1. Initial program 32.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 37.7%

      \[\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 i around inf 43.6%

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

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

    if 1.3e41 < y0

    1. Initial program 24.0%

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

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

      \[\leadsto \color{blue}{x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]
    5. Taylor expanded in c around inf 38.9%

      \[\leadsto x \cdot \left(y2 \cdot \color{blue}{\left(c \cdot y0\right)}\right) \]
  3. Recombined 6 regimes into one program.
  4. Final simplification39.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y0 \leq -2.15 \cdot 10^{+86}:\\ \;\;\;\;y2 \cdot \left(y5 \cdot \left(-k \cdot y0\right)\right)\\ \mathbf{elif}\;y0 \leq -1.56 \cdot 10^{-54}:\\ \;\;\;\;a \cdot \left(-y \cdot \left(y3 \cdot y5\right)\right)\\ \mathbf{elif}\;y0 \leq -1.35 \cdot 10^{-295}:\\ \;\;\;\;j \cdot \left(y1 \cdot \left(y3 \cdot \left(-y4\right)\right)\right)\\ \mathbf{elif}\;y0 \leq 1.66 \cdot 10^{-202}:\\ \;\;\;\;c \cdot \left(t \cdot \left(y2 \cdot \left(-y4\right)\right)\right)\\ \mathbf{elif}\;y0 \leq 1.3 \cdot 10^{+41}:\\ \;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 21.6% accurate, 3.0× speedup?

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

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

\mathbf{elif}\;y0 \leq -1.02 \cdot 10^{-54}:\\
\;\;\;\;a \cdot \left(-y \cdot \left(y3 \cdot y5\right)\right)\\

\mathbf{elif}\;y0 \leq -1 \cdot 10^{-211}:\\
\;\;\;\;a \cdot \left(b \cdot \left(t \cdot \left(-z\right)\right)\right)\\

\mathbf{elif}\;y0 \leq 2.3 \cdot 10^{-202}:\\
\;\;\;\;c \cdot \left(t \cdot \left(y2 \cdot \left(-y4\right)\right)\right)\\

\mathbf{elif}\;y0 \leq 7.6 \cdot 10^{+40}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\

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


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

    1. Initial program 16.4%

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

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

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

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

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

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

      \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \color{blue}{\left(k \cdot y0\right)}\right) \]
    8. Step-by-step derivation
      1. *-commutative54.0%

        \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \color{blue}{\left(y0 \cdot k\right)}\right) \]
    9. Simplified54.0%

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

    if -4.8999999999999999e94 < y0 < -1.01999999999999999e-54

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

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in c around 0 43.0%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(-1 \cdot \left(a \cdot \left(y1 \cdot z\right)\right) + j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(a \cdot \left(y \cdot y5\right)\right)\right)\right)} \]
    5. Taylor expanded in y around inf 37.4%

      \[\leadsto -1 \cdot \color{blue}{\left(a \cdot \left(y \cdot \left(y3 \cdot y5\right)\right)\right)} \]

    if -1.01999999999999999e-54 < y0 < -1.00000000000000009e-211

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

      \[\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 37.1%

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

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

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

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

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

    if -1.00000000000000009e-211 < y0 < 2.2999999999999999e-202

    1. Initial program 35.7%

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

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

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

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

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

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

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

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

    if 2.2999999999999999e-202 < y0 < 7.60000000000000009e40

    1. Initial program 32.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 37.7%

      \[\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 i around inf 43.6%

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

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

    if 7.60000000000000009e40 < y0

    1. Initial program 24.0%

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

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

      \[\leadsto \color{blue}{x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]
    5. Taylor expanded in c around inf 38.9%

      \[\leadsto x \cdot \left(y2 \cdot \color{blue}{\left(c \cdot y0\right)}\right) \]
  3. Recombined 6 regimes into one program.
  4. Final simplification39.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y0 \leq -4.9 \cdot 10^{+94}:\\ \;\;\;\;y2 \cdot \left(y5 \cdot \left(-k \cdot y0\right)\right)\\ \mathbf{elif}\;y0 \leq -1.02 \cdot 10^{-54}:\\ \;\;\;\;a \cdot \left(-y \cdot \left(y3 \cdot y5\right)\right)\\ \mathbf{elif}\;y0 \leq -1 \cdot 10^{-211}:\\ \;\;\;\;a \cdot \left(b \cdot \left(t \cdot \left(-z\right)\right)\right)\\ \mathbf{elif}\;y0 \leq 2.3 \cdot 10^{-202}:\\ \;\;\;\;c \cdot \left(t \cdot \left(y2 \cdot \left(-y4\right)\right)\right)\\ \mathbf{elif}\;y0 \leq 7.6 \cdot 10^{+40}:\\ \;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 21: 32.4% accurate, 3.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -3.7 \cdot 10^{+95}:\\
\;\;\;\;y3 \cdot \left(y1 \cdot \left(z \cdot a - j \cdot y4\right)\right)\\

\mathbf{elif}\;y3 \leq -1.1 \cdot 10^{-266}:\\
\;\;\;\;y2 \cdot \left(y5 \cdot \left(k \cdot \left(a \cdot \frac{t}{k} - y0\right)\right)\right)\\

\mathbf{elif}\;y3 \leq 3.2 \cdot 10^{+149}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(y1 \cdot \left(\frac{c \cdot y0}{y1} - a\right)\right)\right)\\

\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(a \cdot \left(z \cdot y1\right) - j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y3 < -3.7000000000000001e95

    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 y3 around -inf 46.9%

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in y1 around inf 50.0%

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

    if -3.7000000000000001e95 < y3 < -1.1e-266

    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 y2 around inf 47.8%

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

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

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

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

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

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

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

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

        \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \left(k \cdot \left(y0 - \color{blue}{a \cdot \frac{t}{k}}\right)\right)\right) \]
    9. Simplified51.1%

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

    if -1.1e-266 < y3 < 3.2000000000000002e149

    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 y2 around inf 34.5%

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

      \[\leadsto \color{blue}{x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]
    5. Taylor expanded in y1 around inf 41.5%

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

    if 3.2000000000000002e149 < y3

    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 y3 around -inf 85.3%

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in c around 0 74.5%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(-1 \cdot \left(a \cdot \left(y1 \cdot z\right)\right) + j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(a \cdot \left(y \cdot y5\right)\right)\right)\right)} \]
    5. Taylor expanded in y around 0 74.7%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(-1 \cdot \left(a \cdot \left(y1 \cdot z\right)\right) + j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification49.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -3.7 \cdot 10^{+95}:\\ \;\;\;\;y3 \cdot \left(y1 \cdot \left(z \cdot a - j \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq -1.1 \cdot 10^{-266}:\\ \;\;\;\;y2 \cdot \left(y5 \cdot \left(k \cdot \left(a \cdot \frac{t}{k} - y0\right)\right)\right)\\ \mathbf{elif}\;y3 \leq 3.2 \cdot 10^{+149}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(y1 \cdot \left(\frac{c \cdot y0}{y1} - a\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y3 \cdot \left(a \cdot \left(z \cdot y1\right) - j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 22: 32.4% accurate, 3.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y2 \leq -2.45 \cdot 10^{-30}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq 3.1 \cdot 10^{-257}:\\ \;\;\;\;y1 \cdot \left(j \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq 6 \cdot 10^{-141}:\\ \;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\ \mathbf{elif}\;y2 \leq 3.6 \cdot 10^{+71}:\\ \;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \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 (<= y2 -2.45e-30)
   (* c (* y2 (- (* x y0) (* t y4))))
   (if (<= y2 3.1e-257)
     (* y1 (* j (- (* x i) (* y3 y4))))
     (if (<= y2 6e-141)
       (* y3 (* z (- (* a y1) (* c y0))))
       (if (<= y2 3.6e+71)
         (* k (* i (- (* y y5) (* z y1))))
         (* k (* y2 (- (* y1 y4) (* y0 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 (y2 <= -2.45e-30) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= 3.1e-257) {
		tmp = y1 * (j * ((x * i) - (y3 * y4)));
	} else if (y2 <= 6e-141) {
		tmp = y3 * (z * ((a * y1) - (c * y0)));
	} else if (y2 <= 3.6e+71) {
		tmp = k * (i * ((y * y5) - (z * y1)));
	} else {
		tmp = k * (y2 * ((y1 * y4) - (y0 * 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 (y2 <= (-2.45d-30)) then
        tmp = c * (y2 * ((x * y0) - (t * y4)))
    else if (y2 <= 3.1d-257) then
        tmp = y1 * (j * ((x * i) - (y3 * y4)))
    else if (y2 <= 6d-141) then
        tmp = y3 * (z * ((a * y1) - (c * y0)))
    else if (y2 <= 3.6d+71) then
        tmp = k * (i * ((y * y5) - (z * y1)))
    else
        tmp = k * (y2 * ((y1 * y4) - (y0 * 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 (y2 <= -2.45e-30) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= 3.1e-257) {
		tmp = y1 * (j * ((x * i) - (y3 * y4)));
	} else if (y2 <= 6e-141) {
		tmp = y3 * (z * ((a * y1) - (c * y0)));
	} else if (y2 <= 3.6e+71) {
		tmp = k * (i * ((y * y5) - (z * y1)));
	} else {
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
	}
	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.45e-30:
		tmp = c * (y2 * ((x * y0) - (t * y4)))
	elif y2 <= 3.1e-257:
		tmp = y1 * (j * ((x * i) - (y3 * y4)))
	elif y2 <= 6e-141:
		tmp = y3 * (z * ((a * y1) - (c * y0)))
	elif y2 <= 3.6e+71:
		tmp = k * (i * ((y * y5) - (z * y1)))
	else:
		tmp = k * (y2 * ((y1 * y4) - (y0 * 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 (y2 <= -2.45e-30)
		tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4))));
	elseif (y2 <= 3.1e-257)
		tmp = Float64(y1 * Float64(j * Float64(Float64(x * i) - Float64(y3 * y4))));
	elseif (y2 <= 6e-141)
		tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0))));
	elseif (y2 <= 3.6e+71)
		tmp = Float64(k * Float64(i * Float64(Float64(y * y5) - Float64(z * y1))));
	else
		tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * 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 (y2 <= -2.45e-30)
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	elseif (y2 <= 3.1e-257)
		tmp = y1 * (j * ((x * i) - (y3 * y4)));
	elseif (y2 <= 6e-141)
		tmp = y3 * (z * ((a * y1) - (c * y0)));
	elseif (y2 <= 3.6e+71)
		tmp = k * (i * ((y * y5) - (z * y1)));
	else
		tmp = k * (y2 * ((y1 * y4) - (y0 * 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[y2, -2.45e-30], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.1e-257], N[(y1 * N[(j * N[(N[(x * i), $MachinePrecision] - N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6e-141], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.6e+71], N[(k * N[(i * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -2.45 \cdot 10^{-30}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq 3.1 \cdot 10^{-257}:\\
\;\;\;\;y1 \cdot \left(j \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq 6 \cdot 10^{-141}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\

\mathbf{elif}\;y2 \leq 3.6 \cdot 10^{+71}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y2 < -2.44999999999999985e-30

    1. Initial program 26.6%

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

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

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

    if -2.44999999999999985e-30 < y2 < 3.10000000000000008e-257

    1. Initial program 32.1%

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

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

    if 3.10000000000000008e-257 < y2 < 5.99999999999999967e-141

    1. Initial program 56.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 y3 around -inf 48.7%

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in z around inf 57.8%

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

    if 5.99999999999999967e-141 < y2 < 3.6e71

    1. Initial program 30.3%

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

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

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

    if 3.6e71 < y2

    1. Initial program 23.1%

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

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

      \[\leadsto \color{blue}{k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification49.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -2.45 \cdot 10^{-30}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq 3.1 \cdot 10^{-257}:\\ \;\;\;\;y1 \cdot \left(j \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq 6 \cdot 10^{-141}:\\ \;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\ \mathbf{elif}\;y2 \leq 3.6 \cdot 10^{+71}:\\ \;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 23: 28.0% accurate, 3.1× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y1 \leq -1.35 \cdot 10^{+191}:\\
\;\;\;\;y2 \cdot \left(a \cdot \left(x \cdot \left(-y1\right)\right)\right)\\

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

\mathbf{elif}\;y1 \leq 1.18 \cdot 10^{-247}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\

\mathbf{elif}\;y1 \leq 6 \cdot 10^{-30}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y1 < -1.34999999999999998e191

    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 y2 around inf 54.5%

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

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

      \[\leadsto y2 \cdot \color{blue}{\left(-1 \cdot \left(a \cdot \left(x \cdot y1\right)\right)\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg64.1%

        \[\leadsto y2 \cdot \color{blue}{\left(-a \cdot \left(x \cdot y1\right)\right)} \]
      2. *-commutative64.1%

        \[\leadsto y2 \cdot \left(-\color{blue}{\left(x \cdot y1\right) \cdot a}\right) \]
      3. distribute-rgt-neg-in64.1%

        \[\leadsto y2 \cdot \color{blue}{\left(\left(x \cdot y1\right) \cdot \left(-a\right)\right)} \]
    7. Simplified64.1%

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

    if -1.34999999999999998e191 < y1 < -3.2000000000000001e153

    1. Initial program 15.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 y1 around inf 53.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 i around inf 46.6%

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

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

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

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

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

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

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

    if -3.2000000000000001e153 < y1 < 1.17999999999999997e-247

    1. Initial program 29.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 40.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 j around inf 39.3%

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

    if 1.17999999999999997e-247 < y1 < 5.9999999999999998e-30

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

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

    if 5.9999999999999998e-30 < y1

    1. Initial program 30.9%

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

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

      \[\leadsto \color{blue}{x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]
    5. Taylor expanded in c around 0 35.9%

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

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(x \cdot \left(y1 \cdot y2\right)\right)} \]
      2. neg-mul-135.9%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(x \cdot \left(y1 \cdot y2\right)\right) \]
      3. associate-*r*35.9%

        \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(x \cdot y1\right) \cdot y2\right)} \]
    7. Simplified35.9%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y1 \leq -1.35 \cdot 10^{+191}:\\ \;\;\;\;y2 \cdot \left(a \cdot \left(x \cdot \left(-y1\right)\right)\right)\\ \mathbf{elif}\;y1 \leq -3.2 \cdot 10^{+153}:\\ \;\;\;\;i \cdot \left(\left(-z\right) \cdot \left(k \cdot y1\right)\right)\\ \mathbf{elif}\;y1 \leq 1.18 \cdot 10^{-247}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \mathbf{elif}\;y1 \leq 6 \cdot 10^{-30}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(\left(-y2\right) \cdot \left(x \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 24: 28.8% accurate, 3.1× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y1 \leq -1.1 \cdot 10^{+191}:\\
\;\;\;\;y2 \cdot \left(a \cdot \left(x \cdot \left(-y1\right)\right)\right)\\

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

\mathbf{elif}\;y1 \leq 5.4 \cdot 10^{-168}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\

\mathbf{elif}\;y1 \leq 5.7 \cdot 10^{+26}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y1 < -1.1e191

    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 y2 around inf 54.5%

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

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

      \[\leadsto y2 \cdot \color{blue}{\left(-1 \cdot \left(a \cdot \left(x \cdot y1\right)\right)\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg64.1%

        \[\leadsto y2 \cdot \color{blue}{\left(-a \cdot \left(x \cdot y1\right)\right)} \]
      2. *-commutative64.1%

        \[\leadsto y2 \cdot \left(-\color{blue}{\left(x \cdot y1\right) \cdot a}\right) \]
      3. distribute-rgt-neg-in64.1%

        \[\leadsto y2 \cdot \color{blue}{\left(\left(x \cdot y1\right) \cdot \left(-a\right)\right)} \]
    7. Simplified64.1%

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

    if -1.1e191 < y1 < -2e153

    1. Initial program 15.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 y1 around inf 53.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 i around inf 46.6%

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

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

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

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

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

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

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

    if -2e153 < y1 < 5.40000000000000031e-168

    1. Initial program 30.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 42.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 j around inf 39.3%

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

    if 5.40000000000000031e-168 < y1 < 5.7000000000000003e26

    1. Initial program 38.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 34.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 36.9%

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

    if 5.7000000000000003e26 < y1

    1. Initial program 30.1%

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

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

      \[\leadsto \color{blue}{x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]
    5. Taylor expanded in c around 0 38.6%

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

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(x \cdot \left(y1 \cdot y2\right)\right)} \]
      2. neg-mul-138.6%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(x \cdot \left(y1 \cdot y2\right)\right) \]
      3. associate-*r*38.7%

        \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(x \cdot y1\right) \cdot y2\right)} \]
    7. Simplified38.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y1 \leq -1.1 \cdot 10^{+191}:\\ \;\;\;\;y2 \cdot \left(a \cdot \left(x \cdot \left(-y1\right)\right)\right)\\ \mathbf{elif}\;y1 \leq -2 \cdot 10^{+153}:\\ \;\;\;\;i \cdot \left(\left(-z\right) \cdot \left(k \cdot y1\right)\right)\\ \mathbf{elif}\;y1 \leq 5.4 \cdot 10^{-168}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \mathbf{elif}\;y1 \leq 5.7 \cdot 10^{+26}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(\left(-y2\right) \cdot \left(x \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 25: 21.8% accurate, 3.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(y2 \cdot \left(c \cdot y0\right)\right)\\ \mathbf{if}\;c \leq -1.25 \cdot 10^{+166}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq -85000000000:\\ \;\;\;\;\left(-y2\right) \cdot \left(y4 \cdot \left(t \cdot c\right)\right)\\ \mathbf{elif}\;c \leq 5.5 \cdot 10^{-253}:\\ \;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\ \mathbf{elif}\;c \leq 1.55 \cdot 10^{-19}:\\ \;\;\;\;a \cdot \left(t \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 (* x (* y2 (* c y0)))))
   (if (<= c -1.25e+166)
     t_1
     (if (<= c -85000000000.0)
       (* (- y2) (* y4 (* t c)))
       (if (<= c 5.5e-253)
         (* i (* j (* x y1)))
         (if (<= c 1.55e-19) (* a (* t (* 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 = x * (y2 * (c * y0));
	double tmp;
	if (c <= -1.25e+166) {
		tmp = t_1;
	} else if (c <= -85000000000.0) {
		tmp = -y2 * (y4 * (t * c));
	} else if (c <= 5.5e-253) {
		tmp = i * (j * (x * y1));
	} else if (c <= 1.55e-19) {
		tmp = a * (t * (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 = x * (y2 * (c * y0))
    if (c <= (-1.25d+166)) then
        tmp = t_1
    else if (c <= (-85000000000.0d0)) then
        tmp = -y2 * (y4 * (t * c))
    else if (c <= 5.5d-253) then
        tmp = i * (j * (x * y1))
    else if (c <= 1.55d-19) then
        tmp = a * (t * (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 = x * (y2 * (c * y0));
	double tmp;
	if (c <= -1.25e+166) {
		tmp = t_1;
	} else if (c <= -85000000000.0) {
		tmp = -y2 * (y4 * (t * c));
	} else if (c <= 5.5e-253) {
		tmp = i * (j * (x * y1));
	} else if (c <= 1.55e-19) {
		tmp = a * (t * (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 = x * (y2 * (c * y0))
	tmp = 0
	if c <= -1.25e+166:
		tmp = t_1
	elif c <= -85000000000.0:
		tmp = -y2 * (y4 * (t * c))
	elif c <= 5.5e-253:
		tmp = i * (j * (x * y1))
	elif c <= 1.55e-19:
		tmp = a * (t * (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(x * Float64(y2 * Float64(c * y0)))
	tmp = 0.0
	if (c <= -1.25e+166)
		tmp = t_1;
	elseif (c <= -85000000000.0)
		tmp = Float64(Float64(-y2) * Float64(y4 * Float64(t * c)));
	elseif (c <= 5.5e-253)
		tmp = Float64(i * Float64(j * Float64(x * y1)));
	elseif (c <= 1.55e-19)
		tmp = Float64(a * Float64(t * 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 = x * (y2 * (c * y0));
	tmp = 0.0;
	if (c <= -1.25e+166)
		tmp = t_1;
	elseif (c <= -85000000000.0)
		tmp = -y2 * (y4 * (t * c));
	elseif (c <= 5.5e-253)
		tmp = i * (j * (x * y1));
	elseif (c <= 1.55e-19)
		tmp = a * (t * (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[(x * N[(y2 * N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.25e+166], t$95$1, If[LessEqual[c, -85000000000.0], N[((-y2) * N[(y4 * N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.5e-253], N[(i * N[(j * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.55e-19], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot \left(y2 \cdot \left(c \cdot y0\right)\right)\\
\mathbf{if}\;c \leq -1.25 \cdot 10^{+166}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;c \leq 5.5 \cdot 10^{-253}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if c < -1.25e166 or 1.5499999999999999e-19 < c

    1. Initial program 24.7%

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

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

      \[\leadsto \color{blue}{x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]
    5. Taylor expanded in c around inf 37.3%

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

    if -1.25e166 < c < -8.5e10

    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 y2 around inf 46.1%

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

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

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

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

        \[\leadsto y2 \cdot \left(-\color{blue}{\left(c \cdot t\right) \cdot y4}\right) \]
      3. distribute-lft-neg-in39.3%

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

        \[\leadsto y2 \cdot \left(\left(-\color{blue}{t \cdot c}\right) \cdot y4\right) \]
      5. distribute-rgt-neg-in39.3%

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

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

    if -8.5e10 < c < 5.49999999999999974e-253

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

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

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

    if 5.49999999999999974e-253 < c < 1.5499999999999999e-19

    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 y2 around inf 50.4%

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot y2\right) \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right)} \]
      2. mul-1-neg44.7%

        \[\leadsto \color{blue}{\left(-y2\right)} \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right) \]
    6. Simplified44.7%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -1.25 \cdot 10^{+166}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0\right)\right)\\ \mathbf{elif}\;c \leq -85000000000:\\ \;\;\;\;\left(-y2\right) \cdot \left(y4 \cdot \left(t \cdot c\right)\right)\\ \mathbf{elif}\;c \leq 5.5 \cdot 10^{-253}:\\ \;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\ \mathbf{elif}\;c \leq 1.55 \cdot 10^{-19}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 26: 32.1% accurate, 3.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y2 \leq -2.85 \cdot 10^{-30}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -1.25 \cdot 10^{-158}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y2 \leq 6.3 \cdot 10^{+72}:\\ \;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \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 (<= y2 -2.85e-30)
   (* c (* y2 (- (* x y0) (* t y4))))
   (if (<= y2 -1.25e-158)
     (* y0 (* c (- (* x y2) (* z y3))))
     (if (<= y2 6.3e+72)
       (* k (* i (- (* y y5) (* z y1))))
       (* k (* y2 (- (* y1 y4) (* y0 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 (y2 <= -2.85e-30) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -1.25e-158) {
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	} else if (y2 <= 6.3e+72) {
		tmp = k * (i * ((y * y5) - (z * y1)));
	} else {
		tmp = k * (y2 * ((y1 * y4) - (y0 * 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 (y2 <= (-2.85d-30)) then
        tmp = c * (y2 * ((x * y0) - (t * y4)))
    else if (y2 <= (-1.25d-158)) then
        tmp = y0 * (c * ((x * y2) - (z * y3)))
    else if (y2 <= 6.3d+72) then
        tmp = k * (i * ((y * y5) - (z * y1)))
    else
        tmp = k * (y2 * ((y1 * y4) - (y0 * 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 (y2 <= -2.85e-30) {
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	} else if (y2 <= -1.25e-158) {
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	} else if (y2 <= 6.3e+72) {
		tmp = k * (i * ((y * y5) - (z * y1)));
	} else {
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
	}
	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.85e-30:
		tmp = c * (y2 * ((x * y0) - (t * y4)))
	elif y2 <= -1.25e-158:
		tmp = y0 * (c * ((x * y2) - (z * y3)))
	elif y2 <= 6.3e+72:
		tmp = k * (i * ((y * y5) - (z * y1)))
	else:
		tmp = k * (y2 * ((y1 * y4) - (y0 * 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 (y2 <= -2.85e-30)
		tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4))));
	elseif (y2 <= -1.25e-158)
		tmp = Float64(y0 * Float64(c * Float64(Float64(x * y2) - Float64(z * y3))));
	elseif (y2 <= 6.3e+72)
		tmp = Float64(k * Float64(i * Float64(Float64(y * y5) - Float64(z * y1))));
	else
		tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * 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 (y2 <= -2.85e-30)
		tmp = c * (y2 * ((x * y0) - (t * y4)));
	elseif (y2 <= -1.25e-158)
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	elseif (y2 <= 6.3e+72)
		tmp = k * (i * ((y * y5) - (z * y1)));
	else
		tmp = k * (y2 * ((y1 * y4) - (y0 * 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[y2, -2.85e-30], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.25e-158], N[(y0 * N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6.3e+72], N[(k * N[(i * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -2.85 \cdot 10^{-30}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq -1.25 \cdot 10^{-158}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\

\mathbf{elif}\;y2 \leq 6.3 \cdot 10^{+72}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y2 < -2.84999999999999989e-30

    1. Initial program 26.6%

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

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

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

    if -2.84999999999999989e-30 < y2 < -1.24999999999999993e-158

    1. Initial program 23.5%

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

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

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

    if -1.24999999999999993e-158 < y2 < 6.29999999999999963e72

    1. Initial program 39.7%

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

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

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

    if 6.29999999999999963e72 < y2

    1. Initial program 23.1%

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

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

      \[\leadsto \color{blue}{k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification46.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -2.85 \cdot 10^{-30}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -1.25 \cdot 10^{-158}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y2 \leq 6.3 \cdot 10^{+72}:\\ \;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 27: 29.6% accurate, 3.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -9.8 \cdot 10^{-95}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq 5.3 \cdot 10^{-194}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

\mathbf{elif}\;y2 \leq 5.5 \cdot 10^{+22}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\

\mathbf{else}:\\
\;\;\;\;k \cdot \left(y5 \cdot \left(y0 \cdot \left(-y2\right)\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y2 < -9.8e-95

    1. Initial program 28.5%

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

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

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

    if -9.8e-95 < y2 < 5.3000000000000002e-194

    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 39.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 35.4%

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

    if 5.3000000000000002e-194 < y2 < 5.50000000000000021e22

    1. Initial program 39.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 b around inf 46.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 j around inf 46.8%

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

    if 5.50000000000000021e22 < y2

    1. Initial program 24.7%

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

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

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

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

        \[\leadsto \color{blue}{\left(-y2\right)} \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right) \]
    6. Simplified55.3%

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

      \[\leadsto \color{blue}{-1 \cdot \left(k \cdot \left(y0 \cdot \left(y2 \cdot y5\right)\right)\right)} \]
    8. Step-by-step derivation
      1. mul-1-neg49.6%

        \[\leadsto \color{blue}{-k \cdot \left(y0 \cdot \left(y2 \cdot y5\right)\right)} \]
      2. *-commutative49.6%

        \[\leadsto -\color{blue}{\left(y0 \cdot \left(y2 \cdot y5\right)\right) \cdot k} \]
      3. distribute-rgt-neg-in49.6%

        \[\leadsto \color{blue}{\left(y0 \cdot \left(y2 \cdot y5\right)\right) \cdot \left(-k\right)} \]
      4. associate-*r*44.6%

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

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

      \[\leadsto \color{blue}{\left(\left(y2 \cdot y0\right) \cdot y5\right) \cdot \left(-k\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification43.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -9.8 \cdot 10^{-95}:\\ \;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq 5.3 \cdot 10^{-194}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{elif}\;y2 \leq 5.5 \cdot 10^{+22}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(y5 \cdot \left(y0 \cdot \left(-y2\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 28: 27.6% accurate, 3.6× speedup?

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

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

\mathbf{elif}\;y0 \leq -5.3 \cdot 10^{-55}:\\
\;\;\;\;\left(y \cdot y3\right) \cdot \left(a \cdot \left(-y5\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y0 < -4.2000000000000003e67

    1. Initial program 17.2%

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

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot y2\right) \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right)} \]
      2. mul-1-neg53.8%

        \[\leadsto \color{blue}{\left(-y2\right)} \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right) \]
    6. Simplified53.8%

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

      \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \color{blue}{\left(k \cdot y0\right)}\right) \]
    8. Step-by-step derivation
      1. *-commutative51.6%

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

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

    if -4.2000000000000003e67 < y0 < -5.3000000000000003e-55

    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 y3 around -inf 48.3%

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in y around inf 49.2%

      \[\leadsto -1 \cdot \color{blue}{\left(y \cdot \left(y3 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*45.8%

        \[\leadsto -1 \cdot \color{blue}{\left(\left(y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    6. Simplified45.8%

      \[\leadsto -1 \cdot \color{blue}{\left(\left(y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    7. Taylor expanded in a around inf 45.5%

      \[\leadsto -1 \cdot \left(\left(y \cdot y3\right) \cdot \color{blue}{\left(a \cdot y5\right)}\right) \]
    8. Step-by-step derivation
      1. *-commutative45.5%

        \[\leadsto -1 \cdot \left(\left(y \cdot y3\right) \cdot \color{blue}{\left(y5 \cdot a\right)}\right) \]
    9. Simplified45.5%

      \[\leadsto -1 \cdot \left(\left(y \cdot y3\right) \cdot \color{blue}{\left(y5 \cdot a\right)}\right) \]

    if -5.3000000000000003e-55 < y0 < 7.6000000000000004e66

    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 b around inf 34.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 a around inf 32.4%

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

    if 7.6000000000000004e66 < y0

    1. Initial program 22.7%

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

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

      \[\leadsto \color{blue}{x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]
    5. Taylor expanded in c around inf 41.7%

      \[\leadsto x \cdot \left(y2 \cdot \color{blue}{\left(c \cdot y0\right)}\right) \]
  3. Recombined 4 regimes into one program.
  4. Final simplification38.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y0 \leq -4.2 \cdot 10^{+67}:\\ \;\;\;\;y2 \cdot \left(y5 \cdot \left(-k \cdot y0\right)\right)\\ \mathbf{elif}\;y0 \leq -5.3 \cdot 10^{-55}:\\ \;\;\;\;\left(y \cdot y3\right) \cdot \left(a \cdot \left(-y5\right)\right)\\ \mathbf{elif}\;y0 \leq 7.6 \cdot 10^{+66}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 29: 32.2% accurate, 4.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -7.4 \cdot 10^{-94}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq 1.36 \cdot 10^{+70}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y2 < -7.3999999999999996e-94

    1. Initial program 28.5%

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

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

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

    if -7.3999999999999996e-94 < y2 < 1.35999999999999995e70

    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 k around inf 35.2%

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

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

    if 1.35999999999999995e70 < y2

    1. Initial program 23.1%

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

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

      \[\leadsto \color{blue}{k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification44.9%

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

Alternative 30: 29.5% accurate, 4.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -7.4 \cdot 10^{-94}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq 2.9 \cdot 10^{+89}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\

\mathbf{else}:\\
\;\;\;\;k \cdot \left(y5 \cdot \left(y0 \cdot \left(-y2\right)\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y2 < -7.3999999999999996e-94

    1. Initial program 28.5%

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

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

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

    if -7.3999999999999996e-94 < y2 < 2.90000000000000025e89

    1. Initial program 34.7%

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

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

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

    if 2.90000000000000025e89 < y2

    1. Initial program 24.0%

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

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

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

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

        \[\leadsto \color{blue}{\left(-y2\right)} \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right) \]
    6. Simplified55.6%

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

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

        \[\leadsto \color{blue}{-k \cdot \left(y0 \cdot \left(y2 \cdot y5\right)\right)} \]
      2. *-commutative55.1%

        \[\leadsto -\color{blue}{\left(y0 \cdot \left(y2 \cdot y5\right)\right) \cdot k} \]
      3. distribute-rgt-neg-in55.1%

        \[\leadsto \color{blue}{\left(y0 \cdot \left(y2 \cdot y5\right)\right) \cdot \left(-k\right)} \]
      4. associate-*r*48.3%

        \[\leadsto \color{blue}{\left(\left(y0 \cdot y2\right) \cdot y5\right)} \cdot \left(-k\right) \]
      5. *-commutative48.3%

        \[\leadsto \left(\color{blue}{\left(y2 \cdot y0\right)} \cdot y5\right) \cdot \left(-k\right) \]
    9. Simplified48.3%

      \[\leadsto \color{blue}{\left(\left(y2 \cdot y0\right) \cdot y5\right) \cdot \left(-k\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification43.4%

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

Alternative 31: 22.1% accurate, 5.3× speedup?

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

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

\mathbf{elif}\;y0 \leq 4.6 \cdot 10^{-52}:\\
\;\;\;\;y2 \cdot \left(a \cdot \left(x \cdot \left(-y1\right)\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y0 < -2.25e111

    1. Initial program 13.0%

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

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

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

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

        \[\leadsto \color{blue}{\left(-y2\right)} \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right) \]
    6. Simplified59.4%

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

      \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \color{blue}{\left(k \cdot y0\right)}\right) \]
    8. Step-by-step derivation
      1. *-commutative56.8%

        \[\leadsto \left(-y2\right) \cdot \left(y5 \cdot \color{blue}{\left(y0 \cdot k\right)}\right) \]
    9. Simplified56.8%

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

    if -2.25e111 < y0 < 4.59999999999999989e-52

    1. Initial program 36.1%

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

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

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

      \[\leadsto y2 \cdot \color{blue}{\left(-1 \cdot \left(a \cdot \left(x \cdot y1\right)\right)\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg28.0%

        \[\leadsto y2 \cdot \color{blue}{\left(-a \cdot \left(x \cdot y1\right)\right)} \]
      2. *-commutative28.0%

        \[\leadsto y2 \cdot \left(-\color{blue}{\left(x \cdot y1\right) \cdot a}\right) \]
      3. distribute-rgt-neg-in28.0%

        \[\leadsto y2 \cdot \color{blue}{\left(\left(x \cdot y1\right) \cdot \left(-a\right)\right)} \]
    7. Simplified28.0%

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

    if 4.59999999999999989e-52 < y0

    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 y2 around inf 42.2%

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

      \[\leadsto \color{blue}{x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]
    5. Taylor expanded in c around inf 33.7%

      \[\leadsto x \cdot \left(y2 \cdot \color{blue}{\left(c \cdot y0\right)}\right) \]
  3. Recombined 3 regimes into one program.
  4. Final simplification34.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y0 \leq -2.25 \cdot 10^{+111}:\\ \;\;\;\;y2 \cdot \left(y5 \cdot \left(-k \cdot y0\right)\right)\\ \mathbf{elif}\;y0 \leq 4.6 \cdot 10^{-52}:\\ \;\;\;\;y2 \cdot \left(a \cdot \left(x \cdot \left(-y1\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 32: 21.9% accurate, 5.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -1.05 \cdot 10^{-21} \lor \neg \left(y5 \leq 1.7 \cdot 10^{-55}\right):\\
\;\;\;\;y2 \cdot \left(a \cdot \left(t \cdot y5\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y5 < -1.05000000000000006e-21 or 1.69999999999999986e-55 < y5

    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 y2 around inf 44.9%

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

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

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

    if -1.05000000000000006e-21 < y5 < 1.69999999999999986e-55

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

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

      \[\leadsto i \cdot \left(y1 \cdot \color{blue}{\left(j \cdot x\right)}\right) \]
    6. Step-by-step derivation
      1. *-commutative30.2%

        \[\leadsto i \cdot \left(y1 \cdot \color{blue}{\left(x \cdot j\right)}\right) \]
    7. Simplified30.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -1.05 \cdot 10^{-21} \lor \neg \left(y5 \leq 1.7 \cdot 10^{-55}\right):\\ \;\;\;\;y2 \cdot \left(a \cdot \left(t \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(\left(x \cdot j\right) \cdot y1\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 33: 21.7% accurate, 5.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -1.9 \cdot 10^{-22} \lor \neg \left(y5 \leq 7.6 \cdot 10^{-74}\right):\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y5 < -1.90000000000000012e-22 or 7.5999999999999993e-74 < y5

    1. Initial program 27.1%

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

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot y2\right) \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right)} \]
      2. mul-1-neg41.7%

        \[\leadsto \color{blue}{\left(-y2\right)} \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right) \]
    6. Simplified41.7%

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

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

    if -1.90000000000000012e-22 < y5 < 7.5999999999999993e-74

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

      \[\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 i around inf 38.9%

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

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

        \[\leadsto i \cdot \left(y1 \cdot \color{blue}{\left(x \cdot j\right)}\right) \]
    7. Simplified30.5%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -1.9 \cdot 10^{-22} \lor \neg \left(y5 \leq 7.6 \cdot 10^{-74}\right):\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(\left(x \cdot j\right) \cdot y1\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 34: 21.7% accurate, 5.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -1.05 \cdot 10^{-22} \lor \neg \left(y5 \leq 1.2 \cdot 10^{-72}\right):\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y5 < -1.05000000000000004e-22 or 1.2e-72 < y5

    1. Initial program 27.1%

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

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot y2\right) \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right)} \]
      2. mul-1-neg41.7%

        \[\leadsto \color{blue}{\left(-y2\right)} \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right) \]
    6. Simplified41.7%

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

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

    if -1.05000000000000004e-22 < y5 < 1.2e-72

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

      \[\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 i around inf 38.9%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -1.05 \cdot 10^{-22} \lor \neg \left(y5 \leq 1.2 \cdot 10^{-72}\right):\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 35: 20.6% accurate, 5.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.26 \cdot 10^{+28} \lor \neg \left(x \leq 9.6 \cdot 10^{+230}\right):\\ \;\;\;\;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 (or (<= x -1.26e+28) (not (<= x 9.6e+230)))
   (* 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 ((x <= -1.26e+28) || !(x <= 9.6e+230)) {
		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 ((x <= (-1.26d+28)) .or. (.not. (x <= 9.6d+230))) 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 ((x <= -1.26e+28) || !(x <= 9.6e+230)) {
		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 (x <= -1.26e+28) or not (x <= 9.6e+230):
		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 ((x <= -1.26e+28) || !(x <= 9.6e+230))
		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 ((x <= -1.26e+28) || ~((x <= 9.6e+230)))
		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[Or[LessEqual[x, -1.26e+28], N[Not[LessEqual[x, 9.6e+230]], $MachinePrecision]], 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}\;x \leq -1.26 \cdot 10^{+28} \lor \neg \left(x \leq 9.6 \cdot 10^{+230}\right):\\
\;\;\;\;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 x < -1.26e28 or 9.59999999999999992e230 < x

    1. Initial program 19.4%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 41.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 a around inf 45.4%

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

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

    if -1.26e28 < x < 9.59999999999999992e230

    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 y2 around inf 40.4%

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot y2\right) \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right)} \]
      2. mul-1-neg35.9%

        \[\leadsto \color{blue}{\left(-y2\right)} \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right) \]
    6. Simplified35.9%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.26 \cdot 10^{+28} \lor \neg \left(x \leq 9.6 \cdot 10^{+230}\right):\\ \;\;\;\;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 36: 21.8% accurate, 5.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y2 \leq -1.85 \cdot 10^{-55}:\\ \;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\ \mathbf{elif}\;y2 \leq 2.3 \cdot 10^{-20}:\\ \;\;\;\;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 (<= y2 -1.85e-55)
   (* c (* x (* y0 y2)))
   (if (<= y2 2.3e-20) (* 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 (y2 <= -1.85e-55) {
		tmp = c * (x * (y0 * y2));
	} else if (y2 <= 2.3e-20) {
		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 (y2 <= (-1.85d-55)) then
        tmp = c * (x * (y0 * y2))
    else if (y2 <= 2.3d-20) 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 (y2 <= -1.85e-55) {
		tmp = c * (x * (y0 * y2));
	} else if (y2 <= 2.3e-20) {
		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 y2 <= -1.85e-55:
		tmp = c * (x * (y0 * y2))
	elif y2 <= 2.3e-20:
		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 (y2 <= -1.85e-55)
		tmp = Float64(c * Float64(x * Float64(y0 * y2)));
	elseif (y2 <= 2.3e-20)
		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 (y2 <= -1.85e-55)
		tmp = c * (x * (y0 * y2));
	elseif (y2 <= 2.3e-20)
		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[y2, -1.85e-55], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.3e-20], 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}\;y2 \leq -1.85 \cdot 10^{-55}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\

\mathbf{elif}\;y2 \leq 2.3 \cdot 10^{-20}:\\
\;\;\;\;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 3 regimes
  2. if y2 < -1.84999999999999993e-55

    1. Initial program 28.4%

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

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

      \[\leadsto \color{blue}{x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]
    5. Taylor expanded in c around inf 33.5%

      \[\leadsto \color{blue}{c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative33.5%

        \[\leadsto c \cdot \left(x \cdot \color{blue}{\left(y2 \cdot y0\right)}\right) \]
    7. Simplified33.5%

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

    if -1.84999999999999993e-55 < y2 < 2.2999999999999999e-20

    1. Initial program 36.1%

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

      \[\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 33.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 21.5%

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

    if 2.2999999999999999e-20 < y2

    1. Initial program 24.7%

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -1.85 \cdot 10^{-55}:\\ \;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\ \mathbf{elif}\;y2 \leq 2.3 \cdot 10^{-20}:\\ \;\;\;\;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: 20.6% accurate, 5.6× speedup?

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

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

\mathbf{elif}\;x \leq 8.5 \cdot 10^{+230}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\

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


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

    1. Initial program 18.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 39.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 a around inf 40.3%

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

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

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

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

    if -1.26e28 < x < 8.499999999999999e230

    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 y2 around inf 40.4%

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot y2\right) \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right)} \]
      2. mul-1-neg35.9%

        \[\leadsto \color{blue}{\left(-y2\right)} \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right) \]
    6. Simplified35.9%

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

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

    if 8.499999999999999e230 < x

    1. Initial program 23.5%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 47.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 a around inf 65.4%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.26 \cdot 10^{+28}:\\ \;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\ \mathbf{elif}\;x \leq 8.5 \cdot 10^{+230}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 38: 16.9% 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 30.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 33.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 a around inf 27.8%

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

    \[\leadsto \color{blue}{a \cdot \left(b \cdot \left(x \cdot y\right)\right)} \]
  6. Final simplification17.3%

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

Developer Target 1: 27.5% 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 2024139 
(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)))))