Linear.Matrix:det44 from linear-1.19.1.3

Percentage Accurate: 29.8% → 39.7%
Time: 43.2s
Alternatives: 28
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 28 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.8% 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: 39.7% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot y2 - z \cdot y3\\ t_2 := j \cdot y3 - k \cdot y2\\ t_3 := z \cdot k - x \cdot j\\ t_4 := z \cdot y3 - x \cdot y2\\ \mathbf{if}\;y1 \leq -8.4 \cdot 10^{+82}:\\ \;\;\;\;y1 \cdot \left(i \cdot \left(x \cdot j - z \cdot k\right) - \left(a \cdot t\_1 + y4 \cdot t\_2\right)\right)\\ \mathbf{elif}\;y1 \leq -5.3 \cdot 10^{-104}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right) - \left(i \cdot \left(x \cdot y - z \cdot t\right) + y0 \cdot t\_4\right)\right)\\ \mathbf{elif}\;y1 \leq 1.25 \cdot 10^{-36}:\\ \;\;\;\;y0 \cdot \left(\left(y5 \cdot t\_2 + c \cdot t\_1\right) + b \cdot t\_3\right)\\ \mathbf{elif}\;y1 \leq 2.9 \cdot 10^{+65}:\\ \;\;\;\;\left(j \cdot \left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + \left(y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right) + \left(\left(b \cdot y4 - i \cdot y5\right) \cdot \left(t \cdot j - y \cdot k\right) - \left(a \cdot b - c \cdot i\right) \cdot \left(z \cdot t - x \cdot y\right)\right)\right)\right) + \left(y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot t\_3\right)\\ \mathbf{elif}\;y1 \leq 2.6 \cdot 10^{+204}:\\ \;\;\;\;j \cdot \left(y1 \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y1 \cdot t\_4\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 (- (* x y2) (* z y3)))
        (t_2 (- (* j y3) (* k y2)))
        (t_3 (- (* z k) (* x j)))
        (t_4 (- (* z y3) (* x y2))))
   (if (<= y1 -8.4e+82)
     (* y1 (- (* i (- (* x j) (* z k))) (+ (* a t_1) (* y4 t_2))))
     (if (<= y1 -5.3e-104)
       (*
        c
        (-
         (* y4 (- (* y y3) (* t y2)))
         (+ (* i (- (* x y) (* z t))) (* y0 t_4))))
       (if (<= y1 1.25e-36)
         (* y0 (+ (+ (* y5 t_2) (* c t_1)) (* b t_3)))
         (if (<= y1 2.9e+65)
           (+
            (+
             (* j (* y3 (- (* y0 y5) (* y1 y4))))
             (+
              (* y3 (* z (- (* a y1) (* c y0))))
              (-
               (* (- (* b y4) (* i y5)) (- (* t j) (* y k)))
               (* (- (* a b) (* c i)) (- (* z t) (* x y))))))
            (+
             (* y (* y3 (- (* c y4) (* a y5))))
             (* (- (* b y0) (* i y1)) t_3)))
           (if (<= y1 2.6e+204)
             (* j (* y1 (- (* x i) (* y3 y4))))
             (* a (* y1 t_4)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (x * y2) - (z * y3);
	double t_2 = (j * y3) - (k * y2);
	double t_3 = (z * k) - (x * j);
	double t_4 = (z * y3) - (x * y2);
	double tmp;
	if (y1 <= -8.4e+82) {
		tmp = y1 * ((i * ((x * j) - (z * k))) - ((a * t_1) + (y4 * t_2)));
	} else if (y1 <= -5.3e-104) {
		tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * ((x * y) - (z * t))) + (y0 * t_4)));
	} else if (y1 <= 1.25e-36) {
		tmp = y0 * (((y5 * t_2) + (c * t_1)) + (b * t_3));
	} else if (y1 <= 2.9e+65) {
		tmp = ((j * (y3 * ((y0 * y5) - (y1 * y4)))) + ((y3 * (z * ((a * y1) - (c * y0)))) + ((((b * y4) - (i * y5)) * ((t * j) - (y * k))) - (((a * b) - (c * i)) * ((z * t) - (x * y)))))) + ((y * (y3 * ((c * y4) - (a * y5)))) + (((b * y0) - (i * y1)) * t_3));
	} else if (y1 <= 2.6e+204) {
		tmp = j * (y1 * ((x * i) - (y3 * y4)));
	} else {
		tmp = a * (y1 * t_4);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: t_4
    real(8) :: tmp
    t_1 = (x * y2) - (z * y3)
    t_2 = (j * y3) - (k * y2)
    t_3 = (z * k) - (x * j)
    t_4 = (z * y3) - (x * y2)
    if (y1 <= (-8.4d+82)) then
        tmp = y1 * ((i * ((x * j) - (z * k))) - ((a * t_1) + (y4 * t_2)))
    else if (y1 <= (-5.3d-104)) then
        tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * ((x * y) - (z * t))) + (y0 * t_4)))
    else if (y1 <= 1.25d-36) then
        tmp = y0 * (((y5 * t_2) + (c * t_1)) + (b * t_3))
    else if (y1 <= 2.9d+65) then
        tmp = ((j * (y3 * ((y0 * y5) - (y1 * y4)))) + ((y3 * (z * ((a * y1) - (c * y0)))) + ((((b * y4) - (i * y5)) * ((t * j) - (y * k))) - (((a * b) - (c * i)) * ((z * t) - (x * y)))))) + ((y * (y3 * ((c * y4) - (a * y5)))) + (((b * y0) - (i * y1)) * t_3))
    else if (y1 <= 2.6d+204) then
        tmp = j * (y1 * ((x * i) - (y3 * y4)))
    else
        tmp = a * (y1 * t_4)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (x * y2) - (z * y3);
	double t_2 = (j * y3) - (k * y2);
	double t_3 = (z * k) - (x * j);
	double t_4 = (z * y3) - (x * y2);
	double tmp;
	if (y1 <= -8.4e+82) {
		tmp = y1 * ((i * ((x * j) - (z * k))) - ((a * t_1) + (y4 * t_2)));
	} else if (y1 <= -5.3e-104) {
		tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * ((x * y) - (z * t))) + (y0 * t_4)));
	} else if (y1 <= 1.25e-36) {
		tmp = y0 * (((y5 * t_2) + (c * t_1)) + (b * t_3));
	} else if (y1 <= 2.9e+65) {
		tmp = ((j * (y3 * ((y0 * y5) - (y1 * y4)))) + ((y3 * (z * ((a * y1) - (c * y0)))) + ((((b * y4) - (i * y5)) * ((t * j) - (y * k))) - (((a * b) - (c * i)) * ((z * t) - (x * y)))))) + ((y * (y3 * ((c * y4) - (a * y5)))) + (((b * y0) - (i * y1)) * t_3));
	} else if (y1 <= 2.6e+204) {
		tmp = j * (y1 * ((x * i) - (y3 * y4)));
	} else {
		tmp = a * (y1 * t_4);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = (x * y2) - (z * y3)
	t_2 = (j * y3) - (k * y2)
	t_3 = (z * k) - (x * j)
	t_4 = (z * y3) - (x * y2)
	tmp = 0
	if y1 <= -8.4e+82:
		tmp = y1 * ((i * ((x * j) - (z * k))) - ((a * t_1) + (y4 * t_2)))
	elif y1 <= -5.3e-104:
		tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * ((x * y) - (z * t))) + (y0 * t_4)))
	elif y1 <= 1.25e-36:
		tmp = y0 * (((y5 * t_2) + (c * t_1)) + (b * t_3))
	elif y1 <= 2.9e+65:
		tmp = ((j * (y3 * ((y0 * y5) - (y1 * y4)))) + ((y3 * (z * ((a * y1) - (c * y0)))) + ((((b * y4) - (i * y5)) * ((t * j) - (y * k))) - (((a * b) - (c * i)) * ((z * t) - (x * y)))))) + ((y * (y3 * ((c * y4) - (a * y5)))) + (((b * y0) - (i * y1)) * t_3))
	elif y1 <= 2.6e+204:
		tmp = j * (y1 * ((x * i) - (y3 * y4)))
	else:
		tmp = a * (y1 * t_4)
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(x * y2) - Float64(z * y3))
	t_2 = Float64(Float64(j * y3) - Float64(k * y2))
	t_3 = Float64(Float64(z * k) - Float64(x * j))
	t_4 = Float64(Float64(z * y3) - Float64(x * y2))
	tmp = 0.0
	if (y1 <= -8.4e+82)
		tmp = Float64(y1 * Float64(Float64(i * Float64(Float64(x * j) - Float64(z * k))) - Float64(Float64(a * t_1) + Float64(y4 * t_2))));
	elseif (y1 <= -5.3e-104)
		tmp = Float64(c * Float64(Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))) - Float64(Float64(i * Float64(Float64(x * y) - Float64(z * t))) + Float64(y0 * t_4))));
	elseif (y1 <= 1.25e-36)
		tmp = Float64(y0 * Float64(Float64(Float64(y5 * t_2) + Float64(c * t_1)) + Float64(b * t_3)));
	elseif (y1 <= 2.9e+65)
		tmp = Float64(Float64(Float64(j * Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))) + Float64(Float64(Float64(Float64(b * y4) - Float64(i * y5)) * Float64(Float64(t * j) - Float64(y * k))) - Float64(Float64(Float64(a * b) - Float64(c * i)) * Float64(Float64(z * t) - Float64(x * y)))))) + Float64(Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))) + Float64(Float64(Float64(b * y0) - Float64(i * y1)) * t_3)));
	elseif (y1 <= 2.6e+204)
		tmp = Float64(j * Float64(y1 * Float64(Float64(x * i) - Float64(y3 * y4))));
	else
		tmp = Float64(a * Float64(y1 * t_4));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = (x * y2) - (z * y3);
	t_2 = (j * y3) - (k * y2);
	t_3 = (z * k) - (x * j);
	t_4 = (z * y3) - (x * y2);
	tmp = 0.0;
	if (y1 <= -8.4e+82)
		tmp = y1 * ((i * ((x * j) - (z * k))) - ((a * t_1) + (y4 * t_2)));
	elseif (y1 <= -5.3e-104)
		tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * ((x * y) - (z * t))) + (y0 * t_4)));
	elseif (y1 <= 1.25e-36)
		tmp = y0 * (((y5 * t_2) + (c * t_1)) + (b * t_3));
	elseif (y1 <= 2.9e+65)
		tmp = ((j * (y3 * ((y0 * y5) - (y1 * y4)))) + ((y3 * (z * ((a * y1) - (c * y0)))) + ((((b * y4) - (i * y5)) * ((t * j) - (y * k))) - (((a * b) - (c * i)) * ((z * t) - (x * y)))))) + ((y * (y3 * ((c * y4) - (a * y5)))) + (((b * y0) - (i * y1)) * t_3));
	elseif (y1 <= 2.6e+204)
		tmp = j * (y1 * ((x * i) - (y3 * y4)));
	else
		tmp = a * (y1 * t_4);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -8.4e+82], N[(y1 * N[(N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t$95$1), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -5.3e-104], N[(c * N[(N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(i * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.25e-36], N[(y0 * N[(N[(N[(y5 * t$95$2), $MachinePrecision] + N[(c * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 2.9e+65], N[(N[(N[(j * N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision] * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 2.6e+204], N[(j * N[(y1 * N[(N[(x * i), $MachinePrecision] - N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y1 * t$95$4), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot y2 - z \cdot y3\\
t_2 := j \cdot y3 - k \cdot y2\\
t_3 := z \cdot k - x \cdot j\\
t_4 := z \cdot y3 - x \cdot y2\\
\mathbf{if}\;y1 \leq -8.4 \cdot 10^{+82}:\\
\;\;\;\;y1 \cdot \left(i \cdot \left(x \cdot j - z \cdot k\right) - \left(a \cdot t\_1 + y4 \cdot t\_2\right)\right)\\

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

\mathbf{elif}\;y1 \leq 1.25 \cdot 10^{-36}:\\
\;\;\;\;y0 \cdot \left(\left(y5 \cdot t\_2 + c \cdot t\_1\right) + b \cdot t\_3\right)\\

\mathbf{elif}\;y1 \leq 2.9 \cdot 10^{+65}:\\
\;\;\;\;\left(j \cdot \left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + \left(y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right) + \left(\left(b \cdot y4 - i \cdot y5\right) \cdot \left(t \cdot j - y \cdot k\right) - \left(a \cdot b - c \cdot i\right) \cdot \left(z \cdot t - x \cdot y\right)\right)\right)\right) + \left(y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot t\_3\right)\\

\mathbf{elif}\;y1 \leq 2.6 \cdot 10^{+204}:\\
\;\;\;\;j \cdot \left(y1 \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(y1 \cdot t\_4\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y1 < -8.4000000000000001e82

    1. Initial program 23.7%

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

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

    if -8.4000000000000001e82 < y1 < -5.30000000000000018e-104

    1. Initial program 26.1%

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

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 64.4%

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

    if -5.30000000000000018e-104 < y1 < 1.25000000000000001e-36

    1. Initial program 26.7%

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

      \[\leadsto \color{blue}{y0 \cdot \left(\left(-1 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]

    if 1.25000000000000001e-36 < y1 < 2.9e65

    1. Initial program 54.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 0 73.2%

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

    if 2.9e65 < y1 < 2.6000000000000001e204

    1. Initial program 12.9%

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

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

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

        \[\leadsto j \cdot \color{blue}{\left(\left(-1 \cdot y1\right) \cdot \left(y3 \cdot y4 - i \cdot x\right)\right)} \]
      2. mul-1-neg52.7%

        \[\leadsto j \cdot \left(\color{blue}{\left(-y1\right)} \cdot \left(y3 \cdot y4 - i \cdot x\right)\right) \]
    6. Simplified52.7%

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

    if 2.6000000000000001e204 < y1

    1. Initial program 9.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. Simplified9.1%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 48.7%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y1 around inf 67.2%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y1 \leq -8.4 \cdot 10^{+82}:\\ \;\;\;\;y1 \cdot \left(i \cdot \left(x \cdot j - z \cdot k\right) - \left(a \cdot \left(x \cdot y2 - z \cdot y3\right) + y4 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\right)\\ \mathbf{elif}\;y1 \leq -5.3 \cdot 10^{-104}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right) - \left(i \cdot \left(x \cdot y - z \cdot t\right) + y0 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\right)\\ \mathbf{elif}\;y1 \leq 1.25 \cdot 10^{-36}:\\ \;\;\;\;y0 \cdot \left(\left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) + c \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y1 \leq 2.9 \cdot 10^{+65}:\\ \;\;\;\;\left(j \cdot \left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + \left(y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right) + \left(\left(b \cdot y4 - i \cdot y5\right) \cdot \left(t \cdot j - y \cdot k\right) - \left(a \cdot b - c \cdot i\right) \cdot \left(z \cdot t - x \cdot y\right)\right)\right)\right) + \left(y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y1 \leq 2.6 \cdot 10^{+204}:\\ \;\;\;\;j \cdot \left(y1 \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 52.0% accurate, 0.5× speedup?

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

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

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


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

    1. Initial program 96.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

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

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

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

Alternative 3: 40.8% accurate, 1.7× speedup?

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

\\
\begin{array}{l}
t_1 := y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(z \cdot \left(c \cdot y0 - a \cdot y1\right) + j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\right)\\
\mathbf{if}\;y3 \leq -8 \cdot 10^{+163}:\\
\;\;\;\;t\_1\\

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y3 < -7.9999999999999995e163 or 1.09999999999999997e130 < y3

    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 y3 around -inf 67.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)} \]

    if -7.9999999999999995e163 < y3 < -8.3999999999999999e-10

    1. Initial program 21.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. Simplified21.6%

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

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y1 around inf 57.6%

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

        \[\leadsto a \cdot \color{blue}{\left(\left(-1 \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)} \]
      2. mul-1-neg57.6%

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

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

    if -8.3999999999999999e-10 < y3 < 6.20000000000000001e-145

    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 j around inf 38.5%

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

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

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

    if 6.20000000000000001e-145 < y3 < 1.01999999999999998e-103

    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. Simplified33.3%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 50.3%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in t around -inf 75.4%

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

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

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

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

    if 1.01999999999999998e-103 < y3 < 1.09999999999999997e130

    1. Initial program 20.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 y0 around inf 57.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)} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification57.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -8 \cdot 10^{+163}:\\ \;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(z \cdot \left(c \cdot y0 - a \cdot y1\right) + j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\right)\\ \mathbf{elif}\;y3 \leq -8.4 \cdot 10^{-10}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\ \mathbf{elif}\;y3 \leq 6.2 \cdot 10^{-145}:\\ \;\;\;\;j \cdot \left(\left(i \cdot \left(x \cdot y1\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - b \cdot \left(x \cdot y0\right)\right)\\ \mathbf{elif}\;y3 \leq 1.02 \cdot 10^{-103}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5 - z \cdot b\right)\right)\\ \mathbf{elif}\;y3 \leq 1.1 \cdot 10^{+130}:\\ \;\;\;\;y0 \cdot \left(\left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) + c \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(z \cdot \left(c \cdot y0 - a \cdot y1\right) + j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 37.0% accurate, 1.9× speedup?

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

\\
\begin{array}{l}
t_1 := y \cdot y3 - t \cdot y2\\
t_2 := z \cdot y3 - x \cdot y2\\
\mathbf{if}\;y1 \leq -5 \cdot 10^{+199}:\\
\;\;\;\;j \cdot \left(\left(i \cdot \left(x \cdot y1\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - b \cdot \left(x \cdot y0\right)\right)\\

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

\mathbf{elif}\;y1 \leq -4.5 \cdot 10^{-104}:\\
\;\;\;\;c \cdot \left(y4 \cdot t\_1 - \left(i \cdot \left(x \cdot y - z \cdot t\right) + y0 \cdot t\_2\right)\right)\\

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

\mathbf{elif}\;y1 \leq 1.4 \cdot 10^{+204}:\\
\;\;\;\;j \cdot \left(y1 \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(y1 \cdot t\_2\right)\\


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

    1. Initial program 18.8%

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

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

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

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

    if -4.9999999999999998e199 < y1 < -5.7999999999999997e132

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

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

    if -5.7999999999999997e132 < y1 < -4.4999999999999997e-104

    1. Initial program 25.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. Simplified27.7%

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

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

    if -4.4999999999999997e-104 < y1 < 6e74

    1. Initial program 32.2%

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

    if 6e74 < y1 < 1.40000000000000012e204

    1. Initial program 10.7%

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

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

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

        \[\leadsto j \cdot \color{blue}{\left(\left(-1 \cdot y1\right) \cdot \left(y3 \cdot y4 - i \cdot x\right)\right)} \]
      2. mul-1-neg54.6%

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

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

    if 1.40000000000000012e204 < y1

    1. Initial program 9.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. Simplified9.1%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 48.7%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y1 around inf 67.2%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y1 \leq -5 \cdot 10^{+199}:\\ \;\;\;\;j \cdot \left(\left(i \cdot \left(x \cdot y1\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - b \cdot \left(x \cdot y0\right)\right)\\ \mathbf{elif}\;y1 \leq -5.8 \cdot 10^{+132}:\\ \;\;\;\;y4 \cdot \left(\left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right) - b \cdot \left(y \cdot k - t \cdot j\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;y1 \leq -4.5 \cdot 10^{-104}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right) - \left(i \cdot \left(x \cdot y - z \cdot t\right) + y0 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\right)\\ \mathbf{elif}\;y1 \leq 6 \cdot 10^{+74}:\\ \;\;\;\;y0 \cdot \left(\left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) + c \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y1 \leq 1.4 \cdot 10^{+204}:\\ \;\;\;\;j \cdot \left(y1 \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 42.0% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot y0 - a \cdot y1\\ t_2 := y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(z \cdot t\_1 + j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\right)\\ \mathbf{if}\;y3 \leq -8.6 \cdot 10^{+163}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y3 \leq -1.02 \cdot 10^{-10}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\ \mathbf{elif}\;y3 \leq 8.5 \cdot 10^{-200}:\\ \;\;\;\;j \cdot \left(\left(i \cdot \left(x \cdot y1\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - b \cdot \left(x \cdot y0\right)\right)\\ \mathbf{elif}\;y3 \leq 3.1 \cdot 10^{+114}:\\ \;\;\;\;y2 \cdot \left(\left(x \cdot t\_1 - k \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (- (* c y0) (* a y1)))
        (t_2
         (*
          y3
          (-
           (* y (- (* c y4) (* a y5)))
           (+ (* z t_1) (* j (- (* y1 y4) (* y0 y5))))))))
   (if (<= y3 -8.6e+163)
     t_2
     (if (<= y3 -1.02e-10)
       (* a (* y1 (- (* z y3) (* x y2))))
       (if (<= y3 8.5e-200)
         (*
          j
          (- (+ (* i (* x y1)) (* t (- (* b y4) (* i y5)))) (* b (* x y0))))
         (if (<= y3 3.1e+114)
           (*
            y2
            (+
             (- (* x t_1) (* k (- (* y0 y5) (* y1 y4))))
             (* t (- (* a y5) (* c y4)))))
           t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (c * y0) - (a * y1);
	double t_2 = y3 * ((y * ((c * y4) - (a * y5))) - ((z * t_1) + (j * ((y1 * y4) - (y0 * y5)))));
	double tmp;
	if (y3 <= -8.6e+163) {
		tmp = t_2;
	} else if (y3 <= -1.02e-10) {
		tmp = a * (y1 * ((z * y3) - (x * y2)));
	} else if (y3 <= 8.5e-200) {
		tmp = j * (((i * (x * y1)) + (t * ((b * y4) - (i * y5)))) - (b * (x * y0)));
	} else if (y3 <= 3.1e+114) {
		tmp = y2 * (((x * t_1) - (k * ((y0 * y5) - (y1 * y4)))) + (t * ((a * y5) - (c * y4))));
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = (c * y0) - (a * y1)
    t_2 = y3 * ((y * ((c * y4) - (a * y5))) - ((z * t_1) + (j * ((y1 * y4) - (y0 * y5)))))
    if (y3 <= (-8.6d+163)) then
        tmp = t_2
    else if (y3 <= (-1.02d-10)) then
        tmp = a * (y1 * ((z * y3) - (x * y2)))
    else if (y3 <= 8.5d-200) then
        tmp = j * (((i * (x * y1)) + (t * ((b * y4) - (i * y5)))) - (b * (x * y0)))
    else if (y3 <= 3.1d+114) then
        tmp = y2 * (((x * t_1) - (k * ((y0 * y5) - (y1 * y4)))) + (t * ((a * y5) - (c * y4))))
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (c * y0) - (a * y1);
	double t_2 = y3 * ((y * ((c * y4) - (a * y5))) - ((z * t_1) + (j * ((y1 * y4) - (y0 * y5)))));
	double tmp;
	if (y3 <= -8.6e+163) {
		tmp = t_2;
	} else if (y3 <= -1.02e-10) {
		tmp = a * (y1 * ((z * y3) - (x * y2)));
	} else if (y3 <= 8.5e-200) {
		tmp = j * (((i * (x * y1)) + (t * ((b * y4) - (i * y5)))) - (b * (x * y0)));
	} else if (y3 <= 3.1e+114) {
		tmp = y2 * (((x * t_1) - (k * ((y0 * y5) - (y1 * y4)))) + (t * ((a * y5) - (c * y4))));
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = (c * y0) - (a * y1)
	t_2 = y3 * ((y * ((c * y4) - (a * y5))) - ((z * t_1) + (j * ((y1 * y4) - (y0 * y5)))))
	tmp = 0
	if y3 <= -8.6e+163:
		tmp = t_2
	elif y3 <= -1.02e-10:
		tmp = a * (y1 * ((z * y3) - (x * y2)))
	elif y3 <= 8.5e-200:
		tmp = j * (((i * (x * y1)) + (t * ((b * y4) - (i * y5)))) - (b * (x * y0)))
	elif y3 <= 3.1e+114:
		tmp = y2 * (((x * t_1) - (k * ((y0 * y5) - (y1 * y4)))) + (t * ((a * y5) - (c * y4))))
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(c * y0) - Float64(a * y1))
	t_2 = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) - Float64(Float64(z * t_1) + Float64(j * Float64(Float64(y1 * y4) - Float64(y0 * y5))))))
	tmp = 0.0
	if (y3 <= -8.6e+163)
		tmp = t_2;
	elseif (y3 <= -1.02e-10)
		tmp = Float64(a * Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2))));
	elseif (y3 <= 8.5e-200)
		tmp = Float64(j * Float64(Float64(Float64(i * Float64(x * y1)) + Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) - Float64(b * Float64(x * y0))));
	elseif (y3 <= 3.1e+114)
		tmp = Float64(y2 * Float64(Float64(Float64(x * t_1) - Float64(k * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4)))));
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = (c * y0) - (a * y1);
	t_2 = y3 * ((y * ((c * y4) - (a * y5))) - ((z * t_1) + (j * ((y1 * y4) - (y0 * y5)))));
	tmp = 0.0;
	if (y3 <= -8.6e+163)
		tmp = t_2;
	elseif (y3 <= -1.02e-10)
		tmp = a * (y1 * ((z * y3) - (x * y2)));
	elseif (y3 <= 8.5e-200)
		tmp = j * (((i * (x * y1)) + (t * ((b * y4) - (i * y5)))) - (b * (x * y0)));
	elseif (y3 <= 3.1e+114)
		tmp = y2 * (((x * t_1) - (k * ((y0 * y5) - (y1 * y4)))) + (t * ((a * y5) - (c * y4))));
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(z * t$95$1), $MachinePrecision] + N[(j * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -8.6e+163], t$95$2, If[LessEqual[y3, -1.02e-10], N[(a * N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 8.5e-200], N[(j * N[(N[(N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.1e+114], N[(y2 * N[(N[(N[(x * t$95$1), $MachinePrecision] - N[(k * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(z \cdot t\_1 + j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\right)\\
\mathbf{if}\;y3 \leq -8.6 \cdot 10^{+163}:\\
\;\;\;\;t\_2\\

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

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

\mathbf{elif}\;y3 \leq 3.1 \cdot 10^{+114}:\\
\;\;\;\;y2 \cdot \left(\left(x \cdot t\_1 - k \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y3 < -8.6000000000000004e163 or 3.1e114 < y3

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

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

    if -8.6000000000000004e163 < y3 < -1.01999999999999997e-10

    1. Initial program 21.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. Simplified21.6%

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

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y1 around inf 57.6%

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

        \[\leadsto a \cdot \color{blue}{\left(\left(-1 \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)} \]
      2. mul-1-neg57.6%

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

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

    if -1.01999999999999997e-10 < y3 < 8.50000000000000014e-200

    1. Initial program 28.1%

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

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

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

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

    if 8.50000000000000014e-200 < y3 < 3.1e114

    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 51.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)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification55.1%

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

Alternative 6: 37.6% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y3 \leq -4.7 \cdot 10^{+190}:\\ \;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right) + t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\ \mathbf{elif}\;y3 \leq -1.4 \cdot 10^{-9}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\ \mathbf{elif}\;y3 \leq 3.2 \cdot 10^{-191}:\\ \;\;\;\;j \cdot \left(\left(i \cdot \left(x \cdot y1\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - b \cdot \left(x \cdot y0\right)\right)\\ \mathbf{elif}\;y3 \leq 2.3 \cdot 10^{+95}:\\ \;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) - k \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y3 \cdot \left(z \cdot y1 - y \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 -4.7e+190)
   (* y4 (+ (* y1 (- (* k y2) (* j y3))) (* t (- (* b j) (* c y2)))))
   (if (<= y3 -1.4e-9)
     (* a (* y1 (- (* z y3) (* x y2))))
     (if (<= y3 3.2e-191)
       (* j (- (+ (* i (* x y1)) (* t (- (* b y4) (* i y5)))) (* b (* x y0))))
       (if (<= y3 2.3e+95)
         (*
          y2
          (+
           (- (* x (- (* c y0) (* a y1))) (* k (- (* y0 y5) (* y1 y4))))
           (* t (- (* a y5) (* c y4)))))
         (* a (* y3 (- (* z y1) (* y 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 <= -4.7e+190) {
		tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (t * ((b * j) - (c * y2))));
	} else if (y3 <= -1.4e-9) {
		tmp = a * (y1 * ((z * y3) - (x * y2)));
	} else if (y3 <= 3.2e-191) {
		tmp = j * (((i * (x * y1)) + (t * ((b * y4) - (i * y5)))) - (b * (x * y0)));
	} else if (y3 <= 2.3e+95) {
		tmp = y2 * (((x * ((c * y0) - (a * y1))) - (k * ((y0 * y5) - (y1 * y4)))) + (t * ((a * y5) - (c * y4))));
	} else {
		tmp = a * (y3 * ((z * y1) - (y * 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 <= (-4.7d+190)) then
        tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (t * ((b * j) - (c * y2))))
    else if (y3 <= (-1.4d-9)) then
        tmp = a * (y1 * ((z * y3) - (x * y2)))
    else if (y3 <= 3.2d-191) then
        tmp = j * (((i * (x * y1)) + (t * ((b * y4) - (i * y5)))) - (b * (x * y0)))
    else if (y3 <= 2.3d+95) then
        tmp = y2 * (((x * ((c * y0) - (a * y1))) - (k * ((y0 * y5) - (y1 * y4)))) + (t * ((a * y5) - (c * y4))))
    else
        tmp = a * (y3 * ((z * y1) - (y * 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 <= -4.7e+190) {
		tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (t * ((b * j) - (c * y2))));
	} else if (y3 <= -1.4e-9) {
		tmp = a * (y1 * ((z * y3) - (x * y2)));
	} else if (y3 <= 3.2e-191) {
		tmp = j * (((i * (x * y1)) + (t * ((b * y4) - (i * y5)))) - (b * (x * y0)));
	} else if (y3 <= 2.3e+95) {
		tmp = y2 * (((x * ((c * y0) - (a * y1))) - (k * ((y0 * y5) - (y1 * y4)))) + (t * ((a * y5) - (c * y4))));
	} else {
		tmp = a * (y3 * ((z * y1) - (y * 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 <= -4.7e+190:
		tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (t * ((b * j) - (c * y2))))
	elif y3 <= -1.4e-9:
		tmp = a * (y1 * ((z * y3) - (x * y2)))
	elif y3 <= 3.2e-191:
		tmp = j * (((i * (x * y1)) + (t * ((b * y4) - (i * y5)))) - (b * (x * y0)))
	elif y3 <= 2.3e+95:
		tmp = y2 * (((x * ((c * y0) - (a * y1))) - (k * ((y0 * y5) - (y1 * y4)))) + (t * ((a * y5) - (c * y4))))
	else:
		tmp = a * (y3 * ((z * y1) - (y * 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 <= -4.7e+190)
		tmp = Float64(y4 * Float64(Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3))) + Float64(t * Float64(Float64(b * j) - Float64(c * y2)))));
	elseif (y3 <= -1.4e-9)
		tmp = Float64(a * Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2))));
	elseif (y3 <= 3.2e-191)
		tmp = Float64(j * Float64(Float64(Float64(i * Float64(x * y1)) + Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) - Float64(b * Float64(x * y0))));
	elseif (y3 <= 2.3e+95)
		tmp = Float64(y2 * Float64(Float64(Float64(x * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(k * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4)))));
	else
		tmp = Float64(a * Float64(y3 * Float64(Float64(z * y1) - Float64(y * 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 <= -4.7e+190)
		tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (t * ((b * j) - (c * y2))));
	elseif (y3 <= -1.4e-9)
		tmp = a * (y1 * ((z * y3) - (x * y2)));
	elseif (y3 <= 3.2e-191)
		tmp = j * (((i * (x * y1)) + (t * ((b * y4) - (i * y5)))) - (b * (x * y0)));
	elseif (y3 <= 2.3e+95)
		tmp = y2 * (((x * ((c * y0) - (a * y1))) - (k * ((y0 * y5) - (y1 * y4)))) + (t * ((a * y5) - (c * y4))));
	else
		tmp = a * (y3 * ((z * y1) - (y * 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, -4.7e+190], N[(y4 * N[(N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.4e-9], N[(a * N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.2e-191], N[(j * N[(N[(N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.3e+95], N[(y2 * N[(N[(N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y3 * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -4.7 \cdot 10^{+190}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right) + t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\

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

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

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

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


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

    1. Initial program 20.7%

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

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

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

    if -4.6999999999999998e190 < y3 < -1.39999999999999992e-9

    1. Initial program 19.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. Simplified19.6%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 39.8%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y1 around inf 52.3%

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

        \[\leadsto a \cdot \color{blue}{\left(\left(-1 \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)} \]
      2. mul-1-neg52.3%

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

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

    if -1.39999999999999992e-9 < y3 < 3.2000000000000003e-191

    1. Initial program 28.1%

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

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

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

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

    if 3.2000000000000003e-191 < y3 < 2.29999999999999997e95

    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 y2 around inf 51.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)} \]

    if 2.29999999999999997e95 < y3

    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. Simplified20.5%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 37.3%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y3 around inf 53.5%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -4.7 \cdot 10^{+190}:\\ \;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right) + t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\ \mathbf{elif}\;y3 \leq -1.4 \cdot 10^{-9}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\ \mathbf{elif}\;y3 \leq 3.2 \cdot 10^{-191}:\\ \;\;\;\;j \cdot \left(\left(i \cdot \left(x \cdot y1\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - b \cdot \left(x \cdot y0\right)\right)\\ \mathbf{elif}\;y3 \leq 2.3 \cdot 10^{+95}:\\ \;\;\;\;y2 \cdot \left(\left(x \cdot \left(c \cdot y0 - a \cdot y1\right) - k \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 31.9% accurate, 2.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(\left(i \cdot \left(x \cdot y1\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - b \cdot \left(x \cdot y0\right)\right)\\ \mathbf{if}\;z \leq -3.4 \cdot 10^{+86}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;z \leq -3.45 \cdot 10^{-130}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -2.2 \cdot 10^{-254}:\\ \;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\ \mathbf{elif}\;z \leq 1.75 \cdot 10^{-40}:\\ \;\;\;\;c \cdot \left(y \cdot \left(i \cdot \left(\frac{y3 \cdot y4}{i} - x\right)\right)\right)\\ \mathbf{elif}\;z \leq 1.12 \cdot 10^{+29}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 6 \cdot 10^{+154}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{+213}:\\ \;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1
         (*
          j
          (- (+ (* i (* x y1)) (* t (- (* b y4) (* i y5)))) (* b (* x y0))))))
   (if (<= z -3.4e+86)
     (* y0 (* c (- (* x y2) (* z y3))))
     (if (<= z -3.45e-130)
       t_1
       (if (<= z -2.2e-254)
         (* y0 (* y5 (- (* j y3) (* k y2))))
         (if (<= z 1.75e-40)
           (* c (* y (* i (- (/ (* y3 y4) i) x))))
           (if (<= z 1.12e+29)
             t_1
             (if (<= z 6e+154)
               (* x (* y2 (- (* c y0) (* a y1))))
               (if (<= z 2.8e+213)
                 (* i (* j (- (* x y1) (* t y5))))
                 (* a (* z (- (* y1 y3) (* t b)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = j * (((i * (x * y1)) + (t * ((b * y4) - (i * y5)))) - (b * (x * y0)));
	double tmp;
	if (z <= -3.4e+86) {
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	} else if (z <= -3.45e-130) {
		tmp = t_1;
	} else if (z <= -2.2e-254) {
		tmp = y0 * (y5 * ((j * y3) - (k * y2)));
	} else if (z <= 1.75e-40) {
		tmp = c * (y * (i * (((y3 * y4) / i) - x)));
	} else if (z <= 1.12e+29) {
		tmp = t_1;
	} else if (z <= 6e+154) {
		tmp = x * (y2 * ((c * y0) - (a * y1)));
	} else if (z <= 2.8e+213) {
		tmp = i * (j * ((x * y1) - (t * y5)));
	} else {
		tmp = a * (z * ((y1 * y3) - (t * b)));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = j * (((i * (x * y1)) + (t * ((b * y4) - (i * y5)))) - (b * (x * y0)))
    if (z <= (-3.4d+86)) then
        tmp = y0 * (c * ((x * y2) - (z * y3)))
    else if (z <= (-3.45d-130)) then
        tmp = t_1
    else if (z <= (-2.2d-254)) then
        tmp = y0 * (y5 * ((j * y3) - (k * y2)))
    else if (z <= 1.75d-40) then
        tmp = c * (y * (i * (((y3 * y4) / i) - x)))
    else if (z <= 1.12d+29) then
        tmp = t_1
    else if (z <= 6d+154) then
        tmp = x * (y2 * ((c * y0) - (a * y1)))
    else if (z <= 2.8d+213) then
        tmp = i * (j * ((x * y1) - (t * y5)))
    else
        tmp = a * (z * ((y1 * y3) - (t * b)))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = j * (((i * (x * y1)) + (t * ((b * y4) - (i * y5)))) - (b * (x * y0)));
	double tmp;
	if (z <= -3.4e+86) {
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	} else if (z <= -3.45e-130) {
		tmp = t_1;
	} else if (z <= -2.2e-254) {
		tmp = y0 * (y5 * ((j * y3) - (k * y2)));
	} else if (z <= 1.75e-40) {
		tmp = c * (y * (i * (((y3 * y4) / i) - x)));
	} else if (z <= 1.12e+29) {
		tmp = t_1;
	} else if (z <= 6e+154) {
		tmp = x * (y2 * ((c * y0) - (a * y1)));
	} else if (z <= 2.8e+213) {
		tmp = i * (j * ((x * y1) - (t * y5)));
	} else {
		tmp = a * (z * ((y1 * y3) - (t * b)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = j * (((i * (x * y1)) + (t * ((b * y4) - (i * y5)))) - (b * (x * y0)))
	tmp = 0
	if z <= -3.4e+86:
		tmp = y0 * (c * ((x * y2) - (z * y3)))
	elif z <= -3.45e-130:
		tmp = t_1
	elif z <= -2.2e-254:
		tmp = y0 * (y5 * ((j * y3) - (k * y2)))
	elif z <= 1.75e-40:
		tmp = c * (y * (i * (((y3 * y4) / i) - x)))
	elif z <= 1.12e+29:
		tmp = t_1
	elif z <= 6e+154:
		tmp = x * (y2 * ((c * y0) - (a * y1)))
	elif z <= 2.8e+213:
		tmp = i * (j * ((x * y1) - (t * y5)))
	else:
		tmp = a * (z * ((y1 * y3) - (t * b)))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(j * Float64(Float64(Float64(i * Float64(x * y1)) + Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) - Float64(b * Float64(x * y0))))
	tmp = 0.0
	if (z <= -3.4e+86)
		tmp = Float64(y0 * Float64(c * Float64(Float64(x * y2) - Float64(z * y3))));
	elseif (z <= -3.45e-130)
		tmp = t_1;
	elseif (z <= -2.2e-254)
		tmp = Float64(y0 * Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2))));
	elseif (z <= 1.75e-40)
		tmp = Float64(c * Float64(y * Float64(i * Float64(Float64(Float64(y3 * y4) / i) - x))));
	elseif (z <= 1.12e+29)
		tmp = t_1;
	elseif (z <= 6e+154)
		tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1))));
	elseif (z <= 2.8e+213)
		tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5))));
	else
		tmp = Float64(a * Float64(z * Float64(Float64(y1 * y3) - Float64(t * b))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = j * (((i * (x * y1)) + (t * ((b * y4) - (i * y5)))) - (b * (x * y0)));
	tmp = 0.0;
	if (z <= -3.4e+86)
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	elseif (z <= -3.45e-130)
		tmp = t_1;
	elseif (z <= -2.2e-254)
		tmp = y0 * (y5 * ((j * y3) - (k * y2)));
	elseif (z <= 1.75e-40)
		tmp = c * (y * (i * (((y3 * y4) / i) - x)));
	elseif (z <= 1.12e+29)
		tmp = t_1;
	elseif (z <= 6e+154)
		tmp = x * (y2 * ((c * y0) - (a * y1)));
	elseif (z <= 2.8e+213)
		tmp = i * (j * ((x * y1) - (t * y5)));
	else
		tmp = a * (z * ((y1 * y3) - (t * b)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * N[(N[(N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.4e+86], N[(y0 * N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.45e-130], t$95$1, If[LessEqual[z, -2.2e-254], N[(y0 * N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.75e-40], N[(c * N[(y * N[(i * N[(N[(N[(y3 * y4), $MachinePrecision] / i), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.12e+29], t$95$1, If[LessEqual[z, 6e+154], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e+213], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(z * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;z \leq -3.45 \cdot 10^{-130}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq -2.2 \cdot 10^{-254}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\

\mathbf{elif}\;z \leq 1.75 \cdot 10^{-40}:\\
\;\;\;\;c \cdot \left(y \cdot \left(i \cdot \left(\frac{y3 \cdot y4}{i} - x\right)\right)\right)\\

\mathbf{elif}\;z \leq 1.12 \cdot 10^{+29}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;z \leq 2.8 \cdot 10^{+213}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if z < -3.3999999999999998e86

    1. Initial program 19.1%

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

      \[\leadsto \color{blue}{y0 \cdot \left(\left(-1 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    4. Taylor expanded in c around inf 51.7%

      \[\leadsto y0 \cdot \color{blue}{\left(c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)} \]
    5. Step-by-step derivation
      1. *-commutative51.7%

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

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

    if -3.3999999999999998e86 < z < -3.45000000000000018e-130 or 1.7500000000000001e-40 < z < 1.1200000000000001e29

    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 j around inf 50.0%

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

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

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

    if -3.45000000000000018e-130 < z < -2.2000000000000001e-254

    1. Initial program 9.5%

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

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

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

    if -2.2000000000000001e-254 < z < 1.7500000000000001e-40

    1. Initial program 29.7%

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

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 49.1%

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

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(y \cdot \left(i \cdot x - y3 \cdot y4\right)\right)\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg44.4%

        \[\leadsto \color{blue}{-c \cdot \left(y \cdot \left(i \cdot x - y3 \cdot y4\right)\right)} \]
    7. Simplified44.4%

      \[\leadsto \color{blue}{-c \cdot \left(y \cdot \left(i \cdot x - y3 \cdot y4\right)\right)} \]
    8. Taylor expanded in i around inf 52.1%

      \[\leadsto -c \cdot \left(y \cdot \color{blue}{\left(i \cdot \left(x + -1 \cdot \frac{y3 \cdot y4}{i}\right)\right)}\right) \]
    9. Step-by-step derivation
      1. associate-*r/52.1%

        \[\leadsto -c \cdot \left(y \cdot \left(i \cdot \left(x + \color{blue}{\frac{-1 \cdot \left(y3 \cdot y4\right)}{i}}\right)\right)\right) \]
      2. neg-mul-152.1%

        \[\leadsto -c \cdot \left(y \cdot \left(i \cdot \left(x + \frac{\color{blue}{-y3 \cdot y4}}{i}\right)\right)\right) \]
      3. distribute-rgt-neg-in52.1%

        \[\leadsto -c \cdot \left(y \cdot \left(i \cdot \left(x + \frac{\color{blue}{y3 \cdot \left(-y4\right)}}{i}\right)\right)\right) \]
    10. Simplified52.1%

      \[\leadsto -c \cdot \left(y \cdot \color{blue}{\left(i \cdot \left(x + \frac{y3 \cdot \left(-y4\right)}{i}\right)\right)}\right) \]

    if 1.1200000000000001e29 < z < 6.00000000000000052e154

    1. Initial program 19.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 31.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 x around inf 54.8%

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

    if 6.00000000000000052e154 < z < 2.7999999999999999e213

    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 j around inf 50.9%

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

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

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

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

    if 2.7999999999999999e213 < z

    1. Initial program 4.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. Simplified4.3%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 39.7%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in z around inf 70.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.4 \cdot 10^{+86}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;z \leq -3.45 \cdot 10^{-130}:\\ \;\;\;\;j \cdot \left(\left(i \cdot \left(x \cdot y1\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - b \cdot \left(x \cdot y0\right)\right)\\ \mathbf{elif}\;z \leq -2.2 \cdot 10^{-254}:\\ \;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\ \mathbf{elif}\;z \leq 1.75 \cdot 10^{-40}:\\ \;\;\;\;c \cdot \left(y \cdot \left(i \cdot \left(\frac{y3 \cdot y4}{i} - x\right)\right)\right)\\ \mathbf{elif}\;z \leq 1.12 \cdot 10^{+29}:\\ \;\;\;\;j \cdot \left(\left(i \cdot \left(x \cdot y1\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - b \cdot \left(x \cdot y0\right)\right)\\ \mathbf{elif}\;z \leq 6 \cdot 10^{+154}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{+213}:\\ \;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 40.6% accurate, 2.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot y2 - z \cdot y3\\ t_2 := j \cdot y3 - k \cdot y2\\ t_3 := z \cdot y3 - x \cdot y2\\ \mathbf{if}\;y1 \leq -8.5 \cdot 10^{+82}:\\ \;\;\;\;y1 \cdot \left(i \cdot \left(x \cdot j - z \cdot k\right) - \left(a \cdot t\_1 + y4 \cdot t\_2\right)\right)\\ \mathbf{elif}\;y1 \leq -4.6 \cdot 10^{-104}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right) - \left(i \cdot \left(x \cdot y - z \cdot t\right) + y0 \cdot t\_3\right)\right)\\ \mathbf{elif}\;y1 \leq 4.7 \cdot 10^{+73}:\\ \;\;\;\;y0 \cdot \left(\left(y5 \cdot t\_2 + c \cdot t\_1\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y1 \leq 5.8 \cdot 10^{+204}:\\ \;\;\;\;j \cdot \left(y1 \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y1 \cdot t\_3\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (- (* x y2) (* z y3)))
        (t_2 (- (* j y3) (* k y2)))
        (t_3 (- (* z y3) (* x y2))))
   (if (<= y1 -8.5e+82)
     (* y1 (- (* i (- (* x j) (* z k))) (+ (* a t_1) (* y4 t_2))))
     (if (<= y1 -4.6e-104)
       (*
        c
        (-
         (* y4 (- (* y y3) (* t y2)))
         (+ (* i (- (* x y) (* z t))) (* y0 t_3))))
       (if (<= y1 4.7e+73)
         (* y0 (+ (+ (* y5 t_2) (* c t_1)) (* b (- (* z k) (* x j)))))
         (if (<= y1 5.8e+204)
           (* j (* y1 (- (* x i) (* y3 y4))))
           (* a (* y1 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (x * y2) - (z * y3);
	double t_2 = (j * y3) - (k * y2);
	double t_3 = (z * y3) - (x * y2);
	double tmp;
	if (y1 <= -8.5e+82) {
		tmp = y1 * ((i * ((x * j) - (z * k))) - ((a * t_1) + (y4 * t_2)));
	} else if (y1 <= -4.6e-104) {
		tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * ((x * y) - (z * t))) + (y0 * t_3)));
	} else if (y1 <= 4.7e+73) {
		tmp = y0 * (((y5 * t_2) + (c * t_1)) + (b * ((z * k) - (x * j))));
	} else if (y1 <= 5.8e+204) {
		tmp = j * (y1 * ((x * i) - (y3 * y4)));
	} else {
		tmp = a * (y1 * t_3);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = (x * y2) - (z * y3)
    t_2 = (j * y3) - (k * y2)
    t_3 = (z * y3) - (x * y2)
    if (y1 <= (-8.5d+82)) then
        tmp = y1 * ((i * ((x * j) - (z * k))) - ((a * t_1) + (y4 * t_2)))
    else if (y1 <= (-4.6d-104)) then
        tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * ((x * y) - (z * t))) + (y0 * t_3)))
    else if (y1 <= 4.7d+73) then
        tmp = y0 * (((y5 * t_2) + (c * t_1)) + (b * ((z * k) - (x * j))))
    else if (y1 <= 5.8d+204) then
        tmp = j * (y1 * ((x * i) - (y3 * y4)))
    else
        tmp = a * (y1 * t_3)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (x * y2) - (z * y3);
	double t_2 = (j * y3) - (k * y2);
	double t_3 = (z * y3) - (x * y2);
	double tmp;
	if (y1 <= -8.5e+82) {
		tmp = y1 * ((i * ((x * j) - (z * k))) - ((a * t_1) + (y4 * t_2)));
	} else if (y1 <= -4.6e-104) {
		tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * ((x * y) - (z * t))) + (y0 * t_3)));
	} else if (y1 <= 4.7e+73) {
		tmp = y0 * (((y5 * t_2) + (c * t_1)) + (b * ((z * k) - (x * j))));
	} else if (y1 <= 5.8e+204) {
		tmp = j * (y1 * ((x * i) - (y3 * y4)));
	} else {
		tmp = a * (y1 * t_3);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = (x * y2) - (z * y3)
	t_2 = (j * y3) - (k * y2)
	t_3 = (z * y3) - (x * y2)
	tmp = 0
	if y1 <= -8.5e+82:
		tmp = y1 * ((i * ((x * j) - (z * k))) - ((a * t_1) + (y4 * t_2)))
	elif y1 <= -4.6e-104:
		tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * ((x * y) - (z * t))) + (y0 * t_3)))
	elif y1 <= 4.7e+73:
		tmp = y0 * (((y5 * t_2) + (c * t_1)) + (b * ((z * k) - (x * j))))
	elif y1 <= 5.8e+204:
		tmp = j * (y1 * ((x * i) - (y3 * y4)))
	else:
		tmp = a * (y1 * t_3)
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(x * y2) - Float64(z * y3))
	t_2 = Float64(Float64(j * y3) - Float64(k * y2))
	t_3 = Float64(Float64(z * y3) - Float64(x * y2))
	tmp = 0.0
	if (y1 <= -8.5e+82)
		tmp = Float64(y1 * Float64(Float64(i * Float64(Float64(x * j) - Float64(z * k))) - Float64(Float64(a * t_1) + Float64(y4 * t_2))));
	elseif (y1 <= -4.6e-104)
		tmp = Float64(c * Float64(Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))) - Float64(Float64(i * Float64(Float64(x * y) - Float64(z * t))) + Float64(y0 * t_3))));
	elseif (y1 <= 4.7e+73)
		tmp = Float64(y0 * Float64(Float64(Float64(y5 * t_2) + Float64(c * t_1)) + Float64(b * Float64(Float64(z * k) - Float64(x * j)))));
	elseif (y1 <= 5.8e+204)
		tmp = Float64(j * Float64(y1 * Float64(Float64(x * i) - Float64(y3 * y4))));
	else
		tmp = Float64(a * Float64(y1 * t_3));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = (x * y2) - (z * y3);
	t_2 = (j * y3) - (k * y2);
	t_3 = (z * y3) - (x * y2);
	tmp = 0.0;
	if (y1 <= -8.5e+82)
		tmp = y1 * ((i * ((x * j) - (z * k))) - ((a * t_1) + (y4 * t_2)));
	elseif (y1 <= -4.6e-104)
		tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * ((x * y) - (z * t))) + (y0 * t_3)));
	elseif (y1 <= 4.7e+73)
		tmp = y0 * (((y5 * t_2) + (c * t_1)) + (b * ((z * k) - (x * j))));
	elseif (y1 <= 5.8e+204)
		tmp = j * (y1 * ((x * i) - (y3 * y4)));
	else
		tmp = a * (y1 * t_3);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -8.5e+82], N[(y1 * N[(N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t$95$1), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -4.6e-104], N[(c * N[(N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(i * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 4.7e+73], N[(y0 * N[(N[(N[(y5 * t$95$2), $MachinePrecision] + N[(c * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 5.8e+204], N[(j * N[(y1 * N[(N[(x * i), $MachinePrecision] - N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y1 * t$95$3), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot y2 - z \cdot y3\\
t_2 := j \cdot y3 - k \cdot y2\\
t_3 := z \cdot y3 - x \cdot y2\\
\mathbf{if}\;y1 \leq -8.5 \cdot 10^{+82}:\\
\;\;\;\;y1 \cdot \left(i \cdot \left(x \cdot j - z \cdot k\right) - \left(a \cdot t\_1 + y4 \cdot t\_2\right)\right)\\

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

\mathbf{elif}\;y1 \leq 4.7 \cdot 10^{+73}:\\
\;\;\;\;y0 \cdot \left(\left(y5 \cdot t\_2 + c \cdot t\_1\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\

\mathbf{elif}\;y1 \leq 5.8 \cdot 10^{+204}:\\
\;\;\;\;j \cdot \left(y1 \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(y1 \cdot t\_3\right)\\


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

    1. Initial program 23.7%

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

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

    if -8.4999999999999995e82 < y1 < -4.5999999999999999e-104

    1. Initial program 26.1%

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

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 64.4%

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

    if -4.5999999999999999e-104 < y1 < 4.7000000000000002e73

    1. Initial program 32.2%

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

    if 4.7000000000000002e73 < y1 < 5.80000000000000007e204

    1. Initial program 10.7%

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

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

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

        \[\leadsto j \cdot \color{blue}{\left(\left(-1 \cdot y1\right) \cdot \left(y3 \cdot y4 - i \cdot x\right)\right)} \]
      2. mul-1-neg54.6%

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

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

    if 5.80000000000000007e204 < y1

    1. Initial program 9.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. Simplified9.1%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 48.7%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y1 around inf 67.2%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y1 \leq -8.5 \cdot 10^{+82}:\\ \;\;\;\;y1 \cdot \left(i \cdot \left(x \cdot j - z \cdot k\right) - \left(a \cdot \left(x \cdot y2 - z \cdot y3\right) + y4 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\right)\\ \mathbf{elif}\;y1 \leq -4.6 \cdot 10^{-104}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right) - \left(i \cdot \left(x \cdot y - z \cdot t\right) + y0 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\right)\\ \mathbf{elif}\;y1 \leq 4.7 \cdot 10^{+73}:\\ \;\;\;\;y0 \cdot \left(\left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) + c \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y1 \leq 5.8 \cdot 10^{+204}:\\ \;\;\;\;j \cdot \left(y1 \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 32.1% accurate, 2.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -82:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;z \leq -4.9 \cdot 10^{-207}:\\ \;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right) + t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\ \mathbf{elif}\;z \leq 1.14 \cdot 10^{-39}:\\ \;\;\;\;c \cdot \left(y \cdot \left(i \cdot \left(\frac{y3 \cdot y4}{i} - x\right)\right)\right)\\ \mathbf{elif}\;z \leq 7.4 \cdot 10^{+33}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;z \leq 3.25 \cdot 10^{+155}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\ \mathbf{elif}\;z \leq 8 \cdot 10^{+211}:\\ \;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= z -82.0)
   (* y0 (* c (- (* x y2) (* z y3))))
   (if (<= z -4.9e-207)
     (* y4 (+ (* y1 (- (* k y2) (* j y3))) (* t (- (* b j) (* c y2)))))
     (if (<= z 1.14e-39)
       (* c (* y (* i (- (/ (* y3 y4) i) x))))
       (if (<= z 7.4e+33)
         (* j (* y0 (- (* y3 y5) (* x b))))
         (if (<= z 3.25e+155)
           (* x (* y2 (- (* c y0) (* a y1))))
           (if (<= z 8e+211)
             (* i (* j (- (* x y1) (* t y5))))
             (* a (* z (- (* y1 y3) (* t 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 (z <= -82.0) {
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	} else if (z <= -4.9e-207) {
		tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (t * ((b * j) - (c * y2))));
	} else if (z <= 1.14e-39) {
		tmp = c * (y * (i * (((y3 * y4) / i) - x)));
	} else if (z <= 7.4e+33) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (z <= 3.25e+155) {
		tmp = x * (y2 * ((c * y0) - (a * y1)));
	} else if (z <= 8e+211) {
		tmp = i * (j * ((x * y1) - (t * y5)));
	} else {
		tmp = a * (z * ((y1 * y3) - (t * 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 (z <= (-82.0d0)) then
        tmp = y0 * (c * ((x * y2) - (z * y3)))
    else if (z <= (-4.9d-207)) then
        tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (t * ((b * j) - (c * y2))))
    else if (z <= 1.14d-39) then
        tmp = c * (y * (i * (((y3 * y4) / i) - x)))
    else if (z <= 7.4d+33) then
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    else if (z <= 3.25d+155) then
        tmp = x * (y2 * ((c * y0) - (a * y1)))
    else if (z <= 8d+211) then
        tmp = i * (j * ((x * y1) - (t * y5)))
    else
        tmp = a * (z * ((y1 * y3) - (t * 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 (z <= -82.0) {
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	} else if (z <= -4.9e-207) {
		tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (t * ((b * j) - (c * y2))));
	} else if (z <= 1.14e-39) {
		tmp = c * (y * (i * (((y3 * y4) / i) - x)));
	} else if (z <= 7.4e+33) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (z <= 3.25e+155) {
		tmp = x * (y2 * ((c * y0) - (a * y1)));
	} else if (z <= 8e+211) {
		tmp = i * (j * ((x * y1) - (t * y5)));
	} else {
		tmp = a * (z * ((y1 * y3) - (t * b)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if z <= -82.0:
		tmp = y0 * (c * ((x * y2) - (z * y3)))
	elif z <= -4.9e-207:
		tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (t * ((b * j) - (c * y2))))
	elif z <= 1.14e-39:
		tmp = c * (y * (i * (((y3 * y4) / i) - x)))
	elif z <= 7.4e+33:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	elif z <= 3.25e+155:
		tmp = x * (y2 * ((c * y0) - (a * y1)))
	elif z <= 8e+211:
		tmp = i * (j * ((x * y1) - (t * y5)))
	else:
		tmp = a * (z * ((y1 * y3) - (t * 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 (z <= -82.0)
		tmp = Float64(y0 * Float64(c * Float64(Float64(x * y2) - Float64(z * y3))));
	elseif (z <= -4.9e-207)
		tmp = Float64(y4 * Float64(Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3))) + Float64(t * Float64(Float64(b * j) - Float64(c * y2)))));
	elseif (z <= 1.14e-39)
		tmp = Float64(c * Float64(y * Float64(i * Float64(Float64(Float64(y3 * y4) / i) - x))));
	elseif (z <= 7.4e+33)
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	elseif (z <= 3.25e+155)
		tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1))));
	elseif (z <= 8e+211)
		tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5))));
	else
		tmp = Float64(a * Float64(z * Float64(Float64(y1 * y3) - Float64(t * 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 (z <= -82.0)
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	elseif (z <= -4.9e-207)
		tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (t * ((b * j) - (c * y2))));
	elseif (z <= 1.14e-39)
		tmp = c * (y * (i * (((y3 * y4) / i) - x)));
	elseif (z <= 7.4e+33)
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	elseif (z <= 3.25e+155)
		tmp = x * (y2 * ((c * y0) - (a * y1)));
	elseif (z <= 8e+211)
		tmp = i * (j * ((x * y1) - (t * y5)));
	else
		tmp = a * (z * ((y1 * y3) - (t * 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[z, -82.0], N[(y0 * N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.9e-207], N[(y4 * N[(N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.14e-39], N[(c * N[(y * N[(i * N[(N[(N[(y3 * y4), $MachinePrecision] / i), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.4e+33], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.25e+155], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8e+211], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(z * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -82:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\

\mathbf{elif}\;z \leq -4.9 \cdot 10^{-207}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right) + t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\

\mathbf{elif}\;z \leq 1.14 \cdot 10^{-39}:\\
\;\;\;\;c \cdot \left(y \cdot \left(i \cdot \left(\frac{y3 \cdot y4}{i} - x\right)\right)\right)\\

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

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

\mathbf{elif}\;z \leq 8 \cdot 10^{+211}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if z < -82

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

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

      \[\leadsto y0 \cdot \color{blue}{\left(c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)} \]
    5. Step-by-step derivation
      1. *-commutative50.4%

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

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

    if -82 < z < -4.9e-207

    1. Initial program 35.3%

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

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

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

    if -4.9e-207 < z < 1.13999999999999997e-39

    1. Initial program 26.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. Simplified28.0%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 45.7%

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

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(y \cdot \left(i \cdot x - y3 \cdot y4\right)\right)\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg41.4%

        \[\leadsto \color{blue}{-c \cdot \left(y \cdot \left(i \cdot x - y3 \cdot y4\right)\right)} \]
    7. Simplified41.4%

      \[\leadsto \color{blue}{-c \cdot \left(y \cdot \left(i \cdot x - y3 \cdot y4\right)\right)} \]
    8. Taylor expanded in i around inf 48.4%

      \[\leadsto -c \cdot \left(y \cdot \color{blue}{\left(i \cdot \left(x + -1 \cdot \frac{y3 \cdot y4}{i}\right)\right)}\right) \]
    9. Step-by-step derivation
      1. associate-*r/48.4%

        \[\leadsto -c \cdot \left(y \cdot \left(i \cdot \left(x + \color{blue}{\frac{-1 \cdot \left(y3 \cdot y4\right)}{i}}\right)\right)\right) \]
      2. neg-mul-148.4%

        \[\leadsto -c \cdot \left(y \cdot \left(i \cdot \left(x + \frac{\color{blue}{-y3 \cdot y4}}{i}\right)\right)\right) \]
      3. distribute-rgt-neg-in48.4%

        \[\leadsto -c \cdot \left(y \cdot \left(i \cdot \left(x + \frac{\color{blue}{y3 \cdot \left(-y4\right)}}{i}\right)\right)\right) \]
    10. Simplified48.4%

      \[\leadsto -c \cdot \left(y \cdot \color{blue}{\left(i \cdot \left(x + \frac{y3 \cdot \left(-y4\right)}{i}\right)\right)}\right) \]

    if 1.13999999999999997e-39 < z < 7.3999999999999997e33

    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 j around inf 62.2%

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

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

    if 7.3999999999999997e33 < z < 3.25000000000000023e155

    1. Initial program 20.0%

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

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

    if 3.25000000000000023e155 < z < 7.9999999999999997e211

    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 j around inf 50.9%

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

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

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

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

    if 7.9999999999999997e211 < z

    1. Initial program 4.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. Simplified4.3%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 39.7%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in z around inf 70.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -82:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;z \leq -4.9 \cdot 10^{-207}:\\ \;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right) + t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\ \mathbf{elif}\;z \leq 1.14 \cdot 10^{-39}:\\ \;\;\;\;c \cdot \left(y \cdot \left(i \cdot \left(\frac{y3 \cdot y4}{i} - x\right)\right)\right)\\ \mathbf{elif}\;z \leq 7.4 \cdot 10^{+33}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;z \leq 3.25 \cdot 10^{+155}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\ \mathbf{elif}\;z \leq 8 \cdot 10^{+211}:\\ \;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 30.2% accurate, 2.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -5.5 \cdot 10^{-110}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;z \leq -1.95 \cdot 10^{-230}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;z \leq 2.95 \cdot 10^{-40}:\\ \;\;\;\;c \cdot \left(y \cdot \left(i \cdot \left(\frac{y3 \cdot y4}{i} - x\right)\right)\right)\\ \mathbf{elif}\;z \leq 6.4 \cdot 10^{+33}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;z \leq 5.5 \cdot 10^{+155}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{+211}:\\ \;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= z -5.5e-110)
   (* y0 (* c (- (* x y2) (* z y3))))
   (if (<= z -1.95e-230)
     (* c (* y4 (- (* y y3) (* t y2))))
     (if (<= z 2.95e-40)
       (* c (* y (* i (- (/ (* y3 y4) i) x))))
       (if (<= z 6.4e+33)
         (* j (* y0 (- (* y3 y5) (* x b))))
         (if (<= z 5.5e+155)
           (* x (* y2 (- (* c y0) (* a y1))))
           (if (<= z 2.8e+211)
             (* i (* j (- (* x y1) (* t y5))))
             (* a (* z (- (* y1 y3) (* t 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 (z <= -5.5e-110) {
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	} else if (z <= -1.95e-230) {
		tmp = c * (y4 * ((y * y3) - (t * y2)));
	} else if (z <= 2.95e-40) {
		tmp = c * (y * (i * (((y3 * y4) / i) - x)));
	} else if (z <= 6.4e+33) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (z <= 5.5e+155) {
		tmp = x * (y2 * ((c * y0) - (a * y1)));
	} else if (z <= 2.8e+211) {
		tmp = i * (j * ((x * y1) - (t * y5)));
	} else {
		tmp = a * (z * ((y1 * y3) - (t * 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 (z <= (-5.5d-110)) then
        tmp = y0 * (c * ((x * y2) - (z * y3)))
    else if (z <= (-1.95d-230)) then
        tmp = c * (y4 * ((y * y3) - (t * y2)))
    else if (z <= 2.95d-40) then
        tmp = c * (y * (i * (((y3 * y4) / i) - x)))
    else if (z <= 6.4d+33) then
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    else if (z <= 5.5d+155) then
        tmp = x * (y2 * ((c * y0) - (a * y1)))
    else if (z <= 2.8d+211) then
        tmp = i * (j * ((x * y1) - (t * y5)))
    else
        tmp = a * (z * ((y1 * y3) - (t * 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 (z <= -5.5e-110) {
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	} else if (z <= -1.95e-230) {
		tmp = c * (y4 * ((y * y3) - (t * y2)));
	} else if (z <= 2.95e-40) {
		tmp = c * (y * (i * (((y3 * y4) / i) - x)));
	} else if (z <= 6.4e+33) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (z <= 5.5e+155) {
		tmp = x * (y2 * ((c * y0) - (a * y1)));
	} else if (z <= 2.8e+211) {
		tmp = i * (j * ((x * y1) - (t * y5)));
	} else {
		tmp = a * (z * ((y1 * y3) - (t * b)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if z <= -5.5e-110:
		tmp = y0 * (c * ((x * y2) - (z * y3)))
	elif z <= -1.95e-230:
		tmp = c * (y4 * ((y * y3) - (t * y2)))
	elif z <= 2.95e-40:
		tmp = c * (y * (i * (((y3 * y4) / i) - x)))
	elif z <= 6.4e+33:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	elif z <= 5.5e+155:
		tmp = x * (y2 * ((c * y0) - (a * y1)))
	elif z <= 2.8e+211:
		tmp = i * (j * ((x * y1) - (t * y5)))
	else:
		tmp = a * (z * ((y1 * y3) - (t * 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 (z <= -5.5e-110)
		tmp = Float64(y0 * Float64(c * Float64(Float64(x * y2) - Float64(z * y3))));
	elseif (z <= -1.95e-230)
		tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))));
	elseif (z <= 2.95e-40)
		tmp = Float64(c * Float64(y * Float64(i * Float64(Float64(Float64(y3 * y4) / i) - x))));
	elseif (z <= 6.4e+33)
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	elseif (z <= 5.5e+155)
		tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1))));
	elseif (z <= 2.8e+211)
		tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5))));
	else
		tmp = Float64(a * Float64(z * Float64(Float64(y1 * y3) - Float64(t * 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 (z <= -5.5e-110)
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	elseif (z <= -1.95e-230)
		tmp = c * (y4 * ((y * y3) - (t * y2)));
	elseif (z <= 2.95e-40)
		tmp = c * (y * (i * (((y3 * y4) / i) - x)));
	elseif (z <= 6.4e+33)
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	elseif (z <= 5.5e+155)
		tmp = x * (y2 * ((c * y0) - (a * y1)));
	elseif (z <= 2.8e+211)
		tmp = i * (j * ((x * y1) - (t * y5)));
	else
		tmp = a * (z * ((y1 * y3) - (t * 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[z, -5.5e-110], N[(y0 * N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.95e-230], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.95e-40], N[(c * N[(y * N[(i * N[(N[(N[(y3 * y4), $MachinePrecision] / i), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.4e+33], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.5e+155], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e+211], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(z * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \cdot 10^{-110}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\

\mathbf{elif}\;z \leq -1.95 \cdot 10^{-230}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\

\mathbf{elif}\;z \leq 2.95 \cdot 10^{-40}:\\
\;\;\;\;c \cdot \left(y \cdot \left(i \cdot \left(\frac{y3 \cdot y4}{i} - x\right)\right)\right)\\

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

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

\mathbf{elif}\;z \leq 2.8 \cdot 10^{+211}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if z < -5.4999999999999998e-110

    1. Initial program 28.0%

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

      \[\leadsto y0 \cdot \color{blue}{\left(c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)} \]
    5. Step-by-step derivation
      1. *-commutative44.8%

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

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

    if -5.4999999999999998e-110 < z < -1.9500000000000001e-230

    1. Initial program 13.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. Simplified13.6%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 32.8%

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

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

    if -1.9500000000000001e-230 < z < 2.94999999999999983e-40

    1. Initial program 27.8%

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

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 47.3%

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

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(y \cdot \left(i \cdot x - y3 \cdot y4\right)\right)\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg42.9%

        \[\leadsto \color{blue}{-c \cdot \left(y \cdot \left(i \cdot x - y3 \cdot y4\right)\right)} \]
    7. Simplified42.9%

      \[\leadsto \color{blue}{-c \cdot \left(y \cdot \left(i \cdot x - y3 \cdot y4\right)\right)} \]
    8. Taylor expanded in i around inf 50.2%

      \[\leadsto -c \cdot \left(y \cdot \color{blue}{\left(i \cdot \left(x + -1 \cdot \frac{y3 \cdot y4}{i}\right)\right)}\right) \]
    9. Step-by-step derivation
      1. associate-*r/50.2%

        \[\leadsto -c \cdot \left(y \cdot \left(i \cdot \left(x + \color{blue}{\frac{-1 \cdot \left(y3 \cdot y4\right)}{i}}\right)\right)\right) \]
      2. neg-mul-150.2%

        \[\leadsto -c \cdot \left(y \cdot \left(i \cdot \left(x + \frac{\color{blue}{-y3 \cdot y4}}{i}\right)\right)\right) \]
      3. distribute-rgt-neg-in50.2%

        \[\leadsto -c \cdot \left(y \cdot \left(i \cdot \left(x + \frac{\color{blue}{y3 \cdot \left(-y4\right)}}{i}\right)\right)\right) \]
    10. Simplified50.2%

      \[\leadsto -c \cdot \left(y \cdot \color{blue}{\left(i \cdot \left(x + \frac{y3 \cdot \left(-y4\right)}{i}\right)\right)}\right) \]

    if 2.94999999999999983e-40 < z < 6.40000000000000034e33

    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 j around inf 62.2%

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

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

    if 6.40000000000000034e33 < z < 5.5000000000000001e155

    1. Initial program 20.0%

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

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

    if 5.5000000000000001e155 < z < 2.8e211

    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 j around inf 50.9%

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

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

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

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

    if 2.8e211 < z

    1. Initial program 4.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. Simplified4.3%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 39.7%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in z around inf 70.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.5 \cdot 10^{-110}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;z \leq -1.95 \cdot 10^{-230}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;z \leq 2.95 \cdot 10^{-40}:\\ \;\;\;\;c \cdot \left(y \cdot \left(i \cdot \left(\frac{y3 \cdot y4}{i} - x\right)\right)\right)\\ \mathbf{elif}\;z \leq 6.4 \cdot 10^{+33}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;z \leq 5.5 \cdot 10^{+155}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{+211}:\\ \;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 31.3% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y1 \leq -1.52 \cdot 10^{+134}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y1 \leq -4.8 \cdot 10^{-179}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y1 \leq 9 \cdot 10^{-110}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;y1 \leq 0.00075:\\ \;\;\;\;y2 \cdot \left(c \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y1 \leq 1.8 \cdot 10^{+204}:\\ \;\;\;\;j \cdot \left(y1 \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\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.52e+134)
   (* y1 (* y4 (- (* k y2) (* j y3))))
   (if (<= y1 -4.8e-179)
     (* y0 (* c (- (* x y2) (* z y3))))
     (if (<= y1 9e-110)
       (* j (* y0 (- (* y3 y5) (* x b))))
       (if (<= y1 0.00075)
         (* y2 (* c (- (* x y0) (* t y4))))
         (if (<= y1 1.8e+204)
           (* j (* y1 (- (* x i) (* y3 y4))))
           (* a (* y1 (- (* z y3) (* x 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 (y1 <= -1.52e+134) {
		tmp = y1 * (y4 * ((k * y2) - (j * y3)));
	} else if (y1 <= -4.8e-179) {
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	} else if (y1 <= 9e-110) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (y1 <= 0.00075) {
		tmp = y2 * (c * ((x * y0) - (t * y4)));
	} else if (y1 <= 1.8e+204) {
		tmp = j * (y1 * ((x * i) - (y3 * y4)));
	} else {
		tmp = a * (y1 * ((z * y3) - (x * 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 (y1 <= (-1.52d+134)) then
        tmp = y1 * (y4 * ((k * y2) - (j * y3)))
    else if (y1 <= (-4.8d-179)) then
        tmp = y0 * (c * ((x * y2) - (z * y3)))
    else if (y1 <= 9d-110) then
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    else if (y1 <= 0.00075d0) then
        tmp = y2 * (c * ((x * y0) - (t * y4)))
    else if (y1 <= 1.8d+204) then
        tmp = j * (y1 * ((x * i) - (y3 * y4)))
    else
        tmp = a * (y1 * ((z * y3) - (x * 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 (y1 <= -1.52e+134) {
		tmp = y1 * (y4 * ((k * y2) - (j * y3)));
	} else if (y1 <= -4.8e-179) {
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	} else if (y1 <= 9e-110) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (y1 <= 0.00075) {
		tmp = y2 * (c * ((x * y0) - (t * y4)));
	} else if (y1 <= 1.8e+204) {
		tmp = j * (y1 * ((x * i) - (y3 * y4)));
	} else {
		tmp = a * (y1 * ((z * y3) - (x * y2)));
	}
	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.52e+134:
		tmp = y1 * (y4 * ((k * y2) - (j * y3)))
	elif y1 <= -4.8e-179:
		tmp = y0 * (c * ((x * y2) - (z * y3)))
	elif y1 <= 9e-110:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	elif y1 <= 0.00075:
		tmp = y2 * (c * ((x * y0) - (t * y4)))
	elif y1 <= 1.8e+204:
		tmp = j * (y1 * ((x * i) - (y3 * y4)))
	else:
		tmp = a * (y1 * ((z * y3) - (x * 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 (y1 <= -1.52e+134)
		tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3))));
	elseif (y1 <= -4.8e-179)
		tmp = Float64(y0 * Float64(c * Float64(Float64(x * y2) - Float64(z * y3))));
	elseif (y1 <= 9e-110)
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	elseif (y1 <= 0.00075)
		tmp = Float64(y2 * Float64(c * Float64(Float64(x * y0) - Float64(t * y4))));
	elseif (y1 <= 1.8e+204)
		tmp = Float64(j * Float64(y1 * Float64(Float64(x * i) - Float64(y3 * y4))));
	else
		tmp = Float64(a * Float64(y1 * Float64(Float64(z * y3) - Float64(x * 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 (y1 <= -1.52e+134)
		tmp = y1 * (y4 * ((k * y2) - (j * y3)));
	elseif (y1 <= -4.8e-179)
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	elseif (y1 <= 9e-110)
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	elseif (y1 <= 0.00075)
		tmp = y2 * (c * ((x * y0) - (t * y4)));
	elseif (y1 <= 1.8e+204)
		tmp = j * (y1 * ((x * i) - (y3 * y4)));
	else
		tmp = a * (y1 * ((z * y3) - (x * 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[y1, -1.52e+134], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -4.8e-179], N[(y0 * N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 9e-110], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 0.00075], N[(y2 * N[(c * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.8e+204], N[(j * N[(y1 * N[(N[(x * i), $MachinePrecision] - N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

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

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

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

\mathbf{elif}\;y1 \leq 0.00075:\\
\;\;\;\;y2 \cdot \left(c \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\

\mathbf{elif}\;y1 \leq 1.8 \cdot 10^{+204}:\\
\;\;\;\;j \cdot \left(y1 \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y1 < -1.5200000000000001e134

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

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

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

    if -1.5200000000000001e134 < y1 < -4.8000000000000001e-179

    1. Initial program 26.5%

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

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

      \[\leadsto y0 \cdot \color{blue}{\left(c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)} \]
    5. Step-by-step derivation
      1. *-commutative46.1%

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

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

    if -4.8000000000000001e-179 < y1 < 9.0000000000000002e-110

    1. Initial program 29.1%

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

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

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

    if 9.0000000000000002e-110 < y1 < 7.5000000000000002e-4

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

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

    if 7.5000000000000002e-4 < y1 < 1.8000000000000001e204

    1. Initial program 25.0%

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

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

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

        \[\leadsto j \cdot \color{blue}{\left(\left(-1 \cdot y1\right) \cdot \left(y3 \cdot y4 - i \cdot x\right)\right)} \]
      2. mul-1-neg46.9%

        \[\leadsto j \cdot \left(\color{blue}{\left(-y1\right)} \cdot \left(y3 \cdot y4 - i \cdot x\right)\right) \]
    6. Simplified46.9%

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

    if 1.8000000000000001e204 < y1

    1. Initial program 9.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. Simplified9.1%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 48.7%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y1 around inf 67.2%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y1 \leq -1.52 \cdot 10^{+134}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y1 \leq -4.8 \cdot 10^{-179}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y1 \leq 9 \cdot 10^{-110}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;y1 \leq 0.00075:\\ \;\;\;\;y2 \cdot \left(c \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\ \mathbf{elif}\;y1 \leq 1.8 \cdot 10^{+204}:\\ \;\;\;\;j \cdot \left(y1 \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 31.4% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\ \mathbf{if}\;y2 \leq -6.1 \cdot 10^{+257}:\\ \;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq -5.5 \cdot 10^{+122}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y2 \leq -5.4 \cdot 10^{+29}:\\ \;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq 4 \cdot 10^{-243}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;y2 \leq 550000000000:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\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) (* a y1))))))
   (if (<= y2 -6.1e+257)
     (* k (* y2 (- (* y1 y4) (* y0 y5))))
     (if (<= y2 -5.5e+122)
       t_1
       (if (<= y2 -5.4e+29)
         (* a (* y (- (* x b) (* y3 y5))))
         (if (<= y2 4e-243)
           (* j (* y0 (- (* y3 y5) (* x b))))
           (if (<= y2 550000000000.0)
             (* c (* y4 (- (* y y3) (* t y2))))
             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) - (a * y1)));
	double tmp;
	if (y2 <= -6.1e+257) {
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
	} else if (y2 <= -5.5e+122) {
		tmp = t_1;
	} else if (y2 <= -5.4e+29) {
		tmp = a * (y * ((x * b) - (y3 * y5)));
	} else if (y2 <= 4e-243) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (y2 <= 550000000000.0) {
		tmp = c * (y4 * ((y * y3) - (t * y2)));
	} 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) - (a * y1)))
    if (y2 <= (-6.1d+257)) then
        tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
    else if (y2 <= (-5.5d+122)) then
        tmp = t_1
    else if (y2 <= (-5.4d+29)) then
        tmp = a * (y * ((x * b) - (y3 * y5)))
    else if (y2 <= 4d-243) then
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    else if (y2 <= 550000000000.0d0) then
        tmp = c * (y4 * ((y * y3) - (t * y2)))
    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) - (a * y1)));
	double tmp;
	if (y2 <= -6.1e+257) {
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
	} else if (y2 <= -5.5e+122) {
		tmp = t_1;
	} else if (y2 <= -5.4e+29) {
		tmp = a * (y * ((x * b) - (y3 * y5)));
	} else if (y2 <= 4e-243) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} else if (y2 <= 550000000000.0) {
		tmp = c * (y4 * ((y * y3) - (t * y2)));
	} 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) - (a * y1)))
	tmp = 0
	if y2 <= -6.1e+257:
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
	elif y2 <= -5.5e+122:
		tmp = t_1
	elif y2 <= -5.4e+29:
		tmp = a * (y * ((x * b) - (y3 * y5)))
	elif y2 <= 4e-243:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	elif y2 <= 550000000000.0:
		tmp = c * (y4 * ((y * y3) - (t * y2)))
	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(Float64(c * y0) - Float64(a * y1))))
	tmp = 0.0
	if (y2 <= -6.1e+257)
		tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5))));
	elseif (y2 <= -5.5e+122)
		tmp = t_1;
	elseif (y2 <= -5.4e+29)
		tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * y5))));
	elseif (y2 <= 4e-243)
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	elseif (y2 <= 550000000000.0)
		tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))));
	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) - (a * y1)));
	tmp = 0.0;
	if (y2 <= -6.1e+257)
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
	elseif (y2 <= -5.5e+122)
		tmp = t_1;
	elseif (y2 <= -5.4e+29)
		tmp = a * (y * ((x * b) - (y3 * y5)));
	elseif (y2 <= 4e-243)
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	elseif (y2 <= 550000000000.0)
		tmp = c * (y4 * ((y * y3) - (t * y2)));
	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[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -6.1e+257], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -5.5e+122], t$95$1, If[LessEqual[y2, -5.4e+29], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4e-243], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 550000000000.0], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;y2 \leq -5.5 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y2 \leq -5.4 \cdot 10^{+29}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\

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

\mathbf{elif}\;y2 \leq 550000000000:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\

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


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

    1. Initial program 18.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 50.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 inf 62.8%

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

    if -6.09999999999999998e257 < y2 < -5.4999999999999998e122 or 5.5e11 < 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 54.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 50.4%

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

    if -5.4999999999999998e122 < y2 < -5.4e29

    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. Simplified19.9%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 40.5%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y around inf 55.6%

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

    if -5.4e29 < y2 < 3.99999999999999998e-243

    1. Initial program 26.3%

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

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

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

    if 3.99999999999999998e-243 < y2 < 5.5e11

    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. Simplified28.4%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 49.8%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -6.1 \cdot 10^{+257}:\\ \;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq -5.5 \cdot 10^{+122}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\ \mathbf{elif}\;y2 \leq -5.4 \cdot 10^{+29}:\\ \;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq 4 \cdot 10^{-243}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{elif}\;y2 \leq 550000000000:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 32.3% accurate, 3.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{if}\;y4 \leq -3.3 \cdot 10^{+54}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y4 \leq 2.8 \cdot 10^{-286}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y4 \leq 1.3 \cdot 10^{-58}:\\ \;\;\;\;y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y4 \leq 8.2 \cdot 10^{+57}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\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 (* c (* y4 (- (* y y3) (* t y2))))))
   (if (<= y4 -3.3e+54)
     t_1
     (if (<= y4 2.8e-286)
       (* y0 (* c (- (* x y2) (* z y3))))
       (if (<= y4 1.3e-58)
         (* y0 (* b (- (* z k) (* x j))))
         (if (<= y4 8.2e+57) (* j (* y0 (- (* y3 y5) (* x b)))) 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 = c * (y4 * ((y * y3) - (t * y2)));
	double tmp;
	if (y4 <= -3.3e+54) {
		tmp = t_1;
	} else if (y4 <= 2.8e-286) {
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	} else if (y4 <= 1.3e-58) {
		tmp = y0 * (b * ((z * k) - (x * j)));
	} else if (y4 <= 8.2e+57) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} 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 = c * (y4 * ((y * y3) - (t * y2)))
    if (y4 <= (-3.3d+54)) then
        tmp = t_1
    else if (y4 <= 2.8d-286) then
        tmp = y0 * (c * ((x * y2) - (z * y3)))
    else if (y4 <= 1.3d-58) then
        tmp = y0 * (b * ((z * k) - (x * j)))
    else if (y4 <= 8.2d+57) then
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    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 = c * (y4 * ((y * y3) - (t * y2)));
	double tmp;
	if (y4 <= -3.3e+54) {
		tmp = t_1;
	} else if (y4 <= 2.8e-286) {
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	} else if (y4 <= 1.3e-58) {
		tmp = y0 * (b * ((z * k) - (x * j)));
	} else if (y4 <= 8.2e+57) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} 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 = c * (y4 * ((y * y3) - (t * y2)))
	tmp = 0
	if y4 <= -3.3e+54:
		tmp = t_1
	elif y4 <= 2.8e-286:
		tmp = y0 * (c * ((x * y2) - (z * y3)))
	elif y4 <= 1.3e-58:
		tmp = y0 * (b * ((z * k) - (x * j)))
	elif y4 <= 8.2e+57:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	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(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))
	tmp = 0.0
	if (y4 <= -3.3e+54)
		tmp = t_1;
	elseif (y4 <= 2.8e-286)
		tmp = Float64(y0 * Float64(c * Float64(Float64(x * y2) - Float64(z * y3))));
	elseif (y4 <= 1.3e-58)
		tmp = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j))));
	elseif (y4 <= 8.2e+57)
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	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 = c * (y4 * ((y * y3) - (t * y2)));
	tmp = 0.0;
	if (y4 <= -3.3e+54)
		tmp = t_1;
	elseif (y4 <= 2.8e-286)
		tmp = y0 * (c * ((x * y2) - (z * y3)));
	elseif (y4 <= 1.3e-58)
		tmp = y0 * (b * ((z * k) - (x * j)));
	elseif (y4 <= 8.2e+57)
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	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[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -3.3e+54], t$95$1, If[LessEqual[y4, 2.8e-286], N[(y0 * N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.3e-58], N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 8.2e+57], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;y4 \leq -3.3 \cdot 10^{+54}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;y4 \leq 1.3 \cdot 10^{-58}:\\
\;\;\;\;y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y4 < -3.3e54 or 8.2e57 < y4

    1. Initial program 26.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. Simplified26.0%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 43.6%

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

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

    if -3.3e54 < y4 < 2.8e-286

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

      \[\leadsto y0 \cdot \color{blue}{\left(c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)} \]
    5. Step-by-step derivation
      1. *-commutative40.7%

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

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

    if 2.8e-286 < y4 < 1.30000000000000003e-58

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

      \[\leadsto \color{blue}{y0 \cdot \left(\left(-1 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    4. Taylor expanded in b around inf 50.6%

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

    if 1.30000000000000003e-58 < y4 < 8.2e57

    1. Initial program 24.1%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y4 \leq -3.3 \cdot 10^{+54}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;y4 \leq 2.8 \cdot 10^{-286}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y4 \leq 1.3 \cdot 10^{-58}:\\ \;\;\;\;y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y4 \leq 8.2 \cdot 10^{+57}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 32.5% accurate, 3.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{if}\;y4 \leq -3.7 \cdot 10^{+54}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y4 \leq 7.5 \cdot 10^{-287}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y4 \leq 3.5 \cdot 10^{-60}:\\ \;\;\;\;y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y4 \leq 4 \cdot 10^{+70}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\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 (* c (* y4 (- (* y y3) (* t y2))))))
   (if (<= y4 -3.7e+54)
     t_1
     (if (<= y4 7.5e-287)
       (* c (* y0 (- (* x y2) (* z y3))))
       (if (<= y4 3.5e-60)
         (* y0 (* b (- (* z k) (* x j))))
         (if (<= y4 4e+70) (* j (* y0 (- (* y3 y5) (* x b)))) 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 = c * (y4 * ((y * y3) - (t * y2)));
	double tmp;
	if (y4 <= -3.7e+54) {
		tmp = t_1;
	} else if (y4 <= 7.5e-287) {
		tmp = c * (y0 * ((x * y2) - (z * y3)));
	} else if (y4 <= 3.5e-60) {
		tmp = y0 * (b * ((z * k) - (x * j)));
	} else if (y4 <= 4e+70) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} 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 = c * (y4 * ((y * y3) - (t * y2)))
    if (y4 <= (-3.7d+54)) then
        tmp = t_1
    else if (y4 <= 7.5d-287) then
        tmp = c * (y0 * ((x * y2) - (z * y3)))
    else if (y4 <= 3.5d-60) then
        tmp = y0 * (b * ((z * k) - (x * j)))
    else if (y4 <= 4d+70) then
        tmp = j * (y0 * ((y3 * y5) - (x * b)))
    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 = c * (y4 * ((y * y3) - (t * y2)));
	double tmp;
	if (y4 <= -3.7e+54) {
		tmp = t_1;
	} else if (y4 <= 7.5e-287) {
		tmp = c * (y0 * ((x * y2) - (z * y3)));
	} else if (y4 <= 3.5e-60) {
		tmp = y0 * (b * ((z * k) - (x * j)));
	} else if (y4 <= 4e+70) {
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	} 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 = c * (y4 * ((y * y3) - (t * y2)))
	tmp = 0
	if y4 <= -3.7e+54:
		tmp = t_1
	elif y4 <= 7.5e-287:
		tmp = c * (y0 * ((x * y2) - (z * y3)))
	elif y4 <= 3.5e-60:
		tmp = y0 * (b * ((z * k) - (x * j)))
	elif y4 <= 4e+70:
		tmp = j * (y0 * ((y3 * y5) - (x * b)))
	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(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))
	tmp = 0.0
	if (y4 <= -3.7e+54)
		tmp = t_1;
	elseif (y4 <= 7.5e-287)
		tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3))));
	elseif (y4 <= 3.5e-60)
		tmp = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j))));
	elseif (y4 <= 4e+70)
		tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b))));
	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 = c * (y4 * ((y * y3) - (t * y2)));
	tmp = 0.0;
	if (y4 <= -3.7e+54)
		tmp = t_1;
	elseif (y4 <= 7.5e-287)
		tmp = c * (y0 * ((x * y2) - (z * y3)));
	elseif (y4 <= 3.5e-60)
		tmp = y0 * (b * ((z * k) - (x * j)));
	elseif (y4 <= 4e+70)
		tmp = j * (y0 * ((y3 * y5) - (x * b)));
	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[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -3.7e+54], t$95$1, If[LessEqual[y4, 7.5e-287], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.5e-60], N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 4e+70], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;y4 \leq -3.7 \cdot 10^{+54}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;y4 \leq 3.5 \cdot 10^{-60}:\\
\;\;\;\;y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y4 < -3.7000000000000002e54 or 4.00000000000000029e70 < y4

    1. Initial program 26.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. Simplified26.0%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 43.6%

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

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

    if -3.7000000000000002e54 < y4 < 7.5000000000000001e-287

    1. Initial program 26.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. Simplified26.4%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 40.3%

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

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

    if 7.5000000000000001e-287 < y4 < 3.49999999999999976e-60

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

      \[\leadsto \color{blue}{y0 \cdot \left(\left(-1 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    4. Taylor expanded in b around inf 50.6%

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

    if 3.49999999999999976e-60 < y4 < 4.00000000000000029e70

    1. Initial program 24.1%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y4 \leq -3.7 \cdot 10^{+54}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;y4 \leq 7.5 \cdot 10^{-287}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y4 \leq 3.5 \cdot 10^{-60}:\\ \;\;\;\;y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;y4 \leq 4 \cdot 10^{+70}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 22.7% accurate, 3.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(x \cdot \left(y \cdot a\right)\right)\\ \mathbf{if}\;a \leq -3.7 \cdot 10^{+116}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -4.5 \cdot 10^{-174}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq -3 \cdot 10^{-268}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\ \mathbf{elif}\;a \leq 5 \cdot 10^{+44}:\\ \;\;\;\;j \cdot \left(b \cdot \left(y0 \cdot \left(-x\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 (* b (* x (* y a)))))
   (if (<= a -3.7e+116)
     t_1
     (if (<= a -4.5e-174)
       (* b (* j (* t y4)))
       (if (<= a -3e-268)
         (* j (* y0 (* y3 y5)))
         (if (<= a 5e+44) (* j (* b (* y0 (- x)))) 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 = b * (x * (y * a));
	double tmp;
	if (a <= -3.7e+116) {
		tmp = t_1;
	} else if (a <= -4.5e-174) {
		tmp = b * (j * (t * y4));
	} else if (a <= -3e-268) {
		tmp = j * (y0 * (y3 * y5));
	} else if (a <= 5e+44) {
		tmp = j * (b * (y0 * -x));
	} 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 = b * (x * (y * a))
    if (a <= (-3.7d+116)) then
        tmp = t_1
    else if (a <= (-4.5d-174)) then
        tmp = b * (j * (t * y4))
    else if (a <= (-3d-268)) then
        tmp = j * (y0 * (y3 * y5))
    else if (a <= 5d+44) then
        tmp = j * (b * (y0 * -x))
    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 = b * (x * (y * a));
	double tmp;
	if (a <= -3.7e+116) {
		tmp = t_1;
	} else if (a <= -4.5e-174) {
		tmp = b * (j * (t * y4));
	} else if (a <= -3e-268) {
		tmp = j * (y0 * (y3 * y5));
	} else if (a <= 5e+44) {
		tmp = j * (b * (y0 * -x));
	} 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 = b * (x * (y * a))
	tmp = 0
	if a <= -3.7e+116:
		tmp = t_1
	elif a <= -4.5e-174:
		tmp = b * (j * (t * y4))
	elif a <= -3e-268:
		tmp = j * (y0 * (y3 * y5))
	elif a <= 5e+44:
		tmp = j * (b * (y0 * -x))
	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(b * Float64(x * Float64(y * a)))
	tmp = 0.0
	if (a <= -3.7e+116)
		tmp = t_1;
	elseif (a <= -4.5e-174)
		tmp = Float64(b * Float64(j * Float64(t * y4)));
	elseif (a <= -3e-268)
		tmp = Float64(j * Float64(y0 * Float64(y3 * y5)));
	elseif (a <= 5e+44)
		tmp = Float64(j * Float64(b * Float64(y0 * Float64(-x))));
	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 = b * (x * (y * a));
	tmp = 0.0;
	if (a <= -3.7e+116)
		tmp = t_1;
	elseif (a <= -4.5e-174)
		tmp = b * (j * (t * y4));
	elseif (a <= -3e-268)
		tmp = j * (y0 * (y3 * y5));
	elseif (a <= 5e+44)
		tmp = j * (b * (y0 * -x));
	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[(b * N[(x * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.7e+116], t$95$1, If[LessEqual[a, -4.5e-174], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3e-268], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5e+44], N[(j * N[(b * N[(y0 * (-x)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot \left(x \cdot \left(y \cdot a\right)\right)\\
\mathbf{if}\;a \leq -3.7 \cdot 10^{+116}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq -4.5 \cdot 10^{-174}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\

\mathbf{elif}\;a \leq -3 \cdot 10^{-268}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -3.7000000000000001e116 or 4.9999999999999996e44 < a

    1. Initial program 14.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. Simplified15.9%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 50.5%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y around inf 37.7%

      \[\leadsto \color{blue}{a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
    6. Taylor expanded in b around inf 32.6%

      \[\leadsto a \cdot \left(y \cdot \color{blue}{\left(b \cdot x\right)}\right) \]
    7. Taylor expanded in a around 0 33.6%

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

        \[\leadsto \color{blue}{\left(b \cdot \left(x \cdot y\right)\right) \cdot a} \]
      2. associate-*r*32.6%

        \[\leadsto \color{blue}{\left(\left(b \cdot x\right) \cdot y\right)} \cdot a \]
      3. associate-*r*36.4%

        \[\leadsto \color{blue}{\left(b \cdot x\right) \cdot \left(y \cdot a\right)} \]
      4. *-commutative36.4%

        \[\leadsto \left(b \cdot x\right) \cdot \color{blue}{\left(a \cdot y\right)} \]
      5. associate-*l*43.6%

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

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

    if -3.7000000000000001e116 < a < -4.49999999999999964e-174

    1. Initial program 23.7%

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

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

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

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

    if -4.49999999999999964e-174 < a < -2.9999999999999997e-268

    1. Initial program 44.2%

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

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

      \[\leadsto \color{blue}{j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)} \]
    5. Taylor expanded in y3 around inf 33.6%

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

    if -2.9999999999999997e-268 < a < 4.9999999999999996e44

    1. Initial program 30.7%

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

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

      \[\leadsto \color{blue}{j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)} \]
    5. Taylor expanded in y3 around 0 24.5%

      \[\leadsto j \cdot \color{blue}{\left(-1 \cdot \left(b \cdot \left(x \cdot y0\right)\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*24.5%

        \[\leadsto j \cdot \color{blue}{\left(\left(-1 \cdot b\right) \cdot \left(x \cdot y0\right)\right)} \]
      2. neg-mul-124.5%

        \[\leadsto j \cdot \left(\color{blue}{\left(-b\right)} \cdot \left(x \cdot y0\right)\right) \]
    7. Simplified24.5%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -3.7 \cdot 10^{+116}:\\ \;\;\;\;b \cdot \left(x \cdot \left(y \cdot a\right)\right)\\ \mathbf{elif}\;a \leq -4.5 \cdot 10^{-174}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq -3 \cdot 10^{-268}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\ \mathbf{elif}\;a \leq 5 \cdot 10^{+44}:\\ \;\;\;\;j \cdot \left(b \cdot \left(y0 \cdot \left(-x\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(x \cdot \left(y \cdot a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 31.2% accurate, 3.6× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y1 < -7.4000000000000002e136

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

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

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

    if -7.4000000000000002e136 < y1 < -4.9999999999999998e-179

    1. Initial program 26.5%

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

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

      \[\leadsto y0 \cdot \color{blue}{\left(c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)} \]
    5. Step-by-step derivation
      1. *-commutative46.1%

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

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

    if -4.9999999999999998e-179 < y1 < 3.20000000000000002e42

    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 j around inf 43.2%

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

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

    if 3.20000000000000002e42 < y1

    1. Initial program 14.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. Simplified14.9%

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

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y1 around inf 51.5%

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

        \[\leadsto a \cdot \color{blue}{\left(\left(-1 \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)} \]
      2. mul-1-neg51.5%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y1 \leq -7.4 \cdot 10^{+136}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y1 \leq -5 \cdot 10^{-179}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y1 \leq 3.2 \cdot 10^{+42}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 29.7% accurate, 3.6× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y1 < -2.6e132

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

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

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

    if -2.6e132 < y1 < -5.7999999999999998e-179

    1. Initial program 26.5%

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

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

      \[\leadsto y0 \cdot \color{blue}{\left(c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)} \]
    5. Step-by-step derivation
      1. *-commutative46.1%

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

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

    if -5.7999999999999998e-179 < y1 < 2.4500000000000001e42

    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 j around inf 43.2%

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

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

    if 2.4500000000000001e42 < y1

    1. Initial program 14.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 37.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 49.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y1 \leq -2.6 \cdot 10^{+132}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y1 \leq -5.8 \cdot 10^{-179}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y1 \leq 2.45 \cdot 10^{+42}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 18: 32.7% accurate, 3.6× speedup?

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

\\
\begin{array}{l}
t_1 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;y4 \leq -6.8 \cdot 10^{+54}:\\
\;\;\;\;t\_1\\

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y4 < -6.8000000000000001e54 or 7.0000000000000002e65 < y4

    1. Initial program 26.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. Simplified26.0%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 43.6%

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

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

    if -6.8000000000000001e54 < y4 < 1.24999999999999999e-71

    1. Initial program 24.2%

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

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 38.9%

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

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

    if 1.24999999999999999e-71 < y4 < 7.0000000000000002e65

    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 j around inf 37.6%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y4 \leq -6.8 \cdot 10^{+54}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;y4 \leq 1.25 \cdot 10^{-71}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y4 \leq 7 \cdot 10^{+65}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 28.6% accurate, 3.6× speedup?

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

\\
\begin{array}{l}
t_1 := b \cdot \left(x \cdot \left(y \cdot a\right)\right)\\
\mathbf{if}\;a \leq -1.5 \cdot 10^{+152}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq -2.1 \cdot 10^{-264}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\

\mathbf{elif}\;a \leq 1.25 \cdot 10^{+46}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -1.49999999999999995e152 or 1.2500000000000001e46 < a

    1. Initial program 16.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. Simplified17.4%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 54.0%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y around inf 38.7%

      \[\leadsto \color{blue}{a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
    6. Taylor expanded in b around inf 33.1%

      \[\leadsto a \cdot \left(y \cdot \color{blue}{\left(b \cdot x\right)}\right) \]
    7. Taylor expanded in a around 0 34.3%

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

        \[\leadsto \color{blue}{\left(b \cdot \left(x \cdot y\right)\right) \cdot a} \]
      2. associate-*r*33.1%

        \[\leadsto \color{blue}{\left(\left(b \cdot x\right) \cdot y\right)} \cdot a \]
      3. associate-*r*37.3%

        \[\leadsto \color{blue}{\left(b \cdot x\right) \cdot \left(y \cdot a\right)} \]
      4. *-commutative37.3%

        \[\leadsto \left(b \cdot x\right) \cdot \color{blue}{\left(a \cdot y\right)} \]
      5. associate-*l*45.2%

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

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

    if -1.49999999999999995e152 < a < -2.1000000000000002e-264

    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. Simplified25.6%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 48.2%

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

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

    if -2.1000000000000002e-264 < a < 1.2500000000000001e46

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

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 36.7%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.5 \cdot 10^{+152}:\\ \;\;\;\;b \cdot \left(x \cdot \left(y \cdot a\right)\right)\\ \mathbf{elif}\;a \leq -2.1 \cdot 10^{-264}:\\ \;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 1.25 \cdot 10^{+46}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(x \cdot \left(y \cdot a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 26.4% accurate, 3.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y3 \leq -9.2 \cdot 10^{+226}:\\ \;\;\;\;j \cdot \left(\left(-y1\right) \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq -5.4 \cdot 10^{+29}:\\ \;\;\;\;a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\ \mathbf{elif}\;y3 \leq -3.1 \cdot 10^{-164}:\\ \;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \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 -9.2e+226)
   (* j (* (- y1) (* y3 y4)))
   (if (<= y3 -5.4e+29)
     (* a (* y3 (- (* z y1) (* y y5))))
     (if (<= y3 -3.1e-164)
       (* k (* y1 (* y2 y4)))
       (* a (* y (- (* x b) (* y3 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 <= -9.2e+226) {
		tmp = j * (-y1 * (y3 * y4));
	} else if (y3 <= -5.4e+29) {
		tmp = a * (y3 * ((z * y1) - (y * y5)));
	} else if (y3 <= -3.1e-164) {
		tmp = k * (y1 * (y2 * y4));
	} else {
		tmp = a * (y * ((x * b) - (y3 * 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 <= (-9.2d+226)) then
        tmp = j * (-y1 * (y3 * y4))
    else if (y3 <= (-5.4d+29)) then
        tmp = a * (y3 * ((z * y1) - (y * y5)))
    else if (y3 <= (-3.1d-164)) then
        tmp = k * (y1 * (y2 * y4))
    else
        tmp = a * (y * ((x * b) - (y3 * 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 <= -9.2e+226) {
		tmp = j * (-y1 * (y3 * y4));
	} else if (y3 <= -5.4e+29) {
		tmp = a * (y3 * ((z * y1) - (y * y5)));
	} else if (y3 <= -3.1e-164) {
		tmp = k * (y1 * (y2 * y4));
	} else {
		tmp = a * (y * ((x * b) - (y3 * 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 <= -9.2e+226:
		tmp = j * (-y1 * (y3 * y4))
	elif y3 <= -5.4e+29:
		tmp = a * (y3 * ((z * y1) - (y * y5)))
	elif y3 <= -3.1e-164:
		tmp = k * (y1 * (y2 * y4))
	else:
		tmp = a * (y * ((x * b) - (y3 * 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 <= -9.2e+226)
		tmp = Float64(j * Float64(Float64(-y1) * Float64(y3 * y4)));
	elseif (y3 <= -5.4e+29)
		tmp = Float64(a * Float64(y3 * Float64(Float64(z * y1) - Float64(y * y5))));
	elseif (y3 <= -3.1e-164)
		tmp = Float64(k * Float64(y1 * Float64(y2 * y4)));
	else
		tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * 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 <= -9.2e+226)
		tmp = j * (-y1 * (y3 * y4));
	elseif (y3 <= -5.4e+29)
		tmp = a * (y3 * ((z * y1) - (y * y5)));
	elseif (y3 <= -3.1e-164)
		tmp = k * (y1 * (y2 * y4));
	else
		tmp = a * (y * ((x * b) - (y3 * 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, -9.2e+226], N[(j * N[((-y1) * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -5.4e+29], N[(a * N[(y3 * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -3.1e-164], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

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

\mathbf{elif}\;y3 \leq -5.4 \cdot 10^{+29}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\

\mathbf{elif}\;y3 \leq -3.1 \cdot 10^{-164}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\

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


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

    1. Initial program 16.7%

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

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

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot j\right) \cdot \left(y1 \cdot \left(y3 \cdot y4\right)\right)} \]
      2. neg-mul-156.9%

        \[\leadsto \color{blue}{\left(-j\right)} \cdot \left(y1 \cdot \left(y3 \cdot y4\right)\right) \]
      3. *-commutative56.9%

        \[\leadsto \left(-j\right) \cdot \color{blue}{\left(\left(y3 \cdot y4\right) \cdot y1\right)} \]
    7. Simplified56.9%

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

    if -9.1999999999999998e226 < y3 < -5.4e29

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

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 46.2%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y3 around inf 44.5%

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

    if -5.4e29 < y3 < -3.1000000000000001e-164

    1. Initial program 31.5%

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

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

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

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

    if -3.1000000000000001e-164 < y3

    1. Initial program 25.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. Simplified26.5%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 36.7%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y around inf 34.0%

      \[\leadsto \color{blue}{a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification36.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -9.2 \cdot 10^{+226}:\\ \;\;\;\;j \cdot \left(\left(-y1\right) \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq -5.4 \cdot 10^{+29}:\\ \;\;\;\;a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\ \mathbf{elif}\;y3 \leq -3.1 \cdot 10^{-164}:\\ \;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 21: 22.4% accurate, 4.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(x \cdot \left(y \cdot a\right)\right)\\ \mathbf{if}\;a \leq -5.5 \cdot 10^{+116}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -9.5 \cdot 10^{-175}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 1.9 \cdot 10^{-18}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \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 (* b (* x (* y a)))))
   (if (<= a -5.5e+116)
     t_1
     (if (<= a -9.5e-175)
       (* b (* j (* t y4)))
       (if (<= a 1.9e-18) (* j (* y0 (* y3 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 = b * (x * (y * a));
	double tmp;
	if (a <= -5.5e+116) {
		tmp = t_1;
	} else if (a <= -9.5e-175) {
		tmp = b * (j * (t * y4));
	} else if (a <= 1.9e-18) {
		tmp = j * (y0 * (y3 * 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 = b * (x * (y * a))
    if (a <= (-5.5d+116)) then
        tmp = t_1
    else if (a <= (-9.5d-175)) then
        tmp = b * (j * (t * y4))
    else if (a <= 1.9d-18) then
        tmp = j * (y0 * (y3 * 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 = b * (x * (y * a));
	double tmp;
	if (a <= -5.5e+116) {
		tmp = t_1;
	} else if (a <= -9.5e-175) {
		tmp = b * (j * (t * y4));
	} else if (a <= 1.9e-18) {
		tmp = j * (y0 * (y3 * 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 = b * (x * (y * a))
	tmp = 0
	if a <= -5.5e+116:
		tmp = t_1
	elif a <= -9.5e-175:
		tmp = b * (j * (t * y4))
	elif a <= 1.9e-18:
		tmp = j * (y0 * (y3 * 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(b * Float64(x * Float64(y * a)))
	tmp = 0.0
	if (a <= -5.5e+116)
		tmp = t_1;
	elseif (a <= -9.5e-175)
		tmp = Float64(b * Float64(j * Float64(t * y4)));
	elseif (a <= 1.9e-18)
		tmp = Float64(j * Float64(y0 * Float64(y3 * 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 = b * (x * (y * a));
	tmp = 0.0;
	if (a <= -5.5e+116)
		tmp = t_1;
	elseif (a <= -9.5e-175)
		tmp = b * (j * (t * y4));
	elseif (a <= 1.9e-18)
		tmp = j * (y0 * (y3 * 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[(b * N[(x * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.5e+116], t$95$1, If[LessEqual[a, -9.5e-175], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.9e-18], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot \left(x \cdot \left(y \cdot a\right)\right)\\
\mathbf{if}\;a \leq -5.5 \cdot 10^{+116}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq -9.5 \cdot 10^{-175}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\

\mathbf{elif}\;a \leq 1.9 \cdot 10^{-18}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -5.50000000000000035e116 or 1.8999999999999999e-18 < a

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

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 49.2%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y around inf 36.8%

      \[\leadsto \color{blue}{a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
    6. Taylor expanded in b around inf 30.3%

      \[\leadsto a \cdot \left(y \cdot \color{blue}{\left(b \cdot x\right)}\right) \]
    7. Taylor expanded in a around 0 32.1%

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

        \[\leadsto \color{blue}{\left(b \cdot \left(x \cdot y\right)\right) \cdot a} \]
      2. associate-*r*30.3%

        \[\leadsto \color{blue}{\left(\left(b \cdot x\right) \cdot y\right)} \cdot a \]
      3. associate-*r*33.7%

        \[\leadsto \color{blue}{\left(b \cdot x\right) \cdot \left(y \cdot a\right)} \]
      4. *-commutative33.7%

        \[\leadsto \left(b \cdot x\right) \cdot \color{blue}{\left(a \cdot y\right)} \]
      5. associate-*l*41.0%

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

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

    if -5.50000000000000035e116 < a < -9.50000000000000052e-175

    1. Initial program 23.7%

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

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

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

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

    if -9.50000000000000052e-175 < a < 1.8999999999999999e-18

    1. Initial program 33.7%

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

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

      \[\leadsto \color{blue}{j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)} \]
    5. Taylor expanded in y3 around inf 23.2%

      \[\leadsto \color{blue}{j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification33.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -5.5 \cdot 10^{+116}:\\ \;\;\;\;b \cdot \left(x \cdot \left(y \cdot a\right)\right)\\ \mathbf{elif}\;a \leq -9.5 \cdot 10^{-175}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 1.9 \cdot 10^{-18}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(x \cdot \left(y \cdot a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 22: 22.1% accurate, 4.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(x \cdot \left(y \cdot a\right)\right)\\ \mathbf{if}\;a \leq -6.2 \cdot 10^{+116}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -1.32 \cdot 10^{-168}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 6.8 \cdot 10^{-47}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\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 (* b (* x (* y a)))))
   (if (<= a -6.2e+116)
     t_1
     (if (<= a -1.32e-168)
       (* b (* j (* t y4)))
       (if (<= a 6.8e-47) (* c (* y (* y3 y4))) 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 = b * (x * (y * a));
	double tmp;
	if (a <= -6.2e+116) {
		tmp = t_1;
	} else if (a <= -1.32e-168) {
		tmp = b * (j * (t * y4));
	} else if (a <= 6.8e-47) {
		tmp = c * (y * (y3 * y4));
	} 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 = b * (x * (y * a))
    if (a <= (-6.2d+116)) then
        tmp = t_1
    else if (a <= (-1.32d-168)) then
        tmp = b * (j * (t * y4))
    else if (a <= 6.8d-47) then
        tmp = c * (y * (y3 * y4))
    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 = b * (x * (y * a));
	double tmp;
	if (a <= -6.2e+116) {
		tmp = t_1;
	} else if (a <= -1.32e-168) {
		tmp = b * (j * (t * y4));
	} else if (a <= 6.8e-47) {
		tmp = c * (y * (y3 * y4));
	} 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 = b * (x * (y * a))
	tmp = 0
	if a <= -6.2e+116:
		tmp = t_1
	elif a <= -1.32e-168:
		tmp = b * (j * (t * y4))
	elif a <= 6.8e-47:
		tmp = c * (y * (y3 * y4))
	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(b * Float64(x * Float64(y * a)))
	tmp = 0.0
	if (a <= -6.2e+116)
		tmp = t_1;
	elseif (a <= -1.32e-168)
		tmp = Float64(b * Float64(j * Float64(t * y4)));
	elseif (a <= 6.8e-47)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	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 = b * (x * (y * a));
	tmp = 0.0;
	if (a <= -6.2e+116)
		tmp = t_1;
	elseif (a <= -1.32e-168)
		tmp = b * (j * (t * y4));
	elseif (a <= 6.8e-47)
		tmp = c * (y * (y3 * y4));
	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[(b * N[(x * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.2e+116], t$95$1, If[LessEqual[a, -1.32e-168], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.8e-47], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot \left(x \cdot \left(y \cdot a\right)\right)\\
\mathbf{if}\;a \leq -6.2 \cdot 10^{+116}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq -1.32 \cdot 10^{-168}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\

\mathbf{elif}\;a \leq 6.8 \cdot 10^{-47}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -6.19999999999999992e116 or 6.8000000000000003e-47 < a

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

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 48.1%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y around inf 36.3%

      \[\leadsto \color{blue}{a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
    6. Taylor expanded in b around inf 29.4%

      \[\leadsto a \cdot \left(y \cdot \color{blue}{\left(b \cdot x\right)}\right) \]
    7. Taylor expanded in a around 0 30.2%

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

        \[\leadsto \color{blue}{\left(b \cdot \left(x \cdot y\right)\right) \cdot a} \]
      2. associate-*r*29.4%

        \[\leadsto \color{blue}{\left(\left(b \cdot x\right) \cdot y\right)} \cdot a \]
      3. associate-*r*31.7%

        \[\leadsto \color{blue}{\left(b \cdot x\right) \cdot \left(y \cdot a\right)} \]
      4. *-commutative31.7%

        \[\leadsto \left(b \cdot x\right) \cdot \color{blue}{\left(a \cdot y\right)} \]
      5. associate-*l*38.6%

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

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

    if -6.19999999999999992e116 < a < -1.3200000000000001e-168

    1. Initial program 24.1%

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

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

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

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

    if -1.3200000000000001e-168 < a < 6.8000000000000003e-47

    1. Initial program 34.8%

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

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 45.8%

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

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(y \cdot \left(i \cdot x - y3 \cdot y4\right)\right)\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg26.9%

        \[\leadsto \color{blue}{-c \cdot \left(y \cdot \left(i \cdot x - y3 \cdot y4\right)\right)} \]
    7. Simplified26.9%

      \[\leadsto \color{blue}{-c \cdot \left(y \cdot \left(i \cdot x - y3 \cdot y4\right)\right)} \]
    8. Taylor expanded in i around 0 20.4%

      \[\leadsto \color{blue}{c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification31.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -6.2 \cdot 10^{+116}:\\ \;\;\;\;b \cdot \left(x \cdot \left(y \cdot a\right)\right)\\ \mathbf{elif}\;a \leq -1.32 \cdot 10^{-168}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 6.8 \cdot 10^{-47}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(x \cdot \left(y \cdot a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 23: 32.4% accurate, 4.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -7.5 \cdot 10^{+54} \lor \neg \left(y4 \leq 9.5 \cdot 10^{+95}\right):\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y4 < -7.50000000000000042e54 or 9.5000000000000004e95 < y4

    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. Simplified27.1%

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

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

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

    if -7.50000000000000042e54 < y4 < 9.5000000000000004e95

    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. Simplified23.7%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 38.1%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y4 \leq -7.5 \cdot 10^{+54} \lor \neg \left(y4 \leq 9.5 \cdot 10^{+95}\right):\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 24: 31.0% accurate, 4.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -6.3 \cdot 10^{+41} \lor \neg \left(y \leq 8.5 \cdot 10^{-130}\right):\\ \;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \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 (or (<= y -6.3e+41) (not (<= y 8.5e-130)))
   (* a (* y (- (* x b) (* y3 y5))))
   (* c (* t (- (* z i) (* y2 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 ((y <= -6.3e+41) || !(y <= 8.5e-130)) {
		tmp = a * (y * ((x * b) - (y3 * y5)));
	} else {
		tmp = c * (t * ((z * i) - (y2 * 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 ((y <= (-6.3d+41)) .or. (.not. (y <= 8.5d-130))) then
        tmp = a * (y * ((x * b) - (y3 * y5)))
    else
        tmp = c * (t * ((z * i) - (y2 * 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 ((y <= -6.3e+41) || !(y <= 8.5e-130)) {
		tmp = a * (y * ((x * b) - (y3 * y5)));
	} else {
		tmp = c * (t * ((z * i) - (y2 * y4)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if (y <= -6.3e+41) or not (y <= 8.5e-130):
		tmp = a * (y * ((x * b) - (y3 * y5)))
	else:
		tmp = c * (t * ((z * i) - (y2 * 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 ((y <= -6.3e+41) || !(y <= 8.5e-130))
		tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * y5))));
	else
		tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * 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 ((y <= -6.3e+41) || ~((y <= 8.5e-130)))
		tmp = a * (y * ((x * b) - (y3 * y5)));
	else
		tmp = c * (t * ((z * i) - (y2 * y4)));
	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[y, -6.3e+41], N[Not[LessEqual[y, 8.5e-130]], $MachinePrecision]], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.3 \cdot 10^{+41} \lor \neg \left(y \leq 8.5 \cdot 10^{-130}\right):\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -6.2999999999999999e41 or 8.50000000000000033e-130 < y

    1. Initial program 16.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. Simplified16.2%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 39.1%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y around inf 41.7%

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

    if -6.2999999999999999e41 < y < 8.50000000000000033e-130

    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. Simplified37.0%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in c around inf 41.6%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -6.3 \cdot 10^{+41} \lor \neg \left(y \leq 8.5 \cdot 10^{-130}\right):\\ \;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 25: 24.2% accurate, 4.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y3 \leq -1.92 \cdot 10^{+83}:\\ \;\;\;\;j \cdot \left(\left(-y1\right) \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq -3.5 \cdot 10^{-163}:\\ \;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \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 -1.92e+83)
   (* j (* (- y1) (* y3 y4)))
   (if (<= y3 -3.5e-163)
     (* k (* y1 (* y2 y4)))
     (* a (* y (- (* x b) (* y3 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 <= -1.92e+83) {
		tmp = j * (-y1 * (y3 * y4));
	} else if (y3 <= -3.5e-163) {
		tmp = k * (y1 * (y2 * y4));
	} else {
		tmp = a * (y * ((x * b) - (y3 * 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 <= (-1.92d+83)) then
        tmp = j * (-y1 * (y3 * y4))
    else if (y3 <= (-3.5d-163)) then
        tmp = k * (y1 * (y2 * y4))
    else
        tmp = a * (y * ((x * b) - (y3 * 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 <= -1.92e+83) {
		tmp = j * (-y1 * (y3 * y4));
	} else if (y3 <= -3.5e-163) {
		tmp = k * (y1 * (y2 * y4));
	} else {
		tmp = a * (y * ((x * b) - (y3 * 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 <= -1.92e+83:
		tmp = j * (-y1 * (y3 * y4))
	elif y3 <= -3.5e-163:
		tmp = k * (y1 * (y2 * y4))
	else:
		tmp = a * (y * ((x * b) - (y3 * 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 <= -1.92e+83)
		tmp = Float64(j * Float64(Float64(-y1) * Float64(y3 * y4)));
	elseif (y3 <= -3.5e-163)
		tmp = Float64(k * Float64(y1 * Float64(y2 * y4)));
	else
		tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * 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 <= -1.92e+83)
		tmp = j * (-y1 * (y3 * y4));
	elseif (y3 <= -3.5e-163)
		tmp = k * (y1 * (y2 * y4));
	else
		tmp = a * (y * ((x * b) - (y3 * 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, -1.92e+83], N[(j * N[((-y1) * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -3.5e-163], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

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

\mathbf{elif}\;y3 \leq -3.5 \cdot 10^{-163}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y3 < -1.91999999999999998e83

    1. Initial program 14.9%

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

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

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot j\right) \cdot \left(y1 \cdot \left(y3 \cdot y4\right)\right)} \]
      2. neg-mul-140.1%

        \[\leadsto \color{blue}{\left(-j\right)} \cdot \left(y1 \cdot \left(y3 \cdot y4\right)\right) \]
      3. *-commutative40.1%

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

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

    if -1.91999999999999998e83 < y3 < -3.50000000000000027e-163

    1. Initial program 31.2%

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

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

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

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

    if -3.50000000000000027e-163 < y3

    1. Initial program 25.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. Simplified26.5%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 36.7%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y around inf 34.0%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -1.92 \cdot 10^{+83}:\\ \;\;\;\;j \cdot \left(\left(-y1\right) \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq -3.5 \cdot 10^{-163}:\\ \;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 26: 21.9% accurate, 5.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -4.4 \cdot 10^{+128} \lor \neg \left(t \leq 1.16 \cdot 10^{+126}\right):\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(x \cdot \left(y \cdot a\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 (<= t -4.4e+128) (not (<= t 1.16e+126)))
   (* b (* j (* t y4)))
   (* b (* x (* y 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 ((t <= -4.4e+128) || !(t <= 1.16e+126)) {
		tmp = b * (j * (t * y4));
	} else {
		tmp = b * (x * (y * 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 ((t <= (-4.4d+128)) .or. (.not. (t <= 1.16d+126))) then
        tmp = b * (j * (t * y4))
    else
        tmp = b * (x * (y * 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 ((t <= -4.4e+128) || !(t <= 1.16e+126)) {
		tmp = b * (j * (t * y4));
	} else {
		tmp = b * (x * (y * a));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if (t <= -4.4e+128) or not (t <= 1.16e+126):
		tmp = b * (j * (t * y4))
	else:
		tmp = b * (x * (y * 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 ((t <= -4.4e+128) || !(t <= 1.16e+126))
		tmp = Float64(b * Float64(j * Float64(t * y4)));
	else
		tmp = Float64(b * Float64(x * Float64(y * 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 ((t <= -4.4e+128) || ~((t <= 1.16e+126)))
		tmp = b * (j * (t * y4));
	else
		tmp = b * (x * (y * a));
	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[t, -4.4e+128], N[Not[LessEqual[t, 1.16e+126]], $MachinePrecision]], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(x * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.4 \cdot 10^{+128} \lor \neg \left(t \leq 1.16 \cdot 10^{+126}\right):\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -4.40000000000000033e128 or 1.15999999999999997e126 < t

    1. Initial program 20.5%

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

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

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

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

    if -4.40000000000000033e128 < t < 1.15999999999999997e126

    1. Initial program 26.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. Simplified26.8%

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 41.3%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y around inf 30.3%

      \[\leadsto \color{blue}{a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
    6. Taylor expanded in b around inf 22.8%

      \[\leadsto a \cdot \left(y \cdot \color{blue}{\left(b \cdot x\right)}\right) \]
    7. Taylor expanded in a around 0 23.4%

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

        \[\leadsto \color{blue}{\left(b \cdot \left(x \cdot y\right)\right) \cdot a} \]
      2. associate-*r*22.8%

        \[\leadsto \color{blue}{\left(\left(b \cdot x\right) \cdot y\right)} \cdot a \]
      3. associate-*r*21.7%

        \[\leadsto \color{blue}{\left(b \cdot x\right) \cdot \left(y \cdot a\right)} \]
      4. *-commutative21.7%

        \[\leadsto \left(b \cdot x\right) \cdot \color{blue}{\left(a \cdot y\right)} \]
      5. associate-*l*25.4%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.4 \cdot 10^{+128} \lor \neg \left(t \leq 1.16 \cdot 10^{+126}\right):\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(x \cdot \left(y \cdot a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 27: 21.8% accurate, 5.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.1 \cdot 10^{+101} \lor \neg \left(t \leq 2.6 \cdot 10^{+125}\right):\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.1e101 or 2.60000000000000003e125 < t

    1. Initial program 19.7%

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

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

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

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

    if -1.1e101 < t < 2.60000000000000003e125

    1. Initial program 26.7%

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

      \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in a around inf 41.4%

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y around inf 30.3%

      \[\leadsto \color{blue}{a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
    6. Taylor expanded in b around inf 22.6%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.1 \cdot 10^{+101} \lor \neg \left(t \leq 2.6 \cdot 10^{+125}\right):\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 28: 16.6% accurate, 13.6× speedup?

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

\\
a \cdot \left(y \cdot \left(x \cdot b\right)\right)
\end{array}
Derivation
  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. Simplified25.0%

    \[\leadsto \color{blue}{\left(\left(\mathsf{fma}\left(x, y, t \cdot \left(-z\right)\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot \mathsf{fma}\left(c, y0, y1 \cdot \left(-a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \mathsf{fma}\left(b, y4, -i \cdot y5\right)\right)\right) - \left(\left(t \cdot y2 - y \cdot y3\right) \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
  3. Add Preprocessing
  4. Taylor expanded in a around inf 36.4%

    \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(-1 \cdot \left(t \cdot z\right) + x \cdot y\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
  5. Taylor expanded in y around inf 28.0%

    \[\leadsto \color{blue}{a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
  6. Taylor expanded in b around inf 18.7%

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

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

Developer Target 1: 28.0% 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 2024132 
(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)))))