Linear.Matrix:det44 from linear-1.19.1.3

Percentage Accurate: 29.7% → 37.8%
Time: 44.7s
Alternatives: 36
Speedup: 3.1×

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 36 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.7% 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: 37.8% accurate, 1.9× speedup?

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

\\
\begin{array}{l}
t_1 := y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
t_2 := t \cdot j - y \cdot k\\
\mathbf{if}\;y2 \leq -9.4 \cdot 10^{+117}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y2 \leq -7.2 \cdot 10^{-113}:\\
\;\;\;\;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(a \cdot y5 - c \cdot y4\right)\right)\\

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

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

\mathbf{elif}\;y2 \leq 6.2 \cdot 10^{+209}:\\
\;\;\;\;b \cdot \left(y4 \cdot t\_2\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y2 < -9.40000000000000011e117 or 6.2000000000000002e209 < y2

    1. Initial program 15.2%

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(y1 \cdot \left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg57.9%

        \[\leadsto \color{blue}{-y1 \cdot \left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right)} \]
      2. *-commutative57.9%

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

        \[\leadsto \color{blue}{\left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right) \cdot \left(-y1\right)} \]
      4. +-commutative57.9%

        \[\leadsto \left(y2 \cdot \color{blue}{\left(a \cdot x + -1 \cdot \left(k \cdot y4\right)\right)}\right) \cdot \left(-y1\right) \]
      5. mul-1-neg57.9%

        \[\leadsto \left(y2 \cdot \left(a \cdot x + \color{blue}{\left(-k \cdot y4\right)}\right)\right) \cdot \left(-y1\right) \]
      6. unsub-neg57.9%

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

        \[\leadsto \left(y2 \cdot \left(\color{blue}{x \cdot a} - k \cdot y4\right)\right) \cdot \left(-y1\right) \]
    6. Simplified57.9%

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

    if -9.40000000000000011e117 < y2 < -7.1999999999999995e-113

    1. Initial program 31.8%

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

    1. Initial program 35.9%

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

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

    if 4.2000000000000002e-257 < y2 < 1.55e73

    1. Initial program 34.5%

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

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

    if 1.55e73 < y2 < 6.2000000000000002e209

    1. Initial program 25.2%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -9.4 \cdot 10^{+117}:\\ \;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\ \mathbf{elif}\;y2 \leq -7.2 \cdot 10^{-113}:\\ \;\;\;\;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(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq 4.2 \cdot 10^{-257}:\\ \;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) - \left(c \cdot \left(x \cdot y - z \cdot t\right) + y5 \cdot \left(t \cdot j - y \cdot k\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 1.55 \cdot 10^{+73}:\\ \;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;y2 \leq 6.2 \cdot 10^{+209}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 53.0% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(x \cdot t\_1 - k \cdot t\_2\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\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 90.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

    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 y around inf 42.4%

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

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

Alternative 3: 37.3% accurate, 1.7× speedup?

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

\\
\begin{array}{l}
t_1 := y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
t_2 := t \cdot j - y \cdot k\\
\mathbf{if}\;y2 \leq -5.8 \cdot 10^{+117}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y2 \leq -4.4 \cdot 10^{-87}:\\
\;\;\;\;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(a \cdot y5 - c \cdot y4\right)\right)\\

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

\mathbf{elif}\;y2 \leq 2.55 \cdot 10^{-272}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(\left(k \cdot y2 + \frac{i \cdot \left(x \cdot j - z \cdot k\right)}{y4}\right) - j \cdot y3\right)\right)\\

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

\mathbf{elif}\;y2 \leq 7.5 \cdot 10^{+212}:\\
\;\;\;\;b \cdot \left(y4 \cdot t\_2\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y2 < -5.80000000000000055e117 or 7.5000000000000003e212 < y2

    1. Initial program 15.2%

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(y1 \cdot \left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg57.9%

        \[\leadsto \color{blue}{-y1 \cdot \left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right)} \]
      2. *-commutative57.9%

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

        \[\leadsto \color{blue}{\left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right) \cdot \left(-y1\right)} \]
      4. +-commutative57.9%

        \[\leadsto \left(y2 \cdot \color{blue}{\left(a \cdot x + -1 \cdot \left(k \cdot y4\right)\right)}\right) \cdot \left(-y1\right) \]
      5. mul-1-neg57.9%

        \[\leadsto \left(y2 \cdot \left(a \cdot x + \color{blue}{\left(-k \cdot y4\right)}\right)\right) \cdot \left(-y1\right) \]
      6. unsub-neg57.9%

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

        \[\leadsto \left(y2 \cdot \left(\color{blue}{x \cdot a} - k \cdot y4\right)\right) \cdot \left(-y1\right) \]
    6. Simplified57.9%

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

    if -5.80000000000000055e117 < y2 < -4.39999999999999976e-87

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

    if -4.39999999999999976e-87 < y2 < -3.0000000000000002e-163

    1. Initial program 37.5%

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

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

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

    if -3.0000000000000002e-163 < y2 < 2.5499999999999999e-272

    1. Initial program 33.3%

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

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

      \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    5. Step-by-step derivation
      1. neg-mul-150.7%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) \]
      2. distribute-lft-neg-in50.7%

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

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

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

    if 2.5499999999999999e-272 < y2 < 2.99999999999999976e70

    1. Initial program 36.0%

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

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

    if 2.99999999999999976e70 < y2 < 7.5000000000000003e212

    1. Initial program 25.2%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -5.8 \cdot 10^{+117}:\\ \;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\ \mathbf{elif}\;y2 \leq -4.4 \cdot 10^{-87}:\\ \;\;\;\;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(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -3 \cdot 10^{-163}:\\ \;\;\;\;z \cdot \left(b \cdot \left(k \cdot y0\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - a \cdot \left(t \cdot b\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 2.55 \cdot 10^{-272}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(\left(k \cdot y2 + \frac{i \cdot \left(x \cdot j - z \cdot k\right)}{y4}\right) - j \cdot y3\right)\right)\\ \mathbf{elif}\;y2 \leq 3 \cdot 10^{+70}:\\ \;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;y2 \leq 7.5 \cdot 10^{+212}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 37.4% accurate, 1.9× speedup?

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

\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{+266}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(k \cdot \left(\frac{t \cdot j}{k} - y\right)\right)\right)\\

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

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

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

\mathbf{elif}\;z \leq 5.5 \cdot 10^{+36}:\\
\;\;\;\;y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\

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


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

    1. Initial program 21.5%

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in k around inf 80.7%

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

    if -3.50000000000000025e266 < z < -6.00000000000000033e-47

    1. Initial program 27.3%

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

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

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

    if -6.00000000000000033e-47 < z < -3.45000000000000008e-192

    1. Initial program 38.9%

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

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

    if -3.45000000000000008e-192 < z < 6.1999999999999998e-96

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

    if 6.1999999999999998e-96 < z < 5.5000000000000002e36

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified63.0%

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

    if 5.5000000000000002e36 < z

    1. Initial program 29.2%

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

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

      \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    5. Step-by-step derivation
      1. neg-mul-156.9%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) \]
      2. distribute-lft-neg-in56.9%

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

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

      \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(\left(k \cdot y2 + \frac{i \cdot \left(j \cdot x - k \cdot z\right)}{y4}\right) - j \cdot y3\right)\right)} \]
  3. Recombined 6 regimes into one program.
  4. Final simplification55.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.5 \cdot 10^{+266}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(k \cdot \left(\frac{t \cdot j}{k} - y\right)\right)\right)\\ \mathbf{elif}\;z \leq -6 \cdot 10^{-47}:\\ \;\;\;\;z \cdot \left(b \cdot \left(k \cdot y0\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - a \cdot \left(t \cdot b\right)\right)\right)\\ \mathbf{elif}\;z \leq -3.45 \cdot 10^{-192}:\\ \;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{-96}:\\ \;\;\;\;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(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;z \leq 5.5 \cdot 10^{+36}:\\ \;\;\;\;y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(\left(k \cdot y2 + \frac{i \cdot \left(x \cdot j - z \cdot k\right)}{y4}\right) - j \cdot y3\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 38.2% accurate, 1.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.4 \cdot 10^{+266}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(k \cdot \left(\frac{t \cdot j}{k} - y\right)\right)\right)\\

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

\mathbf{elif}\;z \leq 8 \cdot 10^{-238}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if z < -3.4e266

    1. Initial program 21.5%

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in k around inf 80.7%

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

    if -3.4e266 < z < -2.50000000000000019e-44

    1. Initial program 27.3%

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

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

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

    if -2.50000000000000019e-44 < z < 7.9999999999999999e-238

    1. Initial program 37.7%

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

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

    if 7.9999999999999999e-238 < z < 8.5000000000000007e-201

    1. Initial program 30.8%

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

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

    if 8.5000000000000007e-201 < z

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

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

      \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    5. Step-by-step derivation
      1. neg-mul-150.6%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) \]
      2. distribute-lft-neg-in50.6%

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

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

      \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(\left(k \cdot y2 + \frac{i \cdot \left(j \cdot x - k \cdot z\right)}{y4}\right) - j \cdot y3\right)\right)} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification53.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.4 \cdot 10^{+266}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(k \cdot \left(\frac{t \cdot j}{k} - y\right)\right)\right)\\ \mathbf{elif}\;z \leq -2.5 \cdot 10^{-44}:\\ \;\;\;\;z \cdot \left(b \cdot \left(k \cdot y0\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - a \cdot \left(t \cdot b\right)\right)\right)\\ \mathbf{elif}\;z \leq 8 \cdot 10^{-238}:\\ \;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;z \leq 8.5 \cdot 10^{-201}:\\ \;\;\;\;b \cdot \left(\left(y4 \cdot \left(t \cdot j - y \cdot k\right) + a \cdot \left(x \cdot y - z \cdot t\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(\left(k \cdot y2 + \frac{i \cdot \left(x \cdot j - z \cdot k\right)}{y4}\right) - j \cdot y3\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 36.1% accurate, 2.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(y4 \cdot \left(k \cdot \left(\frac{t \cdot j}{k} - y\right)\right)\right)\\ \mathbf{if}\;z \leq -3.5 \cdot 10^{+266}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -7.6 \cdot 10^{-44}:\\ \;\;\;\;z \cdot \left(b \cdot \left(k \cdot y0\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - a \cdot \left(t \cdot b\right)\right)\right)\\ \mathbf{elif}\;z \leq -1.12 \cdot 10^{-305}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) + i \cdot \left(x \cdot j\right)\right)\\ \mathbf{elif}\;z \leq 1.75 \cdot 10^{-234}:\\ \;\;\;\;x \cdot \left(y0 \cdot \left(c \cdot y2 - b \cdot j\right)\right)\\ \mathbf{elif}\;z \leq 3.7 \cdot 10^{-196}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(\left(k \cdot y2 + \frac{i \cdot \left(x \cdot j - z \cdot k\right)}{y4}\right) - j \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
 (let* ((t_1 (* b (* y4 (* k (- (/ (* t j) k) y))))))
   (if (<= z -3.5e+266)
     t_1
     (if (<= z -7.6e-44)
       (* z (+ (* b (* k y0)) (- (* y3 (- (* a y1) (* c y0))) (* a (* t b)))))
       (if (<= z -1.12e-305)
         (* y1 (+ (* y4 (- (* k y2) (* j y3))) (* i (* x j))))
         (if (<= z 1.75e-234)
           (* x (* y0 (- (* c y2) (* b j))))
           (if (<= z 3.7e-196)
             t_1
             (*
              y1
              (*
               y4
               (-
                (+ (* k y2) (/ (* i (- (* x j) (* z k))) y4))
                (* j 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 t_1 = b * (y4 * (k * (((t * j) / k) - y)));
	double tmp;
	if (z <= -3.5e+266) {
		tmp = t_1;
	} else if (z <= -7.6e-44) {
		tmp = z * ((b * (k * y0)) + ((y3 * ((a * y1) - (c * y0))) - (a * (t * b))));
	} else if (z <= -1.12e-305) {
		tmp = y1 * ((y4 * ((k * y2) - (j * y3))) + (i * (x * j)));
	} else if (z <= 1.75e-234) {
		tmp = x * (y0 * ((c * y2) - (b * j)));
	} else if (z <= 3.7e-196) {
		tmp = t_1;
	} else {
		tmp = y1 * (y4 * (((k * y2) + ((i * ((x * j) - (z * k))) / y4)) - (j * 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) :: t_1
    real(8) :: tmp
    t_1 = b * (y4 * (k * (((t * j) / k) - y)))
    if (z <= (-3.5d+266)) then
        tmp = t_1
    else if (z <= (-7.6d-44)) then
        tmp = z * ((b * (k * y0)) + ((y3 * ((a * y1) - (c * y0))) - (a * (t * b))))
    else if (z <= (-1.12d-305)) then
        tmp = y1 * ((y4 * ((k * y2) - (j * y3))) + (i * (x * j)))
    else if (z <= 1.75d-234) then
        tmp = x * (y0 * ((c * y2) - (b * j)))
    else if (z <= 3.7d-196) then
        tmp = t_1
    else
        tmp = y1 * (y4 * (((k * y2) + ((i * ((x * j) - (z * k))) / y4)) - (j * 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 t_1 = b * (y4 * (k * (((t * j) / k) - y)));
	double tmp;
	if (z <= -3.5e+266) {
		tmp = t_1;
	} else if (z <= -7.6e-44) {
		tmp = z * ((b * (k * y0)) + ((y3 * ((a * y1) - (c * y0))) - (a * (t * b))));
	} else if (z <= -1.12e-305) {
		tmp = y1 * ((y4 * ((k * y2) - (j * y3))) + (i * (x * j)));
	} else if (z <= 1.75e-234) {
		tmp = x * (y0 * ((c * y2) - (b * j)));
	} else if (z <= 3.7e-196) {
		tmp = t_1;
	} else {
		tmp = y1 * (y4 * (((k * y2) + ((i * ((x * j) - (z * k))) / y4)) - (j * y3)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = b * (y4 * (k * (((t * j) / k) - y)))
	tmp = 0
	if z <= -3.5e+266:
		tmp = t_1
	elif z <= -7.6e-44:
		tmp = z * ((b * (k * y0)) + ((y3 * ((a * y1) - (c * y0))) - (a * (t * b))))
	elif z <= -1.12e-305:
		tmp = y1 * ((y4 * ((k * y2) - (j * y3))) + (i * (x * j)))
	elif z <= 1.75e-234:
		tmp = x * (y0 * ((c * y2) - (b * j)))
	elif z <= 3.7e-196:
		tmp = t_1
	else:
		tmp = y1 * (y4 * (((k * y2) + ((i * ((x * j) - (z * k))) / y4)) - (j * y3)))
	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(y4 * Float64(k * Float64(Float64(Float64(t * j) / k) - y))))
	tmp = 0.0
	if (z <= -3.5e+266)
		tmp = t_1;
	elseif (z <= -7.6e-44)
		tmp = Float64(z * Float64(Float64(b * Float64(k * y0)) + Float64(Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))) - Float64(a * Float64(t * b)))));
	elseif (z <= -1.12e-305)
		tmp = Float64(y1 * Float64(Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3))) + Float64(i * Float64(x * j))));
	elseif (z <= 1.75e-234)
		tmp = Float64(x * Float64(y0 * Float64(Float64(c * y2) - Float64(b * j))));
	elseif (z <= 3.7e-196)
		tmp = t_1;
	else
		tmp = Float64(y1 * Float64(y4 * Float64(Float64(Float64(k * y2) + Float64(Float64(i * Float64(Float64(x * j) - Float64(z * k))) / y4)) - Float64(j * 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)
	t_1 = b * (y4 * (k * (((t * j) / k) - y)));
	tmp = 0.0;
	if (z <= -3.5e+266)
		tmp = t_1;
	elseif (z <= -7.6e-44)
		tmp = z * ((b * (k * y0)) + ((y3 * ((a * y1) - (c * y0))) - (a * (t * b))));
	elseif (z <= -1.12e-305)
		tmp = y1 * ((y4 * ((k * y2) - (j * y3))) + (i * (x * j)));
	elseif (z <= 1.75e-234)
		tmp = x * (y0 * ((c * y2) - (b * j)));
	elseif (z <= 3.7e-196)
		tmp = t_1;
	else
		tmp = y1 * (y4 * (((k * y2) + ((i * ((x * j) - (z * k))) / y4)) - (j * y3)));
	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[(y4 * N[(k * N[(N[(N[(t * j), $MachinePrecision] / k), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.5e+266], t$95$1, If[LessEqual[z, -7.6e-44], N[(z * N[(N[(b * N[(k * y0), $MachinePrecision]), $MachinePrecision] + N[(N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.12e-305], N[(y1 * N[(N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.75e-234], N[(x * N[(y0 * N[(N[(c * y2), $MachinePrecision] - N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.7e-196], t$95$1, N[(y1 * N[(y4 * N[(N[(N[(k * y2), $MachinePrecision] + N[(N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y4), $MachinePrecision]), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot \left(y4 \cdot \left(k \cdot \left(\frac{t \cdot j}{k} - y\right)\right)\right)\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{+266}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;z \leq -1.12 \cdot 10^{-305}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) + i \cdot \left(x \cdot j\right)\right)\\

\mathbf{elif}\;z \leq 1.75 \cdot 10^{-234}:\\
\;\;\;\;x \cdot \left(y0 \cdot \left(c \cdot y2 - b \cdot j\right)\right)\\

\mathbf{elif}\;z \leq 3.7 \cdot 10^{-196}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if z < -3.50000000000000025e266 or 1.7500000000000001e-234 < z < 3.7000000000000001e-196

    1. Initial program 29.9%

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in k around inf 65.2%

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

    if -3.50000000000000025e266 < z < -7.6000000000000002e-44

    1. Initial program 26.6%

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

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

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

    if -7.6000000000000002e-44 < z < -1.1200000000000001e-305

    1. Initial program 37.9%

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

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

      \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    5. Step-by-step derivation
      1. neg-mul-140.5%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) \]
      2. distribute-lft-neg-in40.5%

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

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

      \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{-1 \cdot \left(i \cdot \left(j \cdot x\right)\right)}\right) \]
    8. Step-by-step derivation
      1. mul-1-neg43.7%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i \cdot \left(j \cdot x\right)\right)}\right) \]
      2. *-commutative43.7%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \left(-\color{blue}{\left(j \cdot x\right) \cdot i}\right)\right) \]
      3. distribute-rgt-neg-in43.7%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(j \cdot x\right) \cdot \left(-i\right)}\right) \]
    9. Simplified43.7%

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

    if -1.1200000000000001e-305 < z < 1.7500000000000001e-234

    1. Initial program 33.2%

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

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

    if 3.7000000000000001e-196 < z

    1. Initial program 26.6%

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

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

      \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    5. Step-by-step derivation
      1. neg-mul-151.1%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) \]
      2. distribute-lft-neg-in51.1%

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

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

      \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(\left(k \cdot y2 + \frac{i \cdot \left(j \cdot x - k \cdot z\right)}{y4}\right) - j \cdot y3\right)\right)} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification54.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.5 \cdot 10^{+266}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(k \cdot \left(\frac{t \cdot j}{k} - y\right)\right)\right)\\ \mathbf{elif}\;z \leq -7.6 \cdot 10^{-44}:\\ \;\;\;\;z \cdot \left(b \cdot \left(k \cdot y0\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - a \cdot \left(t \cdot b\right)\right)\right)\\ \mathbf{elif}\;z \leq -1.12 \cdot 10^{-305}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) + i \cdot \left(x \cdot j\right)\right)\\ \mathbf{elif}\;z \leq 1.75 \cdot 10^{-234}:\\ \;\;\;\;x \cdot \left(y0 \cdot \left(c \cdot y2 - b \cdot j\right)\right)\\ \mathbf{elif}\;z \leq 3.7 \cdot 10^{-196}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(k \cdot \left(\frac{t \cdot j}{k} - y\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(\left(k \cdot y2 + \frac{i \cdot \left(x \cdot j - z \cdot k\right)}{y4}\right) - j \cdot y3\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 20.9% accurate, 2.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\ \mathbf{if}\;a \leq -2.6 \cdot 10^{+167}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -1.8 \cdot 10^{+35}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j\right)\right)\\ \mathbf{elif}\;a \leq -1.4 \cdot 10^{-75}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq -1.2 \cdot 10^{-132}:\\ \;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\ \mathbf{elif}\;a \leq 1.55 \cdot 10^{-294}:\\ \;\;\;\;y1 \cdot \left(k \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 5.5 \cdot 10^{+32}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 3.5 \cdot 10^{+216}:\\ \;\;\;\;j \cdot \left(y5 \cdot \left(y0 \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 (* y (* x a)))))
   (if (<= a -2.6e+167)
     t_1
     (if (<= a -1.8e+35)
       (* b (* y4 (* t j)))
       (if (<= a -1.4e-75)
         (* c (* y (* y3 y4)))
         (if (<= a -1.2e-132)
           (* c (* x (* y0 y2)))
           (if (<= a 1.55e-294)
             (* y1 (* k (* y2 y4)))
             (if (<= a 5.5e+32)
               (* b (* j (* t y4)))
               (if (<= a 3.5e+216) (* j (* y5 (* y0 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 * (y * (x * a));
	double tmp;
	if (a <= -2.6e+167) {
		tmp = t_1;
	} else if (a <= -1.8e+35) {
		tmp = b * (y4 * (t * j));
	} else if (a <= -1.4e-75) {
		tmp = c * (y * (y3 * y4));
	} else if (a <= -1.2e-132) {
		tmp = c * (x * (y0 * y2));
	} else if (a <= 1.55e-294) {
		tmp = y1 * (k * (y2 * y4));
	} else if (a <= 5.5e+32) {
		tmp = b * (j * (t * y4));
	} else if (a <= 3.5e+216) {
		tmp = j * (y5 * (y0 * 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 * (y * (x * a))
    if (a <= (-2.6d+167)) then
        tmp = t_1
    else if (a <= (-1.8d+35)) then
        tmp = b * (y4 * (t * j))
    else if (a <= (-1.4d-75)) then
        tmp = c * (y * (y3 * y4))
    else if (a <= (-1.2d-132)) then
        tmp = c * (x * (y0 * y2))
    else if (a <= 1.55d-294) then
        tmp = y1 * (k * (y2 * y4))
    else if (a <= 5.5d+32) then
        tmp = b * (j * (t * y4))
    else if (a <= 3.5d+216) then
        tmp = j * (y5 * (y0 * 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 * (y * (x * a));
	double tmp;
	if (a <= -2.6e+167) {
		tmp = t_1;
	} else if (a <= -1.8e+35) {
		tmp = b * (y4 * (t * j));
	} else if (a <= -1.4e-75) {
		tmp = c * (y * (y3 * y4));
	} else if (a <= -1.2e-132) {
		tmp = c * (x * (y0 * y2));
	} else if (a <= 1.55e-294) {
		tmp = y1 * (k * (y2 * y4));
	} else if (a <= 5.5e+32) {
		tmp = b * (j * (t * y4));
	} else if (a <= 3.5e+216) {
		tmp = j * (y5 * (y0 * 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 * (y * (x * a))
	tmp = 0
	if a <= -2.6e+167:
		tmp = t_1
	elif a <= -1.8e+35:
		tmp = b * (y4 * (t * j))
	elif a <= -1.4e-75:
		tmp = c * (y * (y3 * y4))
	elif a <= -1.2e-132:
		tmp = c * (x * (y0 * y2))
	elif a <= 1.55e-294:
		tmp = y1 * (k * (y2 * y4))
	elif a <= 5.5e+32:
		tmp = b * (j * (t * y4))
	elif a <= 3.5e+216:
		tmp = j * (y5 * (y0 * 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(y * Float64(x * a)))
	tmp = 0.0
	if (a <= -2.6e+167)
		tmp = t_1;
	elseif (a <= -1.8e+35)
		tmp = Float64(b * Float64(y4 * Float64(t * j)));
	elseif (a <= -1.4e-75)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	elseif (a <= -1.2e-132)
		tmp = Float64(c * Float64(x * Float64(y0 * y2)));
	elseif (a <= 1.55e-294)
		tmp = Float64(y1 * Float64(k * Float64(y2 * y4)));
	elseif (a <= 5.5e+32)
		tmp = Float64(b * Float64(j * Float64(t * y4)));
	elseif (a <= 3.5e+216)
		tmp = Float64(j * Float64(y5 * Float64(y0 * 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 * (y * (x * a));
	tmp = 0.0;
	if (a <= -2.6e+167)
		tmp = t_1;
	elseif (a <= -1.8e+35)
		tmp = b * (y4 * (t * j));
	elseif (a <= -1.4e-75)
		tmp = c * (y * (y3 * y4));
	elseif (a <= -1.2e-132)
		tmp = c * (x * (y0 * y2));
	elseif (a <= 1.55e-294)
		tmp = y1 * (k * (y2 * y4));
	elseif (a <= 5.5e+32)
		tmp = b * (j * (t * y4));
	elseif (a <= 3.5e+216)
		tmp = j * (y5 * (y0 * 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[(y * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.6e+167], t$95$1, If[LessEqual[a, -1.8e+35], N[(b * N[(y4 * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.4e-75], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.2e-132], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.55e-294], N[(y1 * N[(k * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.5e+32], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.5e+216], N[(j * N[(y5 * N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}

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

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

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

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

\mathbf{elif}\;a \leq 1.55 \cdot 10^{-294}:\\
\;\;\;\;y1 \cdot \left(k \cdot \left(y2 \cdot y4\right)\right)\\

\mathbf{elif}\;a \leq 5.5 \cdot 10^{+32}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\

\mathbf{elif}\;a \leq 3.5 \cdot 10^{+216}:\\
\;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if a < -2.6000000000000002e167 or 3.49999999999999992e216 < a

    1. Initial program 21.7%

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

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

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

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

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

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

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

    if -2.6000000000000002e167 < a < -1.8e35

    1. Initial program 25.0%

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in j around inf 63.6%

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

    if -1.8e35 < a < -1.39999999999999999e-75

    1. Initial program 40.7%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified53.1%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 49.3%

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

    if -1.39999999999999999e-75 < a < -1.20000000000000008e-132

    1. Initial program 38.3%

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

      \[\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 x around inf 39.1%

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

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

    if -1.20000000000000008e-132 < a < 1.55000000000000002e-294

    1. Initial program 34.7%

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

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

      \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    5. Step-by-step derivation
      1. neg-mul-146.5%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) \]
      2. distribute-lft-neg-in46.5%

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

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

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

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

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

    if 1.55000000000000002e-294 < a < 5.49999999999999984e32

    1. Initial program 31.8%

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

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

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

      \[\leadsto \color{blue}{b \cdot \left(j \cdot \left(t \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative28.9%

        \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(y4 \cdot t\right)}\right) \]
    7. Simplified28.9%

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

    if 5.49999999999999984e32 < a < 3.49999999999999992e216

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

      \[\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 y5 around inf 37.7%

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

        \[\leadsto \color{blue}{\left(-1 \cdot y0\right) \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)} \]
      2. neg-mul-137.7%

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

      \[\leadsto \color{blue}{\left(-y0\right) \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)} \]
    7. Taylor expanded in k around 0 33.5%

      \[\leadsto \color{blue}{j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)} \]
    8. Step-by-step derivation
      1. associate-*r*33.5%

        \[\leadsto j \cdot \color{blue}{\left(\left(y0 \cdot y3\right) \cdot y5\right)} \]
    9. Simplified33.5%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.6 \cdot 10^{+167}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\ \mathbf{elif}\;a \leq -1.8 \cdot 10^{+35}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j\right)\right)\\ \mathbf{elif}\;a \leq -1.4 \cdot 10^{-75}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq -1.2 \cdot 10^{-132}:\\ \;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\ \mathbf{elif}\;a \leq 1.55 \cdot 10^{-294}:\\ \;\;\;\;y1 \cdot \left(k \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 5.5 \cdot 10^{+32}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 3.5 \cdot 10^{+216}:\\ \;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 20.8% accurate, 2.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\ \mathbf{if}\;a \leq -1.05 \cdot 10^{+166}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -1.3 \cdot 10^{+33}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j\right)\right)\\ \mathbf{elif}\;a \leq -6.5 \cdot 10^{-79}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq -2.9 \cdot 10^{-134}:\\ \;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\ \mathbf{elif}\;a \leq 9.8 \cdot 10^{-294}:\\ \;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 4.5 \cdot 10^{+32}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 1.35 \cdot 10^{+214}:\\ \;\;\;\;j \cdot \left(y5 \cdot \left(y0 \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 (* y (* x a)))))
   (if (<= a -1.05e+166)
     t_1
     (if (<= a -1.3e+33)
       (* b (* y4 (* t j)))
       (if (<= a -6.5e-79)
         (* c (* y (* y3 y4)))
         (if (<= a -2.9e-134)
           (* c (* x (* y0 y2)))
           (if (<= a 9.8e-294)
             (* k (* y1 (* y2 y4)))
             (if (<= a 4.5e+32)
               (* b (* j (* t y4)))
               (if (<= a 1.35e+214) (* j (* y5 (* y0 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 * (y * (x * a));
	double tmp;
	if (a <= -1.05e+166) {
		tmp = t_1;
	} else if (a <= -1.3e+33) {
		tmp = b * (y4 * (t * j));
	} else if (a <= -6.5e-79) {
		tmp = c * (y * (y3 * y4));
	} else if (a <= -2.9e-134) {
		tmp = c * (x * (y0 * y2));
	} else if (a <= 9.8e-294) {
		tmp = k * (y1 * (y2 * y4));
	} else if (a <= 4.5e+32) {
		tmp = b * (j * (t * y4));
	} else if (a <= 1.35e+214) {
		tmp = j * (y5 * (y0 * 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 * (y * (x * a))
    if (a <= (-1.05d+166)) then
        tmp = t_1
    else if (a <= (-1.3d+33)) then
        tmp = b * (y4 * (t * j))
    else if (a <= (-6.5d-79)) then
        tmp = c * (y * (y3 * y4))
    else if (a <= (-2.9d-134)) then
        tmp = c * (x * (y0 * y2))
    else if (a <= 9.8d-294) then
        tmp = k * (y1 * (y2 * y4))
    else if (a <= 4.5d+32) then
        tmp = b * (j * (t * y4))
    else if (a <= 1.35d+214) then
        tmp = j * (y5 * (y0 * 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 * (y * (x * a));
	double tmp;
	if (a <= -1.05e+166) {
		tmp = t_1;
	} else if (a <= -1.3e+33) {
		tmp = b * (y4 * (t * j));
	} else if (a <= -6.5e-79) {
		tmp = c * (y * (y3 * y4));
	} else if (a <= -2.9e-134) {
		tmp = c * (x * (y0 * y2));
	} else if (a <= 9.8e-294) {
		tmp = k * (y1 * (y2 * y4));
	} else if (a <= 4.5e+32) {
		tmp = b * (j * (t * y4));
	} else if (a <= 1.35e+214) {
		tmp = j * (y5 * (y0 * 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 * (y * (x * a))
	tmp = 0
	if a <= -1.05e+166:
		tmp = t_1
	elif a <= -1.3e+33:
		tmp = b * (y4 * (t * j))
	elif a <= -6.5e-79:
		tmp = c * (y * (y3 * y4))
	elif a <= -2.9e-134:
		tmp = c * (x * (y0 * y2))
	elif a <= 9.8e-294:
		tmp = k * (y1 * (y2 * y4))
	elif a <= 4.5e+32:
		tmp = b * (j * (t * y4))
	elif a <= 1.35e+214:
		tmp = j * (y5 * (y0 * 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(y * Float64(x * a)))
	tmp = 0.0
	if (a <= -1.05e+166)
		tmp = t_1;
	elseif (a <= -1.3e+33)
		tmp = Float64(b * Float64(y4 * Float64(t * j)));
	elseif (a <= -6.5e-79)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	elseif (a <= -2.9e-134)
		tmp = Float64(c * Float64(x * Float64(y0 * y2)));
	elseif (a <= 9.8e-294)
		tmp = Float64(k * Float64(y1 * Float64(y2 * y4)));
	elseif (a <= 4.5e+32)
		tmp = Float64(b * Float64(j * Float64(t * y4)));
	elseif (a <= 1.35e+214)
		tmp = Float64(j * Float64(y5 * Float64(y0 * 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 * (y * (x * a));
	tmp = 0.0;
	if (a <= -1.05e+166)
		tmp = t_1;
	elseif (a <= -1.3e+33)
		tmp = b * (y4 * (t * j));
	elseif (a <= -6.5e-79)
		tmp = c * (y * (y3 * y4));
	elseif (a <= -2.9e-134)
		tmp = c * (x * (y0 * y2));
	elseif (a <= 9.8e-294)
		tmp = k * (y1 * (y2 * y4));
	elseif (a <= 4.5e+32)
		tmp = b * (j * (t * y4));
	elseif (a <= 1.35e+214)
		tmp = j * (y5 * (y0 * 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[(y * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.05e+166], t$95$1, If[LessEqual[a, -1.3e+33], N[(b * N[(y4 * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.5e-79], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.9e-134], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.8e-294], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.5e+32], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.35e+214], N[(j * N[(y5 * N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}

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

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

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

\mathbf{elif}\;a \leq -2.9 \cdot 10^{-134}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\

\mathbf{elif}\;a \leq 9.8 \cdot 10^{-294}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\

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

\mathbf{elif}\;a \leq 1.35 \cdot 10^{+214}:\\
\;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if a < -1.05e166 or 1.35000000000000005e214 < a

    1. Initial program 21.7%

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

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

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

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

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

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

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

    if -1.05e166 < a < -1.2999999999999999e33

    1. Initial program 25.0%

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in j around inf 63.6%

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

    if -1.2999999999999999e33 < a < -6.5000000000000003e-79

    1. Initial program 40.7%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified53.1%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 49.3%

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

    if -6.5000000000000003e-79 < a < -2.89999999999999993e-134

    1. Initial program 38.3%

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

      \[\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 x around inf 39.1%

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

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

    if -2.89999999999999993e-134 < a < 9.7999999999999995e-294

    1. Initial program 34.7%

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

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

      \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    5. Step-by-step derivation
      1. neg-mul-146.5%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) \]
      2. distribute-lft-neg-in46.5%

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

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

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

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

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

    if 9.7999999999999995e-294 < a < 4.5000000000000003e32

    1. Initial program 31.8%

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

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

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

      \[\leadsto \color{blue}{b \cdot \left(j \cdot \left(t \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative28.9%

        \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(y4 \cdot t\right)}\right) \]
    7. Simplified28.9%

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

    if 4.5000000000000003e32 < a < 1.35000000000000005e214

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

      \[\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 y5 around inf 37.7%

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

        \[\leadsto \color{blue}{\left(-1 \cdot y0\right) \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)} \]
      2. neg-mul-137.7%

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

      \[\leadsto \color{blue}{\left(-y0\right) \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)} \]
    7. Taylor expanded in k around 0 33.5%

      \[\leadsto \color{blue}{j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)} \]
    8. Step-by-step derivation
      1. associate-*r*33.5%

        \[\leadsto j \cdot \color{blue}{\left(\left(y0 \cdot y3\right) \cdot y5\right)} \]
    9. Simplified33.5%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.05 \cdot 10^{+166}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\ \mathbf{elif}\;a \leq -1.3 \cdot 10^{+33}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j\right)\right)\\ \mathbf{elif}\;a \leq -6.5 \cdot 10^{-79}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq -2.9 \cdot 10^{-134}:\\ \;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\ \mathbf{elif}\;a \leq 9.8 \cdot 10^{-294}:\\ \;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 4.5 \cdot 10^{+32}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 1.35 \cdot 10^{+214}:\\ \;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 39.4% accurate, 2.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.75 \cdot 10^{+164}:\\
\;\;\;\;b \cdot \left(\left(y4 \cdot \left(t \cdot j - y \cdot k\right) + a \cdot \left(x \cdot y - z \cdot t\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\

\mathbf{elif}\;b \leq -2.2 \cdot 10^{+94}:\\
\;\;\;\;z \cdot \left(\frac{a \cdot \left(y \cdot \left(x \cdot b\right)\right)}{z} - a \cdot \left(t \cdot b\right)\right)\\

\mathbf{elif}\;b \leq 1.02 \cdot 10^{-35}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(\left(k \cdot y2 + \frac{i \cdot \left(x \cdot j - z \cdot k\right)}{y4}\right) - j \cdot y3\right)\right)\\

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


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

    1. Initial program 18.3%

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

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

    if -1.7499999999999999e164 < b < -2.20000000000000012e94

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

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

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

      \[\leadsto \color{blue}{z \cdot \left(-1 \cdot \left(a \cdot \left(b \cdot t\right)\right) + \frac{a \cdot \left(b \cdot \left(x \cdot y\right)\right)}{z}\right)} \]
    6. Step-by-step derivation
      1. +-commutative73.9%

        \[\leadsto z \cdot \color{blue}{\left(\frac{a \cdot \left(b \cdot \left(x \cdot y\right)\right)}{z} + -1 \cdot \left(a \cdot \left(b \cdot t\right)\right)\right)} \]
      2. mul-1-neg73.9%

        \[\leadsto z \cdot \left(\frac{a \cdot \left(b \cdot \left(x \cdot y\right)\right)}{z} + \color{blue}{\left(-a \cdot \left(b \cdot t\right)\right)}\right) \]
      3. unsub-neg73.9%

        \[\leadsto z \cdot \color{blue}{\left(\frac{a \cdot \left(b \cdot \left(x \cdot y\right)\right)}{z} - a \cdot \left(b \cdot t\right)\right)} \]
      4. associate-*r*73.9%

        \[\leadsto z \cdot \left(\frac{a \cdot \color{blue}{\left(\left(b \cdot x\right) \cdot y\right)}}{z} - a \cdot \left(b \cdot t\right)\right) \]
      5. *-commutative73.9%

        \[\leadsto z \cdot \left(\frac{a \cdot \left(\color{blue}{\left(x \cdot b\right)} \cdot y\right)}{z} - a \cdot \left(b \cdot t\right)\right) \]
    7. Simplified73.9%

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

    if -2.20000000000000012e94 < b < 1.01999999999999995e-35

    1. Initial program 35.9%

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

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

      \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    5. Step-by-step derivation
      1. neg-mul-144.1%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) \]
      2. distribute-lft-neg-in44.1%

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

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

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

    if 1.01999999999999995e-35 < b

    1. Initial program 22.1%

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in k around inf 45.9%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.75 \cdot 10^{+164}:\\ \;\;\;\;b \cdot \left(\left(y4 \cdot \left(t \cdot j - y \cdot k\right) + a \cdot \left(x \cdot y - z \cdot t\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\ \mathbf{elif}\;b \leq -2.2 \cdot 10^{+94}:\\ \;\;\;\;z \cdot \left(\frac{a \cdot \left(y \cdot \left(x \cdot b\right)\right)}{z} - a \cdot \left(t \cdot b\right)\right)\\ \mathbf{elif}\;b \leq 1.02 \cdot 10^{-35}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(\left(k \cdot y2 + \frac{i \cdot \left(x \cdot j - z \cdot k\right)}{y4}\right) - j \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(k \cdot \left(\frac{t \cdot j}{k} - y\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 36.9% accurate, 2.5× speedup?

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

\\
\begin{array}{l}
t_1 := y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{if}\;y2 \leq -6.2 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y2 \leq -1.45 \cdot 10^{+35}:\\
\;\;\;\;x \cdot \left(y0 \cdot \left(c \cdot y2 - b \cdot j\right)\right)\\

\mathbf{elif}\;y2 \leq 5.1 \cdot 10^{+42}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(\left(k \cdot y2 + \frac{i \cdot \left(x \cdot j - z \cdot k\right)}{y4}\right) - j \cdot y3\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y2 < -6.2000000000000001e63 or 6.2000000000000002e209 < y2

    1. Initial program 16.3%

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(y1 \cdot \left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg55.4%

        \[\leadsto \color{blue}{-y1 \cdot \left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right)} \]
      2. *-commutative55.4%

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

        \[\leadsto \color{blue}{\left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right) \cdot \left(-y1\right)} \]
      4. +-commutative55.4%

        \[\leadsto \left(y2 \cdot \color{blue}{\left(a \cdot x + -1 \cdot \left(k \cdot y4\right)\right)}\right) \cdot \left(-y1\right) \]
      5. mul-1-neg55.4%

        \[\leadsto \left(y2 \cdot \left(a \cdot x + \color{blue}{\left(-k \cdot y4\right)}\right)\right) \cdot \left(-y1\right) \]
      6. unsub-neg55.4%

        \[\leadsto \left(y2 \cdot \color{blue}{\left(a \cdot x - k \cdot y4\right)}\right) \cdot \left(-y1\right) \]
      7. *-commutative55.4%

        \[\leadsto \left(y2 \cdot \left(\color{blue}{x \cdot a} - k \cdot y4\right)\right) \cdot \left(-y1\right) \]
    6. Simplified55.4%

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

    if -6.2000000000000001e63 < y2 < -1.44999999999999997e35

    1. Initial program 27.3%

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

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

    if -1.44999999999999997e35 < y2 < 5.0999999999999999e42

    1. Initial program 35.7%

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

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

      \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    5. Step-by-step derivation
      1. neg-mul-143.9%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) \]
      2. distribute-lft-neg-in43.9%

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

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

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

    if 5.0999999999999999e42 < y2 < 6.2000000000000002e209

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

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

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

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

Alternative 11: 21.1% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -3.3 \cdot 10^{+97}:\\ \;\;\;\;b \cdot \left(z \cdot \left(t \cdot \left(-a\right)\right)\right)\\ \mathbf{elif}\;a \leq -1.5 \cdot 10^{-77}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq -8.2 \cdot 10^{-135}:\\ \;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\ \mathbf{elif}\;a \leq 2.4 \cdot 10^{-294}:\\ \;\;\;\;y1 \cdot \left(k \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 1.35 \cdot 10^{+32}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 2.1 \cdot 10^{+214}:\\ \;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \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 (<= a -3.3e+97)
   (* b (* z (* t (- a))))
   (if (<= a -1.5e-77)
     (* c (* y (* y3 y4)))
     (if (<= a -8.2e-135)
       (* c (* x (* y0 y2)))
       (if (<= a 2.4e-294)
         (* y1 (* k (* y2 y4)))
         (if (<= a 1.35e+32)
           (* b (* j (* t y4)))
           (if (<= a 2.1e+214)
             (* j (* y5 (* y0 y3)))
             (* b (* y (* x 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 (a <= -3.3e+97) {
		tmp = b * (z * (t * -a));
	} else if (a <= -1.5e-77) {
		tmp = c * (y * (y3 * y4));
	} else if (a <= -8.2e-135) {
		tmp = c * (x * (y0 * y2));
	} else if (a <= 2.4e-294) {
		tmp = y1 * (k * (y2 * y4));
	} else if (a <= 1.35e+32) {
		tmp = b * (j * (t * y4));
	} else if (a <= 2.1e+214) {
		tmp = j * (y5 * (y0 * y3));
	} else {
		tmp = b * (y * (x * 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 (a <= (-3.3d+97)) then
        tmp = b * (z * (t * -a))
    else if (a <= (-1.5d-77)) then
        tmp = c * (y * (y3 * y4))
    else if (a <= (-8.2d-135)) then
        tmp = c * (x * (y0 * y2))
    else if (a <= 2.4d-294) then
        tmp = y1 * (k * (y2 * y4))
    else if (a <= 1.35d+32) then
        tmp = b * (j * (t * y4))
    else if (a <= 2.1d+214) then
        tmp = j * (y5 * (y0 * y3))
    else
        tmp = b * (y * (x * 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 (a <= -3.3e+97) {
		tmp = b * (z * (t * -a));
	} else if (a <= -1.5e-77) {
		tmp = c * (y * (y3 * y4));
	} else if (a <= -8.2e-135) {
		tmp = c * (x * (y0 * y2));
	} else if (a <= 2.4e-294) {
		tmp = y1 * (k * (y2 * y4));
	} else if (a <= 1.35e+32) {
		tmp = b * (j * (t * y4));
	} else if (a <= 2.1e+214) {
		tmp = j * (y5 * (y0 * y3));
	} else {
		tmp = b * (y * (x * a));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if a <= -3.3e+97:
		tmp = b * (z * (t * -a))
	elif a <= -1.5e-77:
		tmp = c * (y * (y3 * y4))
	elif a <= -8.2e-135:
		tmp = c * (x * (y0 * y2))
	elif a <= 2.4e-294:
		tmp = y1 * (k * (y2 * y4))
	elif a <= 1.35e+32:
		tmp = b * (j * (t * y4))
	elif a <= 2.1e+214:
		tmp = j * (y5 * (y0 * y3))
	else:
		tmp = b * (y * (x * 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 (a <= -3.3e+97)
		tmp = Float64(b * Float64(z * Float64(t * Float64(-a))));
	elseif (a <= -1.5e-77)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	elseif (a <= -8.2e-135)
		tmp = Float64(c * Float64(x * Float64(y0 * y2)));
	elseif (a <= 2.4e-294)
		tmp = Float64(y1 * Float64(k * Float64(y2 * y4)));
	elseif (a <= 1.35e+32)
		tmp = Float64(b * Float64(j * Float64(t * y4)));
	elseif (a <= 2.1e+214)
		tmp = Float64(j * Float64(y5 * Float64(y0 * y3)));
	else
		tmp = Float64(b * Float64(y * Float64(x * 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 (a <= -3.3e+97)
		tmp = b * (z * (t * -a));
	elseif (a <= -1.5e-77)
		tmp = c * (y * (y3 * y4));
	elseif (a <= -8.2e-135)
		tmp = c * (x * (y0 * y2));
	elseif (a <= 2.4e-294)
		tmp = y1 * (k * (y2 * y4));
	elseif (a <= 1.35e+32)
		tmp = b * (j * (t * y4));
	elseif (a <= 2.1e+214)
		tmp = j * (y5 * (y0 * y3));
	else
		tmp = b * (y * (x * a));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -3.3e+97], N[(b * N[(z * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.5e-77], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8.2e-135], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.4e-294], N[(y1 * N[(k * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.35e+32], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.1e+214], N[(j * N[(y5 * N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(y * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;a \leq -8.2 \cdot 10^{-135}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\

\mathbf{elif}\;a \leq 2.4 \cdot 10^{-294}:\\
\;\;\;\;y1 \cdot \left(k \cdot \left(y2 \cdot y4\right)\right)\\

\mathbf{elif}\;a \leq 1.35 \cdot 10^{+32}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\

\mathbf{elif}\;a \leq 2.1 \cdot 10^{+214}:\\
\;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if a < -3.3000000000000001e97

    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. Add Preprocessing
    3. Taylor expanded in b around inf 48.6%

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

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

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

        \[\leadsto b \cdot \color{blue}{\left(-a \cdot \left(t \cdot z\right)\right)} \]
      2. associate-*r*49.7%

        \[\leadsto b \cdot \left(-\color{blue}{\left(a \cdot t\right) \cdot z}\right) \]
      3. distribute-lft-neg-in49.7%

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

        \[\leadsto b \cdot \left(\left(-\color{blue}{t \cdot a}\right) \cdot z\right) \]
      5. distribute-rgt-neg-in49.7%

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

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

    if -3.3000000000000001e97 < a < -1.50000000000000008e-77

    1. Initial program 38.2%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified45.4%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 45.2%

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

    if -1.50000000000000008e-77 < a < -8.2000000000000002e-135

    1. Initial program 38.3%

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

      \[\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 x around inf 39.1%

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

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

    if -8.2000000000000002e-135 < a < 2.39999999999999997e-294

    1. Initial program 34.7%

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

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

      \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    5. Step-by-step derivation
      1. neg-mul-146.5%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) \]
      2. distribute-lft-neg-in46.5%

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

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

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

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

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

    if 2.39999999999999997e-294 < a < 1.35000000000000006e32

    1. Initial program 31.8%

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

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

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

      \[\leadsto \color{blue}{b \cdot \left(j \cdot \left(t \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative28.9%

        \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(y4 \cdot t\right)}\right) \]
    7. Simplified28.9%

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

    if 1.35000000000000006e32 < a < 2.1000000000000001e214

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

      \[\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 y5 around inf 37.7%

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

        \[\leadsto \color{blue}{\left(-1 \cdot y0\right) \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)} \]
      2. neg-mul-137.7%

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

      \[\leadsto \color{blue}{\left(-y0\right) \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)} \]
    7. Taylor expanded in k around 0 33.5%

      \[\leadsto \color{blue}{j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)} \]
    8. Step-by-step derivation
      1. associate-*r*33.5%

        \[\leadsto j \cdot \color{blue}{\left(\left(y0 \cdot y3\right) \cdot y5\right)} \]
    9. Simplified33.5%

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

    if 2.1000000000000001e214 < a

    1. Initial program 22.2%

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -3.3 \cdot 10^{+97}:\\ \;\;\;\;b \cdot \left(z \cdot \left(t \cdot \left(-a\right)\right)\right)\\ \mathbf{elif}\;a \leq -1.5 \cdot 10^{-77}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq -8.2 \cdot 10^{-135}:\\ \;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\ \mathbf{elif}\;a \leq 2.4 \cdot 10^{-294}:\\ \;\;\;\;y1 \cdot \left(k \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 1.35 \cdot 10^{+32}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 2.1 \cdot 10^{+214}:\\ \;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 20.7% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -8.4 \cdot 10^{+97}:\\ \;\;\;\;b \cdot \left(a \cdot \left(t \cdot \left(-z\right)\right)\right)\\ \mathbf{elif}\;a \leq -4.4 \cdot 10^{-80}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq -1.95 \cdot 10^{-134}:\\ \;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\ \mathbf{elif}\;a \leq 2.6 \cdot 10^{-294}:\\ \;\;\;\;y1 \cdot \left(k \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 4.2 \cdot 10^{+32}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 1.35 \cdot 10^{+214}:\\ \;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \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 (<= a -8.4e+97)
   (* b (* a (* t (- z))))
   (if (<= a -4.4e-80)
     (* c (* y (* y3 y4)))
     (if (<= a -1.95e-134)
       (* c (* x (* y0 y2)))
       (if (<= a 2.6e-294)
         (* y1 (* k (* y2 y4)))
         (if (<= a 4.2e+32)
           (* b (* j (* t y4)))
           (if (<= a 1.35e+214)
             (* j (* y5 (* y0 y3)))
             (* b (* y (* x 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 (a <= -8.4e+97) {
		tmp = b * (a * (t * -z));
	} else if (a <= -4.4e-80) {
		tmp = c * (y * (y3 * y4));
	} else if (a <= -1.95e-134) {
		tmp = c * (x * (y0 * y2));
	} else if (a <= 2.6e-294) {
		tmp = y1 * (k * (y2 * y4));
	} else if (a <= 4.2e+32) {
		tmp = b * (j * (t * y4));
	} else if (a <= 1.35e+214) {
		tmp = j * (y5 * (y0 * y3));
	} else {
		tmp = b * (y * (x * 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 (a <= (-8.4d+97)) then
        tmp = b * (a * (t * -z))
    else if (a <= (-4.4d-80)) then
        tmp = c * (y * (y3 * y4))
    else if (a <= (-1.95d-134)) then
        tmp = c * (x * (y0 * y2))
    else if (a <= 2.6d-294) then
        tmp = y1 * (k * (y2 * y4))
    else if (a <= 4.2d+32) then
        tmp = b * (j * (t * y4))
    else if (a <= 1.35d+214) then
        tmp = j * (y5 * (y0 * y3))
    else
        tmp = b * (y * (x * 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 (a <= -8.4e+97) {
		tmp = b * (a * (t * -z));
	} else if (a <= -4.4e-80) {
		tmp = c * (y * (y3 * y4));
	} else if (a <= -1.95e-134) {
		tmp = c * (x * (y0 * y2));
	} else if (a <= 2.6e-294) {
		tmp = y1 * (k * (y2 * y4));
	} else if (a <= 4.2e+32) {
		tmp = b * (j * (t * y4));
	} else if (a <= 1.35e+214) {
		tmp = j * (y5 * (y0 * y3));
	} else {
		tmp = b * (y * (x * a));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if a <= -8.4e+97:
		tmp = b * (a * (t * -z))
	elif a <= -4.4e-80:
		tmp = c * (y * (y3 * y4))
	elif a <= -1.95e-134:
		tmp = c * (x * (y0 * y2))
	elif a <= 2.6e-294:
		tmp = y1 * (k * (y2 * y4))
	elif a <= 4.2e+32:
		tmp = b * (j * (t * y4))
	elif a <= 1.35e+214:
		tmp = j * (y5 * (y0 * y3))
	else:
		tmp = b * (y * (x * 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 (a <= -8.4e+97)
		tmp = Float64(b * Float64(a * Float64(t * Float64(-z))));
	elseif (a <= -4.4e-80)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	elseif (a <= -1.95e-134)
		tmp = Float64(c * Float64(x * Float64(y0 * y2)));
	elseif (a <= 2.6e-294)
		tmp = Float64(y1 * Float64(k * Float64(y2 * y4)));
	elseif (a <= 4.2e+32)
		tmp = Float64(b * Float64(j * Float64(t * y4)));
	elseif (a <= 1.35e+214)
		tmp = Float64(j * Float64(y5 * Float64(y0 * y3)));
	else
		tmp = Float64(b * Float64(y * Float64(x * 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 (a <= -8.4e+97)
		tmp = b * (a * (t * -z));
	elseif (a <= -4.4e-80)
		tmp = c * (y * (y3 * y4));
	elseif (a <= -1.95e-134)
		tmp = c * (x * (y0 * y2));
	elseif (a <= 2.6e-294)
		tmp = y1 * (k * (y2 * y4));
	elseif (a <= 4.2e+32)
		tmp = b * (j * (t * y4));
	elseif (a <= 1.35e+214)
		tmp = j * (y5 * (y0 * y3));
	else
		tmp = b * (y * (x * a));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -8.4e+97], N[(b * N[(a * N[(t * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.4e-80], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.95e-134], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.6e-294], N[(y1 * N[(k * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.2e+32], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.35e+214], N[(j * N[(y5 * N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(y * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;a \leq -1.95 \cdot 10^{-134}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\

\mathbf{elif}\;a \leq 2.6 \cdot 10^{-294}:\\
\;\;\;\;y1 \cdot \left(k \cdot \left(y2 \cdot y4\right)\right)\\

\mathbf{elif}\;a \leq 4.2 \cdot 10^{+32}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\

\mathbf{elif}\;a \leq 1.35 \cdot 10^{+214}:\\
\;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if a < -8.40000000000000047e97

    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. Add Preprocessing
    3. Taylor expanded in b around inf 48.6%

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

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

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

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

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

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

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

    if -8.40000000000000047e97 < a < -4.4000000000000002e-80

    1. Initial program 38.2%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified45.4%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 45.2%

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

    if -4.4000000000000002e-80 < a < -1.95e-134

    1. Initial program 38.3%

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

      \[\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 x around inf 39.1%

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

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

    if -1.95e-134 < a < 2.5999999999999999e-294

    1. Initial program 34.7%

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

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

      \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    5. Step-by-step derivation
      1. neg-mul-146.5%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) \]
      2. distribute-lft-neg-in46.5%

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

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

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

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

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

    if 2.5999999999999999e-294 < a < 4.2000000000000001e32

    1. Initial program 31.8%

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

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

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

      \[\leadsto \color{blue}{b \cdot \left(j \cdot \left(t \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative28.9%

        \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(y4 \cdot t\right)}\right) \]
    7. Simplified28.9%

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

    if 4.2000000000000001e32 < a < 1.35000000000000005e214

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

      \[\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 y5 around inf 37.7%

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

        \[\leadsto \color{blue}{\left(-1 \cdot y0\right) \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)} \]
      2. neg-mul-137.7%

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

      \[\leadsto \color{blue}{\left(-y0\right) \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)} \]
    7. Taylor expanded in k around 0 33.5%

      \[\leadsto \color{blue}{j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)} \]
    8. Step-by-step derivation
      1. associate-*r*33.5%

        \[\leadsto j \cdot \color{blue}{\left(\left(y0 \cdot y3\right) \cdot y5\right)} \]
    9. Simplified33.5%

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

    if 1.35000000000000005e214 < a

    1. Initial program 22.2%

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -8.4 \cdot 10^{+97}:\\ \;\;\;\;b \cdot \left(a \cdot \left(t \cdot \left(-z\right)\right)\right)\\ \mathbf{elif}\;a \leq -4.4 \cdot 10^{-80}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq -1.95 \cdot 10^{-134}:\\ \;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\ \mathbf{elif}\;a \leq 2.6 \cdot 10^{-294}:\\ \;\;\;\;y1 \cdot \left(k \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 4.2 \cdot 10^{+32}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 1.35 \cdot 10^{+214}:\\ \;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 21.5% accurate, 2.6× speedup?

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

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

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

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

\mathbf{elif}\;a \leq -3.3 \cdot 10^{-228}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\

\mathbf{elif}\;a \leq 180000000000:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\

\mathbf{elif}\;a \leq 4 \cdot 10^{+215}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if a < -1.02e167 or 3.99999999999999963e215 < a

    1. Initial program 21.7%

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

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

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

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

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

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

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

    if -1.02e167 < a < -1.36e34

    1. Initial program 25.0%

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in j around inf 63.6%

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

    if -1.36e34 < a < -3.00000000000000007e-80

    1. Initial program 40.7%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified53.1%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 49.3%

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

    if -3.00000000000000007e-80 < a < -3.30000000000000006e-228

    1. Initial program 36.9%

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

      \[\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 x around inf 43.3%

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

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

    if -3.30000000000000006e-228 < a < 1.8e11

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in j around inf 25.5%

      \[\leadsto \color{blue}{b \cdot \left(j \cdot \left(t \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative25.5%

        \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(y4 \cdot t\right)}\right) \]
    7. Simplified25.5%

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

    if 1.8e11 < a < 3.99999999999999963e215

    1. Initial program 23.5%

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

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(z \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in c around 0 32.8%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.02 \cdot 10^{+167}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\ \mathbf{elif}\;a \leq -1.36 \cdot 10^{+34}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j\right)\right)\\ \mathbf{elif}\;a \leq -3 \cdot 10^{-80}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq -3.3 \cdot 10^{-228}:\\ \;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\ \mathbf{elif}\;a \leq 180000000000:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 4 \cdot 10^{+215}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 30.4% accurate, 2.6× speedup?

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

\\
\begin{array}{l}
t_1 := y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{if}\;y3 \leq -1.15 \cdot 10^{+215}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\

\mathbf{elif}\;y3 \leq -4.9 \cdot 10^{-8}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y3 \leq 4 \cdot 10^{-186}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

\mathbf{elif}\;y3 \leq 6.8 \cdot 10^{-88} \lor \neg \left(y3 \leq 2.1 \cdot 10^{+127}\right):\\
\;\;\;\;t\_1\\

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


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

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

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

    if -1.1500000000000001e215 < y3 < -4.9000000000000002e-8 or 3.9999999999999996e-186 < y3 < 6.79999999999999949e-88 or 2.09999999999999992e127 < y3

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

      \[\leadsto \color{blue}{y \cdot \left(\left(-1 \cdot \left(k \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(a \cdot b - c \cdot i\right)\right) - -1 \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in y3 around inf 53.3%

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

    if -4.9000000000000002e-8 < y3 < 3.9999999999999996e-186

    1. Initial program 38.8%

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

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

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

    if 6.79999999999999949e-88 < y3 < 2.09999999999999992e127

    1. Initial program 24.4%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -1.15 \cdot 10^{+215}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -4.9 \cdot 10^{-8}:\\ \;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{elif}\;y3 \leq 4 \cdot 10^{-186}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{elif}\;y3 \leq 6.8 \cdot 10^{-88} \lor \neg \left(y3 \leq 2.1 \cdot 10^{+127}\right):\\ \;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 33.6% accurate, 2.6× speedup?

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

\\
\begin{array}{l}
t_1 := y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\
\mathbf{if}\;y3 \leq -1.9 \cdot 10^{+213}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\

\mathbf{elif}\;y3 \leq -7 \cdot 10^{-24}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;y3 \leq 6.7 \cdot 10^{-31}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\

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

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


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

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

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

    if -1.8999999999999999e213 < y3 < -6.9999999999999993e-24 or 8.50000000000000041e196 < y3

    1. Initial program 20.2%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified60.8%

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

    if -6.9999999999999993e-24 < y3 < 2.40000000000000004e-216

    1. Initial program 39.1%

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

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

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

    if 2.40000000000000004e-216 < y3 < 6.70000000000000003e-31

    1. Initial program 37.7%

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(y1 \cdot \left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg48.4%

        \[\leadsto \color{blue}{-y1 \cdot \left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right)} \]
      2. *-commutative48.4%

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

        \[\leadsto \color{blue}{\left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right) \cdot \left(-y1\right)} \]
      4. +-commutative48.4%

        \[\leadsto \left(y2 \cdot \color{blue}{\left(a \cdot x + -1 \cdot \left(k \cdot y4\right)\right)}\right) \cdot \left(-y1\right) \]
      5. mul-1-neg48.4%

        \[\leadsto \left(y2 \cdot \left(a \cdot x + \color{blue}{\left(-k \cdot y4\right)}\right)\right) \cdot \left(-y1\right) \]
      6. unsub-neg48.4%

        \[\leadsto \left(y2 \cdot \color{blue}{\left(a \cdot x - k \cdot y4\right)}\right) \cdot \left(-y1\right) \]
      7. *-commutative48.4%

        \[\leadsto \left(y2 \cdot \left(\color{blue}{x \cdot a} - k \cdot y4\right)\right) \cdot \left(-y1\right) \]
    6. Simplified48.4%

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

    if 6.70000000000000003e-31 < y3 < 8.50000000000000041e196

    1. Initial program 30.5%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -1.9 \cdot 10^{+213}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -7 \cdot 10^{-24}:\\ \;\;\;\;y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\ \mathbf{elif}\;y3 \leq 2.4 \cdot 10^{-216}:\\ \;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + t \cdot \left(c \cdot i - a \cdot b\right)\right)\\ \mathbf{elif}\;y3 \leq 6.7 \cdot 10^{-31}:\\ \;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\ \mathbf{elif}\;y3 \leq 8.5 \cdot 10^{+196}:\\ \;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 31.9% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\ \mathbf{if}\;y3 \leq -2.7 \cdot 10^{+211}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -9.4 \cdot 10^{-26}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y3 \leq 1.2 \cdot 10^{-215}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(k \cdot \left(\frac{t \cdot j}{k} - y\right)\right)\right)\\ \mathbf{elif}\;y3 \leq 1.15 \cdot 10^{-30}:\\ \;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\ \mathbf{elif}\;y3 \leq 5.8 \cdot 10^{+196}:\\ \;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \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 (* y4 (* y3 (- (* y c) (* j y1))))))
   (if (<= y3 -2.7e+211)
     (* c (* y0 (- (* x y2) (* z y3))))
     (if (<= y3 -9.4e-26)
       t_1
       (if (<= y3 1.2e-215)
         (* b (* y4 (* k (- (/ (* t j) k) y))))
         (if (<= y3 1.15e-30)
           (* y1 (* y2 (- (* k y4) (* x a))))
           (if (<= y3 5.8e+196) (* k (* y (- (* i y5) (* b 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 = y4 * (y3 * ((y * c) - (j * y1)));
	double tmp;
	if (y3 <= -2.7e+211) {
		tmp = c * (y0 * ((x * y2) - (z * y3)));
	} else if (y3 <= -9.4e-26) {
		tmp = t_1;
	} else if (y3 <= 1.2e-215) {
		tmp = b * (y4 * (k * (((t * j) / k) - y)));
	} else if (y3 <= 1.15e-30) {
		tmp = y1 * (y2 * ((k * y4) - (x * a)));
	} else if (y3 <= 5.8e+196) {
		tmp = k * (y * ((i * y5) - (b * 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 = y4 * (y3 * ((y * c) - (j * y1)))
    if (y3 <= (-2.7d+211)) then
        tmp = c * (y0 * ((x * y2) - (z * y3)))
    else if (y3 <= (-9.4d-26)) then
        tmp = t_1
    else if (y3 <= 1.2d-215) then
        tmp = b * (y4 * (k * (((t * j) / k) - y)))
    else if (y3 <= 1.15d-30) then
        tmp = y1 * (y2 * ((k * y4) - (x * a)))
    else if (y3 <= 5.8d+196) then
        tmp = k * (y * ((i * y5) - (b * 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 = y4 * (y3 * ((y * c) - (j * y1)));
	double tmp;
	if (y3 <= -2.7e+211) {
		tmp = c * (y0 * ((x * y2) - (z * y3)));
	} else if (y3 <= -9.4e-26) {
		tmp = t_1;
	} else if (y3 <= 1.2e-215) {
		tmp = b * (y4 * (k * (((t * j) / k) - y)));
	} else if (y3 <= 1.15e-30) {
		tmp = y1 * (y2 * ((k * y4) - (x * a)));
	} else if (y3 <= 5.8e+196) {
		tmp = k * (y * ((i * y5) - (b * 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 = y4 * (y3 * ((y * c) - (j * y1)))
	tmp = 0
	if y3 <= -2.7e+211:
		tmp = c * (y0 * ((x * y2) - (z * y3)))
	elif y3 <= -9.4e-26:
		tmp = t_1
	elif y3 <= 1.2e-215:
		tmp = b * (y4 * (k * (((t * j) / k) - y)))
	elif y3 <= 1.15e-30:
		tmp = y1 * (y2 * ((k * y4) - (x * a)))
	elif y3 <= 5.8e+196:
		tmp = k * (y * ((i * y5) - (b * 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(y4 * Float64(y3 * Float64(Float64(y * c) - Float64(j * y1))))
	tmp = 0.0
	if (y3 <= -2.7e+211)
		tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3))));
	elseif (y3 <= -9.4e-26)
		tmp = t_1;
	elseif (y3 <= 1.2e-215)
		tmp = Float64(b * Float64(y4 * Float64(k * Float64(Float64(Float64(t * j) / k) - y))));
	elseif (y3 <= 1.15e-30)
		tmp = Float64(y1 * Float64(y2 * Float64(Float64(k * y4) - Float64(x * a))));
	elseif (y3 <= 5.8e+196)
		tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * 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 = y4 * (y3 * ((y * c) - (j * y1)));
	tmp = 0.0;
	if (y3 <= -2.7e+211)
		tmp = c * (y0 * ((x * y2) - (z * y3)));
	elseif (y3 <= -9.4e-26)
		tmp = t_1;
	elseif (y3 <= 1.2e-215)
		tmp = b * (y4 * (k * (((t * j) / k) - y)));
	elseif (y3 <= 1.15e-30)
		tmp = y1 * (y2 * ((k * y4) - (x * a)));
	elseif (y3 <= 5.8e+196)
		tmp = k * (y * ((i * y5) - (b * 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[(y4 * N[(y3 * N[(N[(y * c), $MachinePrecision] - N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -2.7e+211], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -9.4e-26], t$95$1, If[LessEqual[y3, 1.2e-215], N[(b * N[(y4 * N[(k * N[(N[(N[(t * j), $MachinePrecision] / k), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.15e-30], N[(y1 * N[(y2 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 5.8e+196], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\
\mathbf{if}\;y3 \leq -2.7 \cdot 10^{+211}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\

\mathbf{elif}\;y3 \leq -9.4 \cdot 10^{-26}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y3 \leq 1.2 \cdot 10^{-215}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(k \cdot \left(\frac{t \cdot j}{k} - y\right)\right)\right)\\

\mathbf{elif}\;y3 \leq 1.15 \cdot 10^{-30}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\

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

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


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

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

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

    if -2.6999999999999999e211 < y3 < -9.39999999999999979e-26 or 5.8e196 < y3

    1. Initial program 19.9%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified60.1%

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

    if -9.39999999999999979e-26 < y3 < 1.20000000000000005e-215

    1. Initial program 39.7%

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in k around inf 40.9%

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

    if 1.20000000000000005e-215 < y3 < 1.14999999999999992e-30

    1. Initial program 37.7%

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(y1 \cdot \left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg48.4%

        \[\leadsto \color{blue}{-y1 \cdot \left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right)} \]
      2. *-commutative48.4%

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

        \[\leadsto \color{blue}{\left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right) \cdot \left(-y1\right)} \]
      4. +-commutative48.4%

        \[\leadsto \left(y2 \cdot \color{blue}{\left(a \cdot x + -1 \cdot \left(k \cdot y4\right)\right)}\right) \cdot \left(-y1\right) \]
      5. mul-1-neg48.4%

        \[\leadsto \left(y2 \cdot \left(a \cdot x + \color{blue}{\left(-k \cdot y4\right)}\right)\right) \cdot \left(-y1\right) \]
      6. unsub-neg48.4%

        \[\leadsto \left(y2 \cdot \color{blue}{\left(a \cdot x - k \cdot y4\right)}\right) \cdot \left(-y1\right) \]
      7. *-commutative48.4%

        \[\leadsto \left(y2 \cdot \left(\color{blue}{x \cdot a} - k \cdot y4\right)\right) \cdot \left(-y1\right) \]
    6. Simplified48.4%

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

    if 1.14999999999999992e-30 < y3 < 5.8e196

    1. Initial program 30.5%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -2.7 \cdot 10^{+211}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -9.4 \cdot 10^{-26}:\\ \;\;\;\;y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\ \mathbf{elif}\;y3 \leq 1.2 \cdot 10^{-215}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(k \cdot \left(\frac{t \cdot j}{k} - y\right)\right)\right)\\ \mathbf{elif}\;y3 \leq 1.15 \cdot 10^{-30}:\\ \;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\ \mathbf{elif}\;y3 \leq 5.8 \cdot 10^{+196}:\\ \;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 31.2% accurate, 2.6× speedup?

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

\\
\begin{array}{l}
t_1 := y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\
\mathbf{if}\;y3 \leq -2.5 \cdot 10^{+214}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\

\mathbf{elif}\;y3 \leq -1.95 \cdot 10^{-25}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y3 \leq 2.05 \cdot 10^{-215}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

\mathbf{elif}\;y3 \leq 9.2 \cdot 10^{-31}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\

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

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


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

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

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

    if -2.49999999999999977e214 < y3 < -1.95e-25 or 5.49999999999999973e196 < y3

    1. Initial program 19.9%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified60.1%

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

    if -1.95e-25 < y3 < 2.04999999999999992e-215

    1. Initial program 39.7%

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

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

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

    if 2.04999999999999992e-215 < y3 < 9.1999999999999994e-31

    1. Initial program 37.7%

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(y1 \cdot \left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg48.4%

        \[\leadsto \color{blue}{-y1 \cdot \left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right)} \]
      2. *-commutative48.4%

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

        \[\leadsto \color{blue}{\left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right) \cdot \left(-y1\right)} \]
      4. +-commutative48.4%

        \[\leadsto \left(y2 \cdot \color{blue}{\left(a \cdot x + -1 \cdot \left(k \cdot y4\right)\right)}\right) \cdot \left(-y1\right) \]
      5. mul-1-neg48.4%

        \[\leadsto \left(y2 \cdot \left(a \cdot x + \color{blue}{\left(-k \cdot y4\right)}\right)\right) \cdot \left(-y1\right) \]
      6. unsub-neg48.4%

        \[\leadsto \left(y2 \cdot \color{blue}{\left(a \cdot x - k \cdot y4\right)}\right) \cdot \left(-y1\right) \]
      7. *-commutative48.4%

        \[\leadsto \left(y2 \cdot \left(\color{blue}{x \cdot a} - k \cdot y4\right)\right) \cdot \left(-y1\right) \]
    6. Simplified48.4%

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

    if 9.1999999999999994e-31 < y3 < 5.49999999999999973e196

    1. Initial program 30.5%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -2.5 \cdot 10^{+214}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -1.95 \cdot 10^{-25}:\\ \;\;\;\;y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\ \mathbf{elif}\;y3 \leq 2.05 \cdot 10^{-215}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{elif}\;y3 \leq 9.2 \cdot 10^{-31}:\\ \;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\ \mathbf{elif}\;y3 \leq 5.5 \cdot 10^{+196}:\\ \;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 18: 35.1% accurate, 2.6× speedup?

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

\\
\begin{array}{l}
t_1 := y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{if}\;y2 \leq -3.9 \cdot 10^{+71}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y2 \leq -2.4 \cdot 10^{+31}:\\
\;\;\;\;x \cdot \left(y0 \cdot \left(c \cdot y2 - b \cdot j\right)\right)\\

\mathbf{elif}\;y2 \leq 5.4 \cdot 10^{+39}:\\
\;\;\;\;y1 \cdot \left(i \cdot \left(x \cdot j - z \cdot k\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\

\mathbf{elif}\;y2 \leq 6.4 \cdot 10^{+209}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y2 < -3.9000000000000001e71 or 6.3999999999999999e209 < y2

    1. Initial program 16.3%

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(y1 \cdot \left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg55.4%

        \[\leadsto \color{blue}{-y1 \cdot \left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right)} \]
      2. *-commutative55.4%

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

        \[\leadsto \color{blue}{\left(y2 \cdot \left(-1 \cdot \left(k \cdot y4\right) + a \cdot x\right)\right) \cdot \left(-y1\right)} \]
      4. +-commutative55.4%

        \[\leadsto \left(y2 \cdot \color{blue}{\left(a \cdot x + -1 \cdot \left(k \cdot y4\right)\right)}\right) \cdot \left(-y1\right) \]
      5. mul-1-neg55.4%

        \[\leadsto \left(y2 \cdot \left(a \cdot x + \color{blue}{\left(-k \cdot y4\right)}\right)\right) \cdot \left(-y1\right) \]
      6. unsub-neg55.4%

        \[\leadsto \left(y2 \cdot \color{blue}{\left(a \cdot x - k \cdot y4\right)}\right) \cdot \left(-y1\right) \]
      7. *-commutative55.4%

        \[\leadsto \left(y2 \cdot \left(\color{blue}{x \cdot a} - k \cdot y4\right)\right) \cdot \left(-y1\right) \]
    6. Simplified55.4%

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

    if -3.9000000000000001e71 < y2 < -2.39999999999999982e31

    1. Initial program 27.3%

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

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

    if -2.39999999999999982e31 < y2 < 5.40000000000000007e39

    1. Initial program 35.7%

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

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

      \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    5. Step-by-step derivation
      1. neg-mul-143.9%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) \]
      2. distribute-lft-neg-in43.9%

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

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

    if 5.40000000000000007e39 < y2 < 6.3999999999999999e209

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -3.9 \cdot 10^{+71}:\\ \;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\ \mathbf{elif}\;y2 \leq -2.4 \cdot 10^{+31}:\\ \;\;\;\;x \cdot \left(y0 \cdot \left(c \cdot y2 - b \cdot j\right)\right)\\ \mathbf{elif}\;y2 \leq 5.4 \cdot 10^{+39}:\\ \;\;\;\;y1 \cdot \left(i \cdot \left(x \cdot j - z \cdot k\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y2 \leq 6.4 \cdot 10^{+209}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 22.6% accurate, 2.9× speedup?

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

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

\mathbf{elif}\;z \leq -5.55 \cdot 10^{-44}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\

\mathbf{elif}\;z \leq -9.5 \cdot 10^{-185}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\

\mathbf{elif}\;z \leq 1.7 \cdot 10^{-133}:\\
\;\;\;\;y4 \cdot \left(y3 \cdot \left(y1 \cdot \left(-j\right)\right)\right)\\

\mathbf{elif}\;z \leq 4 \cdot 10^{+129}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if z < -1.85000000000000004e34

    1. Initial program 24.0%

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

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

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

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

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

        \[\leadsto b \cdot \left(\color{blue}{\left(-a\right)} \cdot \left(t \cdot z\right)\right) \]
      3. *-commutative33.4%

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

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

    if -1.85000000000000004e34 < z < -5.55000000000000048e-44

    1. Initial program 33.3%

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in j around inf 47.8%

      \[\leadsto \color{blue}{b \cdot \left(j \cdot \left(t \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative47.8%

        \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(y4 \cdot t\right)}\right) \]
    7. Simplified47.8%

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

    if -5.55000000000000048e-44 < z < -9.50000000000000042e-185

    1. Initial program 38.3%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified31.1%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 33.5%

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

    if -9.50000000000000042e-185 < z < 1.70000000000000003e-133

    1. Initial program 34.4%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified34.3%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around inf 32.4%

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

    if 1.70000000000000003e-133 < z < 4e129

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

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

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

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

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

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 41.0%

      \[\leadsto y4 \cdot \color{blue}{\left(c \cdot \left(y \cdot y3\right)\right)} \]
    8. Step-by-step derivation
      1. *-commutative41.0%

        \[\leadsto y4 \cdot \left(c \cdot \color{blue}{\left(y3 \cdot y\right)}\right) \]
    9. Simplified41.0%

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

    if 4e129 < z

    1. Initial program 19.4%

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

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

      \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    5. Step-by-step derivation
      1. neg-mul-161.7%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) \]
      2. distribute-lft-neg-in61.7%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.85 \cdot 10^{+34}:\\ \;\;\;\;b \cdot \left(\left(z \cdot t\right) \cdot \left(-a\right)\right)\\ \mathbf{elif}\;z \leq -5.55 \cdot 10^{-44}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;z \leq -9.5 \cdot 10^{-185}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{-133}:\\ \;\;\;\;y4 \cdot \left(y3 \cdot \left(y1 \cdot \left(-j\right)\right)\right)\\ \mathbf{elif}\;z \leq 4 \cdot 10^{+129}:\\ \;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y1 \cdot \left(i \cdot \left(z \cdot \left(-k\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 22.5% accurate, 2.9× speedup?

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

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

\mathbf{elif}\;z \leq -5.55 \cdot 10^{-44}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\

\mathbf{elif}\;z \leq -3.4 \cdot 10^{-185}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\

\mathbf{elif}\;z \leq 1.9 \cdot 10^{-133}:\\
\;\;\;\;y4 \cdot \left(j \cdot \left(y1 \cdot \left(-y3\right)\right)\right)\\

\mathbf{elif}\;z \leq 3.5 \cdot 10^{+129}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if z < -3.8000000000000003e32

    1. Initial program 24.0%

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

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

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

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

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

        \[\leadsto b \cdot \left(\color{blue}{\left(-a\right)} \cdot \left(t \cdot z\right)\right) \]
      3. *-commutative33.4%

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

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

    if -3.8000000000000003e32 < z < -5.55000000000000048e-44

    1. Initial program 33.3%

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in j around inf 47.8%

      \[\leadsto \color{blue}{b \cdot \left(j \cdot \left(t \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative47.8%

        \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(y4 \cdot t\right)}\right) \]
    7. Simplified47.8%

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

    if -5.55000000000000048e-44 < z < -3.3999999999999998e-185

    1. Initial program 37.3%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified30.4%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 32.7%

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

    if -3.3999999999999998e-185 < z < 1.9000000000000002e-133

    1. Initial program 35.0%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified34.8%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around inf 32.9%

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

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

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

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

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

    if 1.9000000000000002e-133 < z < 3.4999999999999998e129

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

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

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

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

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

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 41.0%

      \[\leadsto y4 \cdot \color{blue}{\left(c \cdot \left(y \cdot y3\right)\right)} \]
    8. Step-by-step derivation
      1. *-commutative41.0%

        \[\leadsto y4 \cdot \left(c \cdot \color{blue}{\left(y3 \cdot y\right)}\right) \]
    9. Simplified41.0%

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

    if 3.4999999999999998e129 < z

    1. Initial program 19.4%

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

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

      \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    5. Step-by-step derivation
      1. neg-mul-161.7%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) \]
      2. distribute-lft-neg-in61.7%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.8 \cdot 10^{+32}:\\ \;\;\;\;b \cdot \left(\left(z \cdot t\right) \cdot \left(-a\right)\right)\\ \mathbf{elif}\;z \leq -5.55 \cdot 10^{-44}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;z \leq -3.4 \cdot 10^{-185}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;z \leq 1.9 \cdot 10^{-133}:\\ \;\;\;\;y4 \cdot \left(j \cdot \left(y1 \cdot \left(-y3\right)\right)\right)\\ \mathbf{elif}\;z \leq 3.5 \cdot 10^{+129}:\\ \;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y1 \cdot \left(i \cdot \left(z \cdot \left(-k\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 21: 22.4% accurate, 3.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y3 \leq -1.65 \cdot 10^{+218}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -2.35 \cdot 10^{-26}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 3.5 \cdot 10^{-215}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 4.2 \cdot 10^{-69}:\\ \;\;\;\;y1 \cdot \left(k \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 6.5 \cdot 10^{+127}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(c \cdot \left(y \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 (<= y3 -1.65e+218)
   (* a (* y1 (* z y3)))
   (if (<= y3 -2.35e-26)
     (* c (* y (* y3 y4)))
     (if (<= y3 3.5e-215)
       (* b (* j (* t y4)))
       (if (<= y3 4.2e-69)
         (* y1 (* k (* y2 y4)))
         (if (<= y3 6.5e+127) (* b (* y (* x a))) (* y4 (* c (* y 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 (y3 <= -1.65e+218) {
		tmp = a * (y1 * (z * y3));
	} else if (y3 <= -2.35e-26) {
		tmp = c * (y * (y3 * y4));
	} else if (y3 <= 3.5e-215) {
		tmp = b * (j * (t * y4));
	} else if (y3 <= 4.2e-69) {
		tmp = y1 * (k * (y2 * y4));
	} else if (y3 <= 6.5e+127) {
		tmp = b * (y * (x * a));
	} else {
		tmp = y4 * (c * (y * 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 (y3 <= (-1.65d+218)) then
        tmp = a * (y1 * (z * y3))
    else if (y3 <= (-2.35d-26)) then
        tmp = c * (y * (y3 * y4))
    else if (y3 <= 3.5d-215) then
        tmp = b * (j * (t * y4))
    else if (y3 <= 4.2d-69) then
        tmp = y1 * (k * (y2 * y4))
    else if (y3 <= 6.5d+127) then
        tmp = b * (y * (x * a))
    else
        tmp = y4 * (c * (y * 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 (y3 <= -1.65e+218) {
		tmp = a * (y1 * (z * y3));
	} else if (y3 <= -2.35e-26) {
		tmp = c * (y * (y3 * y4));
	} else if (y3 <= 3.5e-215) {
		tmp = b * (j * (t * y4));
	} else if (y3 <= 4.2e-69) {
		tmp = y1 * (k * (y2 * y4));
	} else if (y3 <= 6.5e+127) {
		tmp = b * (y * (x * a));
	} else {
		tmp = y4 * (c * (y * y3));
	}
	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.65e+218:
		tmp = a * (y1 * (z * y3))
	elif y3 <= -2.35e-26:
		tmp = c * (y * (y3 * y4))
	elif y3 <= 3.5e-215:
		tmp = b * (j * (t * y4))
	elif y3 <= 4.2e-69:
		tmp = y1 * (k * (y2 * y4))
	elif y3 <= 6.5e+127:
		tmp = b * (y * (x * a))
	else:
		tmp = y4 * (c * (y * 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 (y3 <= -1.65e+218)
		tmp = Float64(a * Float64(y1 * Float64(z * y3)));
	elseif (y3 <= -2.35e-26)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	elseif (y3 <= 3.5e-215)
		tmp = Float64(b * Float64(j * Float64(t * y4)));
	elseif (y3 <= 4.2e-69)
		tmp = Float64(y1 * Float64(k * Float64(y2 * y4)));
	elseif (y3 <= 6.5e+127)
		tmp = Float64(b * Float64(y * Float64(x * a)));
	else
		tmp = Float64(y4 * Float64(c * Float64(y * 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 (y3 <= -1.65e+218)
		tmp = a * (y1 * (z * y3));
	elseif (y3 <= -2.35e-26)
		tmp = c * (y * (y3 * y4));
	elseif (y3 <= 3.5e-215)
		tmp = b * (j * (t * y4));
	elseif (y3 <= 4.2e-69)
		tmp = y1 * (k * (y2 * y4));
	elseif (y3 <= 6.5e+127)
		tmp = b * (y * (x * a));
	else
		tmp = y4 * (c * (y * y3));
	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.65e+218], N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -2.35e-26], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.5e-215], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.2e-69], N[(y1 * N[(k * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 6.5e+127], N[(b * N[(y * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;y3 \leq 3.5 \cdot 10^{-215}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\

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

\mathbf{elif}\;y3 \leq 6.5 \cdot 10^{+127}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\

\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\


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

    1. Initial program 21.1%

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

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(z \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in c around 0 58.1%

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

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

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

    if -1.64999999999999999e218 < y3 < -2.34999999999999995e-26

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified52.9%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 43.9%

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

    if -2.34999999999999995e-26 < y3 < 3.5000000000000002e-215

    1. Initial program 39.7%

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in j around inf 28.1%

      \[\leadsto \color{blue}{b \cdot \left(j \cdot \left(t \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative28.1%

        \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(y4 \cdot t\right)}\right) \]
    7. Simplified28.1%

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

    if 3.5000000000000002e-215 < y3 < 4.1999999999999999e-69

    1. Initial program 40.3%

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

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

      \[\leadsto \color{blue}{y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    5. Step-by-step derivation
      1. neg-mul-144.0%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) \]
      2. distribute-lft-neg-in44.0%

        \[\leadsto y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - \color{blue}{\left(-i\right) \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    6. Simplified44.0%

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

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

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

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

    if 4.1999999999999999e-69 < y3 < 6.5e127

    1. Initial program 25.5%

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

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

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

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

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

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

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

    if 6.5e127 < y3

    1. Initial program 28.5%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified57.2%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 52.0%

      \[\leadsto y4 \cdot \color{blue}{\left(c \cdot \left(y \cdot y3\right)\right)} \]
    8. Step-by-step derivation
      1. *-commutative52.0%

        \[\leadsto y4 \cdot \left(c \cdot \color{blue}{\left(y3 \cdot y\right)}\right) \]
    9. Simplified52.0%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -1.65 \cdot 10^{+218}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -2.35 \cdot 10^{-26}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 3.5 \cdot 10^{-215}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 4.2 \cdot 10^{-69}:\\ \;\;\;\;y1 \cdot \left(k \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 6.5 \cdot 10^{+127}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 22: 21.5% accurate, 3.0× speedup?

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

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

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

\mathbf{elif}\;a \leq -2.6 \cdot 10^{-228}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\

\mathbf{elif}\;a \leq 140000000000:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\

\mathbf{elif}\;a \leq 1.6 \cdot 10^{+214}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if a < -9.79999999999999971e165 or 1.59999999999999997e214 < a

    1. Initial program 21.7%

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

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

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

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

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

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

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

    if -9.79999999999999971e165 < a < -3.34999999999999984e37

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in j around inf 61.1%

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

    if -3.34999999999999984e37 < a < -2.6e-228

    1. Initial program 37.9%

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

      \[\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 x around inf 32.9%

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

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

    if -2.6e-228 < a < 1.4e11

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in j around inf 25.5%

      \[\leadsto \color{blue}{b \cdot \left(j \cdot \left(t \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative25.5%

        \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(y4 \cdot t\right)}\right) \]
    7. Simplified25.5%

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

    if 1.4e11 < a < 1.59999999999999997e214

    1. Initial program 23.5%

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

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(z \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in c around 0 32.8%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -9.8 \cdot 10^{+165}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\ \mathbf{elif}\;a \leq -3.35 \cdot 10^{+37}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j\right)\right)\\ \mathbf{elif}\;a \leq -2.6 \cdot 10^{-228}:\\ \;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\ \mathbf{elif}\;a \leq 140000000000:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 1.6 \cdot 10^{+214}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 23: 31.0% accurate, 3.1× speedup?

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

\\
\begin{array}{l}
t_1 := y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\
\mathbf{if}\;y3 \leq -1.9 \cdot 10^{+214}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\

\mathbf{elif}\;y3 \leq -8.2 \cdot 10^{-26}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y3 \leq 3.2 \cdot 10^{-189}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

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

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


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

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

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

    if -1.89999999999999999e214 < y3 < -8.1999999999999997e-26 or 5.20000000000000024e196 < y3

    1. Initial program 19.9%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified60.1%

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

    if -8.1999999999999997e-26 < y3 < 3.2000000000000001e-189

    1. Initial program 40.0%

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

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

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

    if 3.2000000000000001e-189 < y3 < 5.20000000000000024e196

    1. Initial program 33.2%

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

      \[\leadsto \color{blue}{y \cdot \left(\left(-1 \cdot \left(k \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(a \cdot b - c \cdot i\right)\right) - -1 \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in k around inf 38.1%

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

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

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

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

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

Alternative 24: 32.1% accurate, 3.1× speedup?

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

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

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

\mathbf{elif}\;a \leq 7.5 \cdot 10^{-117}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

\mathbf{elif}\;a \leq 9 \cdot 10^{+100}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if a < -7.0000000000000005e108

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

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

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

    if -7.0000000000000005e108 < a < -2.79999999999999992e-126

    1. Initial program 37.5%

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

      \[\leadsto \color{blue}{y \cdot \left(\left(-1 \cdot \left(k \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(a \cdot b - c \cdot i\right)\right) - -1 \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in y3 around inf 50.1%

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

    if -2.79999999999999992e-126 < a < 7.50000000000000066e-117

    1. Initial program 27.8%

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

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

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

    if 7.50000000000000066e-117 < a < 9.00000000000000073e100

    1. Initial program 40.2%

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

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

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

    if 9.00000000000000073e100 < a

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

      \[\leadsto \color{blue}{y \cdot \left(\left(-1 \cdot \left(k \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(a \cdot b - c \cdot i\right)\right) - -1 \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in y5 around inf 50.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -7 \cdot 10^{+108}:\\ \;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - z \cdot t\right)\right)\\ \mathbf{elif}\;a \leq -2.8 \cdot 10^{-126}:\\ \;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{elif}\;a \leq 7.5 \cdot 10^{-117}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{elif}\;a \leq 9 \cdot 10^{+100}:\\ \;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 25: 28.2% accurate, 3.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y3 \leq -9.2 \cdot 10^{+206}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -6.2 \cdot 10^{-8}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 3.7 \cdot 10^{-135}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{elif}\;y3 \leq 4.2 \cdot 10^{+206}:\\ \;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(c \cdot \left(y \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 (<= y3 -9.2e+206)
   (* c (* y0 (- (* x y2) (* z y3))))
   (if (<= y3 -6.2e-8)
     (* c (* y (* y3 y4)))
     (if (<= y3 3.7e-135)
       (* b (* y4 (- (* t j) (* y k))))
       (if (<= y3 4.2e+206)
         (* x (* y (- (* a b) (* c i))))
         (* y4 (* c (* y 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 (y3 <= -9.2e+206) {
		tmp = c * (y0 * ((x * y2) - (z * y3)));
	} else if (y3 <= -6.2e-8) {
		tmp = c * (y * (y3 * y4));
	} else if (y3 <= 3.7e-135) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} else if (y3 <= 4.2e+206) {
		tmp = x * (y * ((a * b) - (c * i)));
	} else {
		tmp = y4 * (c * (y * 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 (y3 <= (-9.2d+206)) then
        tmp = c * (y0 * ((x * y2) - (z * y3)))
    else if (y3 <= (-6.2d-8)) then
        tmp = c * (y * (y3 * y4))
    else if (y3 <= 3.7d-135) then
        tmp = b * (y4 * ((t * j) - (y * k)))
    else if (y3 <= 4.2d+206) then
        tmp = x * (y * ((a * b) - (c * i)))
    else
        tmp = y4 * (c * (y * 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 (y3 <= -9.2e+206) {
		tmp = c * (y0 * ((x * y2) - (z * y3)));
	} else if (y3 <= -6.2e-8) {
		tmp = c * (y * (y3 * y4));
	} else if (y3 <= 3.7e-135) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} else if (y3 <= 4.2e+206) {
		tmp = x * (y * ((a * b) - (c * i)));
	} else {
		tmp = y4 * (c * (y * y3));
	}
	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+206:
		tmp = c * (y0 * ((x * y2) - (z * y3)))
	elif y3 <= -6.2e-8:
		tmp = c * (y * (y3 * y4))
	elif y3 <= 3.7e-135:
		tmp = b * (y4 * ((t * j) - (y * k)))
	elif y3 <= 4.2e+206:
		tmp = x * (y * ((a * b) - (c * i)))
	else:
		tmp = y4 * (c * (y * 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 (y3 <= -9.2e+206)
		tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3))));
	elseif (y3 <= -6.2e-8)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	elseif (y3 <= 3.7e-135)
		tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k))));
	elseif (y3 <= 4.2e+206)
		tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i))));
	else
		tmp = Float64(y4 * Float64(c * Float64(y * 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 (y3 <= -9.2e+206)
		tmp = c * (y0 * ((x * y2) - (z * y3)));
	elseif (y3 <= -6.2e-8)
		tmp = c * (y * (y3 * y4));
	elseif (y3 <= 3.7e-135)
		tmp = b * (y4 * ((t * j) - (y * k)));
	elseif (y3 <= 4.2e+206)
		tmp = x * (y * ((a * b) - (c * i)));
	else
		tmp = y4 * (c * (y * y3));
	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+206], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -6.2e-8], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.7e-135], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.2e+206], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;y3 \leq 3.7 \cdot 10^{-135}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

\mathbf{elif}\;y3 \leq 4.2 \cdot 10^{+206}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\

\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\


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

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

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

    if -9.20000000000000064e206 < y3 < -6.2e-8

    1. Initial program 19.4%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified56.4%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 46.1%

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

    if -6.2e-8 < y3 < 3.6999999999999997e-135

    1. Initial program 38.9%

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

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

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

    if 3.6999999999999997e-135 < y3 < 4.19999999999999974e206

    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 y around inf 41.5%

      \[\leadsto \color{blue}{y \cdot \left(\left(-1 \cdot \left(k \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(a \cdot b - c \cdot i\right)\right) - -1 \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    4. Taylor expanded in x around inf 36.1%

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

    if 4.19999999999999974e206 < y3

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified69.7%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 65.7%

      \[\leadsto y4 \cdot \color{blue}{\left(c \cdot \left(y \cdot y3\right)\right)} \]
    8. Step-by-step derivation
      1. *-commutative65.7%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -9.2 \cdot 10^{+206}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -6.2 \cdot 10^{-8}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 3.7 \cdot 10^{-135}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{elif}\;y3 \leq 4.2 \cdot 10^{+206}:\\ \;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 26: 28.8% accurate, 3.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y3 \leq -1.68 \cdot 10^{+218}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -1.52 \cdot 10^{+49}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq -2.2 \cdot 10^{-69}:\\ \;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - z \cdot t\right)\right)\\ \mathbf{elif}\;y3 \leq 1.15 \cdot 10^{+135}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(c \cdot \left(y \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 (<= y3 -1.68e+218)
   (* a (* y1 (* z y3)))
   (if (<= y3 -1.52e+49)
     (* c (* y (* y3 y4)))
     (if (<= y3 -2.2e-69)
       (* b (* a (- (* x y) (* z t))))
       (if (<= y3 1.15e+135)
         (* b (* j (- (* t y4) (* x y0))))
         (* y4 (* c (* y 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 (y3 <= -1.68e+218) {
		tmp = a * (y1 * (z * y3));
	} else if (y3 <= -1.52e+49) {
		tmp = c * (y * (y3 * y4));
	} else if (y3 <= -2.2e-69) {
		tmp = b * (a * ((x * y) - (z * t)));
	} else if (y3 <= 1.15e+135) {
		tmp = b * (j * ((t * y4) - (x * y0)));
	} else {
		tmp = y4 * (c * (y * 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 (y3 <= (-1.68d+218)) then
        tmp = a * (y1 * (z * y3))
    else if (y3 <= (-1.52d+49)) then
        tmp = c * (y * (y3 * y4))
    else if (y3 <= (-2.2d-69)) then
        tmp = b * (a * ((x * y) - (z * t)))
    else if (y3 <= 1.15d+135) then
        tmp = b * (j * ((t * y4) - (x * y0)))
    else
        tmp = y4 * (c * (y * 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 (y3 <= -1.68e+218) {
		tmp = a * (y1 * (z * y3));
	} else if (y3 <= -1.52e+49) {
		tmp = c * (y * (y3 * y4));
	} else if (y3 <= -2.2e-69) {
		tmp = b * (a * ((x * y) - (z * t)));
	} else if (y3 <= 1.15e+135) {
		tmp = b * (j * ((t * y4) - (x * y0)));
	} else {
		tmp = y4 * (c * (y * y3));
	}
	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.68e+218:
		tmp = a * (y1 * (z * y3))
	elif y3 <= -1.52e+49:
		tmp = c * (y * (y3 * y4))
	elif y3 <= -2.2e-69:
		tmp = b * (a * ((x * y) - (z * t)))
	elif y3 <= 1.15e+135:
		tmp = b * (j * ((t * y4) - (x * y0)))
	else:
		tmp = y4 * (c * (y * 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 (y3 <= -1.68e+218)
		tmp = Float64(a * Float64(y1 * Float64(z * y3)));
	elseif (y3 <= -1.52e+49)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	elseif (y3 <= -2.2e-69)
		tmp = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(z * t))));
	elseif (y3 <= 1.15e+135)
		tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0))));
	else
		tmp = Float64(y4 * Float64(c * Float64(y * 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 (y3 <= -1.68e+218)
		tmp = a * (y1 * (z * y3));
	elseif (y3 <= -1.52e+49)
		tmp = c * (y * (y3 * y4));
	elseif (y3 <= -2.2e-69)
		tmp = b * (a * ((x * y) - (z * t)));
	elseif (y3 <= 1.15e+135)
		tmp = b * (j * ((t * y4) - (x * y0)));
	else
		tmp = y4 * (c * (y * y3));
	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.68e+218], N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.52e+49], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -2.2e-69], N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.15e+135], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

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

\mathbf{elif}\;y3 \leq -1.52 \cdot 10^{+49}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\

\mathbf{elif}\;y3 \leq -2.2 \cdot 10^{-69}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - z \cdot t\right)\right)\\

\mathbf{elif}\;y3 \leq 1.15 \cdot 10^{+135}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\

\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\


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

    1. Initial program 21.1%

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

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(z \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in c around 0 58.1%

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

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

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

    if -1.6800000000000001e218 < y3 < -1.52e49

    1. Initial program 8.8%

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

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

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

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

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

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 51.3%

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

    if -1.52e49 < y3 < -2.2e-69

    1. Initial program 40.4%

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

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

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

    if -2.2e-69 < y3 < 1.1500000000000001e135

    1. Initial program 34.2%

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

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

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

    if 1.1500000000000001e135 < y3

    1. Initial program 29.3%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified58.7%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 53.3%

      \[\leadsto y4 \cdot \color{blue}{\left(c \cdot \left(y \cdot y3\right)\right)} \]
    8. Step-by-step derivation
      1. *-commutative53.3%

        \[\leadsto y4 \cdot \left(c \cdot \color{blue}{\left(y3 \cdot y\right)}\right) \]
    9. Simplified53.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -1.68 \cdot 10^{+218}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -1.52 \cdot 10^{+49}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq -2.2 \cdot 10^{-69}:\\ \;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - z \cdot t\right)\right)\\ \mathbf{elif}\;y3 \leq 1.15 \cdot 10^{+135}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 27: 28.2% accurate, 3.6× speedup?

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

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

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

\mathbf{elif}\;y3 \leq 4.2 \cdot 10^{+206}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\


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

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

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

    if -3.80000000000000016e211 < y3 < -1.12e-7

    1. Initial program 19.4%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified56.4%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 46.1%

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

    if -1.12e-7 < y3 < 4.19999999999999974e206

    1. Initial program 35.4%

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

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

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

    if 4.19999999999999974e206 < y3

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified69.7%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 65.7%

      \[\leadsto y4 \cdot \color{blue}{\left(c \cdot \left(y \cdot y3\right)\right)} \]
    8. Step-by-step derivation
      1. *-commutative65.7%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -3.8 \cdot 10^{+211}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -1.12 \cdot 10^{-7}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 4.2 \cdot 10^{+206}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 28: 28.0% accurate, 3.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y3 \leq -1.68 \cdot 10^{+218}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -1.9 \cdot 10^{-8}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 3.7 \cdot 10^{+206}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(c \cdot \left(y \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 (<= y3 -1.68e+218)
   (* a (* y1 (* z y3)))
   (if (<= y3 -1.9e-8)
     (* c (* y (* y3 y4)))
     (if (<= y3 3.7e+206)
       (* b (* y4 (- (* t j) (* y k))))
       (* y4 (* c (* y 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 (y3 <= -1.68e+218) {
		tmp = a * (y1 * (z * y3));
	} else if (y3 <= -1.9e-8) {
		tmp = c * (y * (y3 * y4));
	} else if (y3 <= 3.7e+206) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} else {
		tmp = y4 * (c * (y * 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 (y3 <= (-1.68d+218)) then
        tmp = a * (y1 * (z * y3))
    else if (y3 <= (-1.9d-8)) then
        tmp = c * (y * (y3 * y4))
    else if (y3 <= 3.7d+206) then
        tmp = b * (y4 * ((t * j) - (y * k)))
    else
        tmp = y4 * (c * (y * 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 (y3 <= -1.68e+218) {
		tmp = a * (y1 * (z * y3));
	} else if (y3 <= -1.9e-8) {
		tmp = c * (y * (y3 * y4));
	} else if (y3 <= 3.7e+206) {
		tmp = b * (y4 * ((t * j) - (y * k)));
	} else {
		tmp = y4 * (c * (y * y3));
	}
	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.68e+218:
		tmp = a * (y1 * (z * y3))
	elif y3 <= -1.9e-8:
		tmp = c * (y * (y3 * y4))
	elif y3 <= 3.7e+206:
		tmp = b * (y4 * ((t * j) - (y * k)))
	else:
		tmp = y4 * (c * (y * 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 (y3 <= -1.68e+218)
		tmp = Float64(a * Float64(y1 * Float64(z * y3)));
	elseif (y3 <= -1.9e-8)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	elseif (y3 <= 3.7e+206)
		tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k))));
	else
		tmp = Float64(y4 * Float64(c * Float64(y * 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 (y3 <= -1.68e+218)
		tmp = a * (y1 * (z * y3));
	elseif (y3 <= -1.9e-8)
		tmp = c * (y * (y3 * y4));
	elseif (y3 <= 3.7e+206)
		tmp = b * (y4 * ((t * j) - (y * k)));
	else
		tmp = y4 * (c * (y * y3));
	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.68e+218], N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.9e-8], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.7e+206], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;y3 \leq 3.7 \cdot 10^{+206}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\

\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\


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

    1. Initial program 21.1%

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

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(z \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in c around 0 58.1%

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

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

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

    if -1.6800000000000001e218 < y3 < -1.90000000000000014e-8

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

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

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

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

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

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 46.2%

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

    if -1.90000000000000014e-8 < y3 < 3.6999999999999997e206

    1. Initial program 35.4%

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

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

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

    if 3.6999999999999997e206 < y3

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified69.7%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 65.7%

      \[\leadsto y4 \cdot \color{blue}{\left(c \cdot \left(y \cdot y3\right)\right)} \]
    8. Step-by-step derivation
      1. *-commutative65.7%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -1.68 \cdot 10^{+218}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -1.9 \cdot 10^{-8}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 3.7 \cdot 10^{+206}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 29: 28.6% accurate, 3.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y3 \leq -1.48 \cdot 10^{+218}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -1.18 \cdot 10^{+48}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 9 \cdot 10^{+127}:\\ \;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - z \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(c \cdot \left(y \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 (<= y3 -1.48e+218)
   (* a (* y1 (* z y3)))
   (if (<= y3 -1.18e+48)
     (* c (* y (* y3 y4)))
     (if (<= y3 9e+127)
       (* b (* a (- (* x y) (* z t))))
       (* y4 (* c (* y 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 (y3 <= -1.48e+218) {
		tmp = a * (y1 * (z * y3));
	} else if (y3 <= -1.18e+48) {
		tmp = c * (y * (y3 * y4));
	} else if (y3 <= 9e+127) {
		tmp = b * (a * ((x * y) - (z * t)));
	} else {
		tmp = y4 * (c * (y * 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 (y3 <= (-1.48d+218)) then
        tmp = a * (y1 * (z * y3))
    else if (y3 <= (-1.18d+48)) then
        tmp = c * (y * (y3 * y4))
    else if (y3 <= 9d+127) then
        tmp = b * (a * ((x * y) - (z * t)))
    else
        tmp = y4 * (c * (y * 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 (y3 <= -1.48e+218) {
		tmp = a * (y1 * (z * y3));
	} else if (y3 <= -1.18e+48) {
		tmp = c * (y * (y3 * y4));
	} else if (y3 <= 9e+127) {
		tmp = b * (a * ((x * y) - (z * t)));
	} else {
		tmp = y4 * (c * (y * y3));
	}
	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.48e+218:
		tmp = a * (y1 * (z * y3))
	elif y3 <= -1.18e+48:
		tmp = c * (y * (y3 * y4))
	elif y3 <= 9e+127:
		tmp = b * (a * ((x * y) - (z * t)))
	else:
		tmp = y4 * (c * (y * 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 (y3 <= -1.48e+218)
		tmp = Float64(a * Float64(y1 * Float64(z * y3)));
	elseif (y3 <= -1.18e+48)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	elseif (y3 <= 9e+127)
		tmp = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(z * t))));
	else
		tmp = Float64(y4 * Float64(c * Float64(y * 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 (y3 <= -1.48e+218)
		tmp = a * (y1 * (z * y3));
	elseif (y3 <= -1.18e+48)
		tmp = c * (y * (y3 * y4));
	elseif (y3 <= 9e+127)
		tmp = b * (a * ((x * y) - (z * t)));
	else
		tmp = y4 * (c * (y * y3));
	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.48e+218], N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.18e+48], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 9e+127], N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

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

\mathbf{elif}\;y3 \leq -1.18 \cdot 10^{+48}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\

\mathbf{elif}\;y3 \leq 9 \cdot 10^{+127}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - z \cdot t\right)\right)\\

\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\


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

    1. Initial program 21.1%

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

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(z \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in c around 0 58.1%

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

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

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

    if -1.48000000000000004e218 < y3 < -1.18000000000000007e48

    1. Initial program 8.8%

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

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

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

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

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

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 51.3%

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

    if -1.18000000000000007e48 < y3 < 9.00000000000000068e127

    1. Initial program 35.6%

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

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

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

    if 9.00000000000000068e127 < y3

    1. Initial program 28.5%

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified57.2%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 52.0%

      \[\leadsto y4 \cdot \color{blue}{\left(c \cdot \left(y \cdot y3\right)\right)} \]
    8. Step-by-step derivation
      1. *-commutative52.0%

        \[\leadsto y4 \cdot \left(c \cdot \color{blue}{\left(y3 \cdot y\right)}\right) \]
    9. Simplified52.0%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -1.48 \cdot 10^{+218}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -1.18 \cdot 10^{+48}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 9 \cdot 10^{+127}:\\ \;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - z \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 30: 21.8% accurate, 4.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y3 \leq -1.68 \cdot 10^{+218}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -3.3 \cdot 10^{-26}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 3.7 \cdot 10^{+206}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \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 (<= y3 -1.68e+218)
   (* a (* y1 (* z y3)))
   (if (<= y3 -3.3e-26)
     (* c (* y (* y3 y4)))
     (if (<= y3 3.7e+206) (* b (* j (* t y4))) (* c (* y4 (* y 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 (y3 <= -1.68e+218) {
		tmp = a * (y1 * (z * y3));
	} else if (y3 <= -3.3e-26) {
		tmp = c * (y * (y3 * y4));
	} else if (y3 <= 3.7e+206) {
		tmp = b * (j * (t * y4));
	} else {
		tmp = c * (y4 * (y * 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 (y3 <= (-1.68d+218)) then
        tmp = a * (y1 * (z * y3))
    else if (y3 <= (-3.3d-26)) then
        tmp = c * (y * (y3 * y4))
    else if (y3 <= 3.7d+206) then
        tmp = b * (j * (t * y4))
    else
        tmp = c * (y4 * (y * 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 (y3 <= -1.68e+218) {
		tmp = a * (y1 * (z * y3));
	} else if (y3 <= -3.3e-26) {
		tmp = c * (y * (y3 * y4));
	} else if (y3 <= 3.7e+206) {
		tmp = b * (j * (t * y4));
	} else {
		tmp = c * (y4 * (y * y3));
	}
	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.68e+218:
		tmp = a * (y1 * (z * y3))
	elif y3 <= -3.3e-26:
		tmp = c * (y * (y3 * y4))
	elif y3 <= 3.7e+206:
		tmp = b * (j * (t * y4))
	else:
		tmp = c * (y4 * (y * 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 (y3 <= -1.68e+218)
		tmp = Float64(a * Float64(y1 * Float64(z * y3)));
	elseif (y3 <= -3.3e-26)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	elseif (y3 <= 3.7e+206)
		tmp = Float64(b * Float64(j * Float64(t * y4)));
	else
		tmp = Float64(c * Float64(y4 * Float64(y * 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 (y3 <= -1.68e+218)
		tmp = a * (y1 * (z * y3));
	elseif (y3 <= -3.3e-26)
		tmp = c * (y * (y3 * y4));
	elseif (y3 <= 3.7e+206)
		tmp = b * (j * (t * y4));
	else
		tmp = c * (y4 * (y * y3));
	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.68e+218], N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -3.3e-26], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.7e+206], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y4 * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;y3 \leq 3.7 \cdot 10^{+206}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\

\mathbf{else}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3\right)\right)\\


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

    1. Initial program 21.1%

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

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(z \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in c around 0 58.1%

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

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

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

    if -1.6800000000000001e218 < y3 < -3.2999999999999998e-26

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

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified52.9%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 43.9%

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

    if -3.2999999999999998e-26 < y3 < 3.6999999999999997e206

    1. Initial program 35.9%

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in j around inf 24.5%

      \[\leadsto \color{blue}{b \cdot \left(j \cdot \left(t \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative24.5%

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

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

    if 3.6999999999999997e206 < y3

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

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

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

        \[\leadsto y4 \cdot \left(\color{blue}{\left(-y3\right)} \cdot \left(j \cdot y1 - c \cdot y\right)\right) \]
    6. Simplified69.7%

      \[\leadsto y4 \cdot \color{blue}{\left(\left(-y3\right) \cdot \left(j \cdot y1 - c \cdot y\right)\right)} \]
    7. Taylor expanded in j around 0 51.1%

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

        \[\leadsto c \cdot \color{blue}{\left(\left(y \cdot y3\right) \cdot y4\right)} \]
      2. *-commutative62.2%

        \[\leadsto c \cdot \left(\color{blue}{\left(y3 \cdot y\right)} \cdot y4\right) \]
    9. Simplified62.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -1.68 \cdot 10^{+218}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq -3.3 \cdot 10^{-26}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 3.7 \cdot 10^{+206}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 31: 21.7% accurate, 4.3× speedup?

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

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

\mathbf{elif}\;a \leq 140000000:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -1.1e166 or 8.99999999999999935e214 < a

    1. Initial program 21.7%

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

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

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

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

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

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

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

    if -1.1e166 < a < 1.4e8

    1. Initial program 34.3%

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in j around inf 23.7%

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

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

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

    if 1.4e8 < a < 8.99999999999999935e214

    1. Initial program 23.5%

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

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(z \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in c around 0 32.8%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.1 \cdot 10^{+166}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\ \mathbf{elif}\;a \leq 140000000:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 9 \cdot 10^{+214}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 32: 21.0% accurate, 4.3× speedup?

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

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

\mathbf{elif}\;a \leq 290000000:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\

\mathbf{elif}\;a \leq 8.6 \cdot 10^{+214}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -1.65000000000000009e167 or 8.59999999999999966e214 < a

    1. Initial program 21.7%

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

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

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

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

    if -1.65000000000000009e167 < a < 2.9e8

    1. Initial program 34.3%

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

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

      \[\leadsto \color{blue}{b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    5. Taylor expanded in j around inf 23.7%

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

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

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

    if 2.9e8 < a < 8.59999999999999966e214

    1. Initial program 23.5%

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

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(z \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in c around 0 32.8%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.65 \cdot 10^{+167}:\\ \;\;\;\;b \cdot \left(\left(x \cdot y\right) \cdot a\right)\\ \mathbf{elif}\;a \leq 290000000:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{elif}\;a \leq 8.6 \cdot 10^{+214}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(\left(x \cdot y\right) \cdot a\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 33: 23.0% accurate, 5.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.32 \cdot 10^{+42} \lor \neg \left(x \leq 1.3 \cdot 10^{-14}\right):\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -1.32e42 or 1.29999999999999998e-14 < x

    1. Initial program 24.0%

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

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

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

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

    if -1.32e42 < x < 1.29999999999999998e-14

    1. Initial program 34.9%

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

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(z \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in c around 0 23.0%

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

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

      \[\leadsto \color{blue}{a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification26.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.32 \cdot 10^{+42} \lor \neg \left(x \leq 1.3 \cdot 10^{-14}\right):\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 34: 22.8% accurate, 5.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -3.9 \cdot 10^{+41}:\\ \;\;\;\;b \cdot \left(\left(x \cdot y\right) \cdot a\right)\\ \mathbf{elif}\;x \leq 1.28 \cdot 10^{-14}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\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 (<= x -3.9e+41)
   (* b (* (* x y) a))
   (if (<= x 1.28e-14) (* a (* y1 (* z y3))) (* 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 (x <= -3.9e+41) {
		tmp = b * ((x * y) * a);
	} else if (x <= 1.28e-14) {
		tmp = a * (y1 * (z * y3));
	} 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 (x <= (-3.9d+41)) then
        tmp = b * ((x * y) * a)
    else if (x <= 1.28d-14) then
        tmp = a * (y1 * (z * y3))
    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 (x <= -3.9e+41) {
		tmp = b * ((x * y) * a);
	} else if (x <= 1.28e-14) {
		tmp = a * (y1 * (z * y3));
	} 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 x <= -3.9e+41:
		tmp = b * ((x * y) * a)
	elif x <= 1.28e-14:
		tmp = a * (y1 * (z * y3))
	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 (x <= -3.9e+41)
		tmp = Float64(b * Float64(Float64(x * y) * a));
	elseif (x <= 1.28e-14)
		tmp = Float64(a * Float64(y1 * Float64(z * y3)));
	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 (x <= -3.9e+41)
		tmp = b * ((x * y) * a);
	elseif (x <= 1.28e-14)
		tmp = a * (y1 * (z * y3));
	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[LessEqual[x, -3.9e+41], N[(b * N[(N[(x * y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.28e-14], N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

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

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

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


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

    1. Initial program 24.9%

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

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

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

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

    if -3.8999999999999997e41 < x < 1.28e-14

    1. Initial program 34.9%

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

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(z \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in c around 0 23.0%

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

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

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

    if 1.28e-14 < x

    1. Initial program 23.2%

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -3.9 \cdot 10^{+41}:\\ \;\;\;\;b \cdot \left(\left(x \cdot y\right) \cdot a\right)\\ \mathbf{elif}\;x \leq 1.28 \cdot 10^{-14}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 35: 22.9% accurate, 5.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -5.5 \cdot 10^{+41}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \mathbf{elif}\;x \leq 7.2 \cdot 10^{-17}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\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 (<= x -5.5e+41)
   (* a (* (* x y) b))
   (if (<= x 7.2e-17) (* a (* y1 (* z y3))) (* 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 (x <= -5.5e+41) {
		tmp = a * ((x * y) * b);
	} else if (x <= 7.2e-17) {
		tmp = a * (y1 * (z * y3));
	} 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 (x <= (-5.5d+41)) then
        tmp = a * ((x * y) * b)
    else if (x <= 7.2d-17) then
        tmp = a * (y1 * (z * y3))
    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 (x <= -5.5e+41) {
		tmp = a * ((x * y) * b);
	} else if (x <= 7.2e-17) {
		tmp = a * (y1 * (z * y3));
	} 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 x <= -5.5e+41:
		tmp = a * ((x * y) * b)
	elif x <= 7.2e-17:
		tmp = a * (y1 * (z * y3))
	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 (x <= -5.5e+41)
		tmp = Float64(a * Float64(Float64(x * y) * b));
	elseif (x <= 7.2e-17)
		tmp = Float64(a * Float64(y1 * Float64(z * y3)));
	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 (x <= -5.5e+41)
		tmp = a * ((x * y) * b);
	elseif (x <= 7.2e-17)
		tmp = a * (y1 * (z * y3));
	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[LessEqual[x, -5.5e+41], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.2e-17], N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

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

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

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


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

    1. Initial program 24.9%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 31.0%

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    4. Taylor expanded in a around inf 46.3%

      \[\leadsto b \cdot \color{blue}{\left(a \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
    5. Taylor expanded in x around inf 35.3%

      \[\leadsto \color{blue}{a \cdot \left(b \cdot \left(x \cdot y\right)\right)} \]

    if -5.5000000000000003e41 < x < 7.1999999999999999e-17

    1. Initial program 34.9%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around -inf 38.4%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Taylor expanded in y3 around inf 33.2%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(z \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in c around 0 23.0%

      \[\leadsto \color{blue}{a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative23.0%

        \[\leadsto a \cdot \left(y1 \cdot \color{blue}{\left(z \cdot y3\right)}\right) \]
    7. Simplified23.0%

      \[\leadsto \color{blue}{a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)} \]

    if 7.1999999999999999e-17 < x

    1. Initial program 23.2%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 32.8%

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    4. Taylor expanded in a around inf 25.5%

      \[\leadsto b \cdot \color{blue}{\left(a \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
    5. Taylor expanded in x around inf 25.8%

      \[\leadsto \color{blue}{a \cdot \left(b \cdot \left(x \cdot y\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*30.3%

        \[\leadsto a \cdot \color{blue}{\left(\left(b \cdot x\right) \cdot y\right)} \]
      2. *-commutative30.3%

        \[\leadsto a \cdot \left(\color{blue}{\left(x \cdot b\right)} \cdot y\right) \]
    7. Simplified30.3%

      \[\leadsto \color{blue}{a \cdot \left(\left(x \cdot b\right) \cdot y\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification27.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -5.5 \cdot 10^{+41}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \mathbf{elif}\;x \leq 7.2 \cdot 10^{-17}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 36: 17.4% accurate, 13.6× speedup?

\[\begin{array}{l} \\ a \cdot \left(\left(x \cdot y\right) \cdot b\right) \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (* a (* (* x y) b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	return a * ((x * y) * b);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    code = a * ((x * y) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	return a * ((x * y) * b);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	return a * ((x * y) * b)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	return Float64(a * Float64(Float64(x * y) * b))
end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = a * ((x * y) * b);
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
a \cdot \left(\left(x \cdot y\right) \cdot b\right)
\end{array}
Derivation
  1. Initial program 29.9%

    \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
  2. Add Preprocessing
  3. Taylor expanded in b around inf 34.5%

    \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
  4. Taylor expanded in a around inf 26.8%

    \[\leadsto b \cdot \color{blue}{\left(a \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
  5. Taylor expanded in x around inf 17.9%

    \[\leadsto \color{blue}{a \cdot \left(b \cdot \left(x \cdot y\right)\right)} \]
  6. Final simplification17.9%

    \[\leadsto a \cdot \left(\left(x \cdot y\right) \cdot b\right) \]
  7. Add Preprocessing

Developer Target 1: 27.8% 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 2024157 
(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)))))