Linear.Matrix:det44 from linear-1.19.1.3

Percentage Accurate: 30.5% → 53.8%
Time: 48.1s
Alternatives: 33
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 33 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 30.5% accurate, 1.0× speedup?

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

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

Alternative 1: 53.8% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) - \left(y \cdot t\_1 + y2 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\right)\\


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

    1. Initial program 96.8%

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

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

    1. Initial program 0.0%

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

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

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

Alternative 2: 43.6% accurate, 1.4× speedup?

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

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

\mathbf{elif}\;y2 \leq -2.2 \cdot 10^{-305}:\\
\;\;\;\;y3 \cdot \left(y \cdot t\_3 + \left(j \cdot t\_1 + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\

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

\mathbf{elif}\;y2 \leq 2.65 \cdot 10^{+17}:\\
\;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot t\_2 + a \cdot \left(\left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right) - b \cdot \left(z \cdot t - x \cdot y\right)\right) + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y2 < -7.5e13 or 2.65e17 < y2

    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 y2 around inf 58.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 -7.5e13 < y2 < -2.19999999999999997e-305

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

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

    if -2.19999999999999997e-305 < y2 < 1.55e-109

    1. Initial program 38.4%

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

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

    if 1.55e-109 < y2 < 2.65e17

    1. Initial program 37.0%

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

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

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

Alternative 3: 40.6% accurate, 1.4× speedup?

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

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

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

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

\mathbf{elif}\;x \leq 1.45 \cdot 10^{+41}:\\
\;\;\;\;t\_4 + t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot t\_5\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

\mathbf{else}:\\
\;\;\;\;t\_4 + 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)\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if x < -1.49999999999999994e-38

    1. Initial program 23.1%

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

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

    if -1.49999999999999994e-38 < x < -1.45e-160

    1. Initial program 42.0%

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

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

    if -1.45e-160 < x < 2.34999999999999993e-265

    1. Initial program 36.8%

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

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

    if 2.34999999999999993e-265 < x < 1.44999999999999994e41

    1. Initial program 40.9%

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

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

    if 1.44999999999999994e41 < x

    1. Initial program 24.5%

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

      \[\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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
  3. Recombined 5 regimes into one program.
  4. Final simplification56.0%

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

Alternative 4: 38.9% accurate, 1.7× speedup?

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

\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_2 := y1 \cdot y4 - y0 \cdot y5\\
\mathbf{if}\;z \leq -1.25 \cdot 10^{+132}:\\
\;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\

\mathbf{elif}\;z \leq -9.2 \cdot 10^{+71}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq -2.7 \cdot 10^{-186}:\\
\;\;\;\;k \cdot \left(y2 \cdot t\_2 + b \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\

\mathbf{elif}\;z \leq -9.8 \cdot 10^{-273}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 1:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_2 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\

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

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


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

    1. Initial program 20.0%

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

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

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

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

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

    if -1.25e132 < z < -9.200000000000001e71 or -2.6999999999999999e-186 < z < -9.79999999999999928e-273

    1. Initial program 42.0%

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

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

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

    if -9.200000000000001e71 < z < -2.6999999999999999e-186

    1. Initial program 43.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 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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in k around inf 53.2%

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

    if -9.79999999999999928e-273 < z < 1

    1. Initial program 29.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 52.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 1 < z < 3e117

    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 43.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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in y4 around inf 65.8%

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

    if 3e117 < z

    1. Initial program 16.7%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.25 \cdot 10^{+132}:\\ \;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\ \mathbf{elif}\;z \leq -9.2 \cdot 10^{+71}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;z \leq -2.7 \cdot 10^{-186}:\\ \;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + b \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\ \mathbf{elif}\;z \leq -9.8 \cdot 10^{-273}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;z \leq 1:\\ \;\;\;\;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)\\ \mathbf{elif}\;z \leq 3 \cdot 10^{+117}:\\ \;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 35.9% accurate, 1.9× speedup?

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

\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;z \leq -1.6 \cdot 10^{+133}:\\
\;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\

\mathbf{elif}\;z \leq -1 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;z \leq 1.6 \cdot 10^{-291}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 5 \cdot 10^{-59}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

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

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


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

    1. Initial program 20.0%

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

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

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

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

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

    if -1.59999999999999999e133 < z < -9.99999999999999983e72 or -1.82e-196 < z < 1.6000000000000001e-291

    1. Initial program 39.2%

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

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

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

    if -9.99999999999999983e72 < z < -1.82e-196

    1. Initial program 43.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 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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in k around inf 53.2%

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

    if 1.6000000000000001e-291 < z < 5.0000000000000001e-59

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

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

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

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

        \[\leadsto t \cdot \left(y2 \cdot \left(\color{blue}{y5 \cdot a} - c \cdot y4\right)\right) \]
      2. *-commutative47.8%

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

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

    if 5.0000000000000001e-59 < z < 4.8e119

    1. Initial program 31.3%

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

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

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

    if 4.8e119 < z

    1. Initial program 16.7%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.6 \cdot 10^{+133}:\\ \;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\ \mathbf{elif}\;z \leq -1 \cdot 10^{+73}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;z \leq -1.82 \cdot 10^{-196}:\\ \;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + b \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\ \mathbf{elif}\;z \leq 1.6 \cdot 10^{-291}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;z \leq 5 \cdot 10^{-59}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;z \leq 4.8 \cdot 10^{+119}:\\ \;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 42.9% accurate, 2.1× speedup?

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

\\
\begin{array}{l}
t_1 := y0 \cdot y5 - y1 \cdot y4\\
t_2 := c \cdot y4 - a \cdot y5\\
t_3 := 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 t\_2\right)\\
\mathbf{if}\;y2 \leq -11800000000:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;y2 \leq -7 \cdot 10^{-308}:\\
\;\;\;\;y3 \cdot \left(y \cdot t\_2 + \left(j \cdot t\_1 + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y2 < -1.18e10 or 2.29999999999999986e-88 < y2

    1. Initial program 27.9%

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

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

    if -1.18e10 < y2 < -7e-308

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

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

    if -7e-308 < y2 < 2.29999999999999986e-88

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

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification54.2%

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

Alternative 7: 32.2% accurate, 2.3× speedup?

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

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

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

\mathbf{elif}\;z \leq -9.8 \cdot 10^{-32}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\

\mathbf{elif}\;z \leq 4.7 \cdot 10^{-292}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\

\mathbf{elif}\;z \leq 9.2 \cdot 10^{-59}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

\mathbf{elif}\;z \leq 1.4 \cdot 10^{+117}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\

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


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

    1. Initial program 20.0%

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

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

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

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

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

    if -2.6e128 < z < -7.5999999999999996e70

    1. Initial program 26.3%

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

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

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

    if -7.5999999999999996e70 < z < -9.7999999999999996e-32

    1. Initial program 42.9%

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

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

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

    if -9.7999999999999996e-32 < z < 4.70000000000000002e-292

    1. Initial program 46.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 51.7%

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

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

    if 4.70000000000000002e-292 < z < 9.19999999999999918e-59

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

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

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

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

        \[\leadsto t \cdot \left(y2 \cdot \left(\color{blue}{y5 \cdot a} - c \cdot y4\right)\right) \]
      2. *-commutative47.8%

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

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

    if 9.19999999999999918e-59 < z < 1.39999999999999999e117

    1. Initial program 31.3%

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

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

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

    if 1.39999999999999999e117 < z

    1. Initial program 16.7%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.6 \cdot 10^{+128}:\\ \;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\ \mathbf{elif}\;z \leq -7.6 \cdot 10^{+70}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \mathbf{elif}\;z \leq -9.8 \cdot 10^{-32}:\\ \;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\ \mathbf{elif}\;z \leq 4.7 \cdot 10^{-292}:\\ \;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\ \mathbf{elif}\;z \leq 9.2 \cdot 10^{-59}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;z \leq 1.4 \cdot 10^{+117}:\\ \;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 31.7% accurate, 2.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\ \mathbf{if}\;y2 \leq -3200:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -3.3 \cdot 10^{-158}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y2 \leq -1.15 \cdot 10^{-172}:\\ \;\;\;\;b \cdot \left(k \cdot \left(y \cdot \left(-y4\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 9.2 \cdot 10^{-91}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \mathbf{elif}\;y2 \leq 8.8 \cdot 10^{-9}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y2 \leq 1.1 \cdot 10^{+59}:\\ \;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - 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 (* a (* (- (* x y) (* z t)) b))))
   (if (<= y2 -3200.0)
     (* t (* y2 (- (* a y5) (* c y4))))
     (if (<= y2 -3.3e-158)
       t_1
       (if (<= y2 -1.15e-172)
         (* b (* k (* y (- y4))))
         (if (<= y2 9.2e-91)
           (* k (* z (- (* b y0) (* i y1))))
           (if (<= y2 8.8e-9)
             t_1
             (if (<= y2 1.1e+59)
               (* k (* i (- (* y y5) (* z y1))))
               (* y1 (* y4 (- (* k y2) (* 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 = a * (((x * y) - (z * t)) * b);
	double tmp;
	if (y2 <= -3200.0) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else if (y2 <= -3.3e-158) {
		tmp = t_1;
	} else if (y2 <= -1.15e-172) {
		tmp = b * (k * (y * -y4));
	} else if (y2 <= 9.2e-91) {
		tmp = k * (z * ((b * y0) - (i * y1)));
	} else if (y2 <= 8.8e-9) {
		tmp = t_1;
	} else if (y2 <= 1.1e+59) {
		tmp = k * (i * ((y * y5) - (z * y1)));
	} else {
		tmp = y1 * (y4 * ((k * y2) - (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 = a * (((x * y) - (z * t)) * b)
    if (y2 <= (-3200.0d0)) then
        tmp = t * (y2 * ((a * y5) - (c * y4)))
    else if (y2 <= (-3.3d-158)) then
        tmp = t_1
    else if (y2 <= (-1.15d-172)) then
        tmp = b * (k * (y * -y4))
    else if (y2 <= 9.2d-91) then
        tmp = k * (z * ((b * y0) - (i * y1)))
    else if (y2 <= 8.8d-9) then
        tmp = t_1
    else if (y2 <= 1.1d+59) then
        tmp = k * (i * ((y * y5) - (z * y1)))
    else
        tmp = y1 * (y4 * ((k * y2) - (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 = a * (((x * y) - (z * t)) * b);
	double tmp;
	if (y2 <= -3200.0) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else if (y2 <= -3.3e-158) {
		tmp = t_1;
	} else if (y2 <= -1.15e-172) {
		tmp = b * (k * (y * -y4));
	} else if (y2 <= 9.2e-91) {
		tmp = k * (z * ((b * y0) - (i * y1)));
	} else if (y2 <= 8.8e-9) {
		tmp = t_1;
	} else if (y2 <= 1.1e+59) {
		tmp = k * (i * ((y * y5) - (z * y1)));
	} else {
		tmp = y1 * (y4 * ((k * y2) - (j * y3)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = a * (((x * y) - (z * t)) * b)
	tmp = 0
	if y2 <= -3200.0:
		tmp = t * (y2 * ((a * y5) - (c * y4)))
	elif y2 <= -3.3e-158:
		tmp = t_1
	elif y2 <= -1.15e-172:
		tmp = b * (k * (y * -y4))
	elif y2 <= 9.2e-91:
		tmp = k * (z * ((b * y0) - (i * y1)))
	elif y2 <= 8.8e-9:
		tmp = t_1
	elif y2 <= 1.1e+59:
		tmp = k * (i * ((y * y5) - (z * y1)))
	else:
		tmp = y1 * (y4 * ((k * y2) - (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(a * Float64(Float64(Float64(x * y) - Float64(z * t)) * b))
	tmp = 0.0
	if (y2 <= -3200.0)
		tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))));
	elseif (y2 <= -3.3e-158)
		tmp = t_1;
	elseif (y2 <= -1.15e-172)
		tmp = Float64(b * Float64(k * Float64(y * Float64(-y4))));
	elseif (y2 <= 9.2e-91)
		tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1))));
	elseif (y2 <= 8.8e-9)
		tmp = t_1;
	elseif (y2 <= 1.1e+59)
		tmp = Float64(k * Float64(i * Float64(Float64(y * y5) - Float64(z * y1))));
	else
		tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - 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 = a * (((x * y) - (z * t)) * b);
	tmp = 0.0;
	if (y2 <= -3200.0)
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	elseif (y2 <= -3.3e-158)
		tmp = t_1;
	elseif (y2 <= -1.15e-172)
		tmp = b * (k * (y * -y4));
	elseif (y2 <= 9.2e-91)
		tmp = k * (z * ((b * y0) - (i * y1)));
	elseif (y2 <= 8.8e-9)
		tmp = t_1;
	elseif (y2 <= 1.1e+59)
		tmp = k * (i * ((y * y5) - (z * y1)));
	else
		tmp = y1 * (y4 * ((k * y2) - (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[(a * N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -3200.0], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.3e-158], t$95$1, If[LessEqual[y2, -1.15e-172], N[(b * N[(k * N[(y * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 9.2e-91], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 8.8e-9], t$95$1, If[LessEqual[y2, 1.1e+59], N[(k * N[(i * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\
\mathbf{if}\;y2 \leq -3200:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq -3.3 \cdot 10^{-158}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y2 \leq -1.15 \cdot 10^{-172}:\\
\;\;\;\;b \cdot \left(k \cdot \left(y \cdot \left(-y4\right)\right)\right)\\

\mathbf{elif}\;y2 \leq 9.2 \cdot 10^{-91}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\

\mathbf{elif}\;y2 \leq 8.8 \cdot 10^{-9}:\\
\;\;\;\;t\_1\\

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

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


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

    1. Initial program 20.0%

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

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

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

      \[\leadsto \color{blue}{t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative47.7%

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

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

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

    if -3200 < y2 < -3.3000000000000002e-158 or 9.19999999999999982e-91 < y2 < 8.7999999999999994e-9

    1. Initial program 32.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 28.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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in a around inf 45.1%

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

    if -3.3000000000000002e-158 < y2 < -1.14999999999999998e-172

    1. Initial program 42.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 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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in k around inf 59.4%

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

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

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

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

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

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

    if -1.14999999999999998e-172 < y2 < 9.19999999999999982e-91

    1. Initial program 41.3%

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

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

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

    if 8.7999999999999994e-9 < y2 < 1.1e59

    1. Initial program 45.5%

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

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

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

    if 1.1e59 < y2

    1. Initial program 26.2%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -3200:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -3.3 \cdot 10^{-158}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\ \mathbf{elif}\;y2 \leq -1.15 \cdot 10^{-172}:\\ \;\;\;\;b \cdot \left(k \cdot \left(y \cdot \left(-y4\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 9.2 \cdot 10^{-91}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \mathbf{elif}\;y2 \leq 8.8 \cdot 10^{-9}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\ \mathbf{elif}\;y2 \leq 1.1 \cdot 10^{+59}:\\ \;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 36.3% accurate, 2.3× speedup?

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

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

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

\mathbf{elif}\;z \leq 6.8 \cdot 10^{-59}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

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

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


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

    1. Initial program 20.0%

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

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

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

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

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

    if -1.84999999999999999e135 < z < 8.80000000000000045e-292

    1. Initial program 41.3%

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

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

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

    if 8.80000000000000045e-292 < z < 6.80000000000000035e-59

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

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

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

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

        \[\leadsto t \cdot \left(y2 \cdot \left(\color{blue}{y5 \cdot a} - c \cdot y4\right)\right) \]
      2. *-commutative47.8%

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

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

    if 6.80000000000000035e-59 < z < 5.49999999999999965e117

    1. Initial program 31.3%

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

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

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

    if 5.49999999999999965e117 < z

    1. Initial program 16.7%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.85 \cdot 10^{+135}:\\ \;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\ \mathbf{elif}\;z \leq 8.8 \cdot 10^{-292}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;z \leq 6.8 \cdot 10^{-59}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;z \leq 5.5 \cdot 10^{+117}:\\ \;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 39.9% accurate, 2.3× speedup?

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

\\
\begin{array}{l}
t_1 := c \cdot y4 - a \cdot y5\\
\mathbf{if}\;y3 \leq -3.6 \cdot 10^{+111}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\

\mathbf{elif}\;y3 \leq 5.7 \cdot 10^{+161}:\\
\;\;\;\;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 t\_1\right)\\

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


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

    1. Initial program 17.5%

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

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

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

    if -3.6000000000000002e111 < y3 < 5.7000000000000004e161

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

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

    if 5.7000000000000004e161 < y3

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -3.6 \cdot 10^{+111}:\\ \;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\ \mathbf{elif}\;y3 \leq 5.7 \cdot 10^{+161}:\\ \;\;\;\;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)\\ \mathbf{else}:\\ \;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 31.7% accurate, 2.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -0.026:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq -3.5 \cdot 10^{-157}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\

\mathbf{elif}\;y2 \leq -1.8 \cdot 10^{-174}:\\
\;\;\;\;b \cdot \left(k \cdot \left(y \cdot \left(-y4\right)\right)\right)\\

\mathbf{elif}\;y2 \leq 3.2 \cdot 10^{-89}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\

\mathbf{elif}\;y2 \leq 9.8 \cdot 10^{+166}:\\
\;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\\

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


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

    1. Initial program 20.0%

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

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

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

      \[\leadsto \color{blue}{t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative47.7%

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

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

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

    if -0.0259999999999999988 < y2 < -3.5000000000000002e-157

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

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

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

    if -3.5000000000000002e-157 < y2 < -1.79999999999999999e-174

    1. Initial program 42.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 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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in k around inf 59.4%

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

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

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

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

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

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

    if -1.79999999999999999e-174 < y2 < 3.19999999999999998e-89

    1. Initial program 42.2%

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

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

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

    if 3.19999999999999998e-89 < y2 < 9.79999999999999938e166

    1. Initial program 37.5%

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

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

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

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

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(y2 \cdot \left(x \cdot y1 - t \cdot y5\right)\right) \]
    6. Simplified45.3%

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

    if 9.79999999999999938e166 < y2

    1. Initial program 22.6%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -0.026:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -3.5 \cdot 10^{-157}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\ \mathbf{elif}\;y2 \leq -1.8 \cdot 10^{-174}:\\ \;\;\;\;b \cdot \left(k \cdot \left(y \cdot \left(-y4\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 3.2 \cdot 10^{-89}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \mathbf{elif}\;y2 \leq 9.8 \cdot 10^{+166}:\\ \;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 31.6% accurate, 2.6× speedup?

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

\\
\begin{array}{l}
t_1 := a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\
\mathbf{if}\;y2 \leq -0.0042:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

\mathbf{elif}\;y2 \leq -2.7 \cdot 10^{-158}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y2 \leq -8 \cdot 10^{-171}:\\
\;\;\;\;b \cdot \left(k \cdot \left(y \cdot \left(-y4\right)\right)\right)\\

\mathbf{elif}\;y2 \leq 2.5 \cdot 10^{-105}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\

\mathbf{elif}\;y2 \leq 12600:\\
\;\;\;\;t\_1\\

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


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

    1. Initial program 20.0%

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

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

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

      \[\leadsto \color{blue}{t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative47.7%

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

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

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

    if -0.00419999999999999974 < y2 < -2.6999999999999998e-158 or 2.49999999999999982e-105 < y2 < 12600

    1. Initial program 32.7%

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

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

    if -2.6999999999999998e-158 < y2 < -7.9999999999999999e-171

    1. Initial program 42.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 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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in k around inf 59.4%

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

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

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

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

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

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

    if -7.9999999999999999e-171 < y2 < 2.49999999999999982e-105

    1. Initial program 41.3%

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

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

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

    if 12600 < y2

    1. Initial program 31.3%

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -0.0042:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -2.7 \cdot 10^{-158}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\ \mathbf{elif}\;y2 \leq -8 \cdot 10^{-171}:\\ \;\;\;\;b \cdot \left(k \cdot \left(y \cdot \left(-y4\right)\right)\right)\\ \mathbf{elif}\;y2 \leq 2.5 \cdot 10^{-105}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \mathbf{elif}\;y2 \leq 12600:\\ \;\;\;\;a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 21.4% accurate, 2.9× speedup?

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

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

\mathbf{elif}\;t \leq -1.9 \cdot 10^{-130}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(y \cdot \left(-k\right)\right)\right)\\

\mathbf{elif}\;t \leq 3 \cdot 10^{-172}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\

\mathbf{elif}\;t \leq 8.5 \cdot 10^{+46}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if t < -2.32e21

    1. Initial program 28.3%

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

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

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

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

        \[\leadsto a \cdot \color{blue}{\left(\left(t \cdot y2\right) \cdot y5\right)} \]
    7. Simplified33.0%

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

    if -2.32e21 < t < -1.8999999999999999e-130

    1. Initial program 31.0%

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

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

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

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

        \[\leadsto \color{blue}{\left(-b\right)} \cdot \left(k \cdot \left(y \cdot y4\right)\right) \]
      3. *-commutative29.4%

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

      \[\leadsto \color{blue}{\left(-b\right) \cdot \left(\left(y \cdot y4\right) \cdot k\right)} \]
    8. Taylor expanded in b around 0 29.4%

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

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

        \[\leadsto -b \cdot \color{blue}{\left(\left(y \cdot y4\right) \cdot k\right)} \]
      3. associate-*r*29.4%

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

        \[\leadsto \color{blue}{b \cdot \left(-y \cdot \left(y4 \cdot k\right)\right)} \]
      5. associate-*r*29.4%

        \[\leadsto b \cdot \left(-\color{blue}{\left(y \cdot y4\right) \cdot k}\right) \]
      6. *-commutative29.4%

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

        \[\leadsto b \cdot \left(-\color{blue}{\left(k \cdot y\right) \cdot y4}\right) \]
      8. distribute-lft-neg-in39.3%

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

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

    if -1.8999999999999999e-130 < t < 2.99999999999999984e-172

    1. Initial program 28.6%

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

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

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

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

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

    if 2.99999999999999984e-172 < t < 8.4999999999999996e46

    1. Initial program 38.7%

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

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

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

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

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

    if 8.4999999999999996e46 < t < 1.4500000000000001e191

    1. Initial program 29.6%

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

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

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

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

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

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

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

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

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

    if 1.4500000000000001e191 < t

    1. Initial program 36.8%

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.32 \cdot 10^{+21}:\\ \;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\ \mathbf{elif}\;t \leq -1.9 \cdot 10^{-130}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(y \cdot \left(-k\right)\right)\right)\\ \mathbf{elif}\;t \leq 3 \cdot 10^{-172}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \mathbf{elif}\;t \leq 8.5 \cdot 10^{+46}:\\ \;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;t \leq 1.45 \cdot 10^{+191}:\\ \;\;\;\;a \cdot \left(y2 \cdot \left(x \cdot \left(-y1\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(z \cdot \left(-t \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 21.4% accurate, 2.9× speedup?

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

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

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

\mathbf{elif}\;t \leq 4.9 \cdot 10^{-173}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\

\mathbf{elif}\;t \leq 4.3 \cdot 10^{+46}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if t < -6.7e16

    1. Initial program 28.3%

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

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

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

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

        \[\leadsto a \cdot \color{blue}{\left(\left(t \cdot y2\right) \cdot y5\right)} \]
    7. Simplified33.0%

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

    if -6.7e16 < t < -1.3e-129

    1. Initial program 31.0%

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

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

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

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

        \[\leadsto \color{blue}{\left(-b\right)} \cdot \left(k \cdot \left(y \cdot y4\right)\right) \]
      3. *-commutative29.4%

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

      \[\leadsto \color{blue}{\left(-b\right) \cdot \left(\left(y \cdot y4\right) \cdot k\right)} \]
    8. Taylor expanded in b around 0 29.4%

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

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

        \[\leadsto -b \cdot \color{blue}{\left(\left(y \cdot y4\right) \cdot k\right)} \]
      3. associate-*r*29.4%

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

        \[\leadsto \color{blue}{b \cdot \left(-y \cdot \left(y4 \cdot k\right)\right)} \]
      5. associate-*r*29.4%

        \[\leadsto b \cdot \left(-\color{blue}{\left(y \cdot y4\right) \cdot k}\right) \]
      6. *-commutative29.4%

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

        \[\leadsto b \cdot \left(-\color{blue}{\left(k \cdot y\right) \cdot y4}\right) \]
      8. distribute-lft-neg-in39.3%

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

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

    if -1.3e-129 < t < 4.89999999999999991e-173

    1. Initial program 28.6%

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

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

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

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

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

    if 4.89999999999999991e-173 < t < 4.30000000000000005e46

    1. Initial program 38.7%

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

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

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

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

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

    if 4.30000000000000005e46 < t < 1.4500000000000001e191

    1. Initial program 29.6%

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

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

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

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

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

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

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

    if 1.4500000000000001e191 < t

    1. Initial program 36.8%

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -6.7 \cdot 10^{+16}:\\ \;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\ \mathbf{elif}\;t \leq -1.3 \cdot 10^{-129}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(y \cdot \left(-k\right)\right)\right)\\ \mathbf{elif}\;t \leq 4.9 \cdot 10^{-173}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \mathbf{elif}\;t \leq 4.3 \cdot 10^{+46}:\\ \;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;t \leq 1.45 \cdot 10^{+191}:\\ \;\;\;\;y2 \cdot \left(a \cdot \left(x \cdot \left(-y1\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(z \cdot \left(-t \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 21.3% accurate, 2.9× speedup?

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

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

\mathbf{elif}\;y5 \leq -9.8 \cdot 10^{-23}:\\
\;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0\right)\right)\\

\mathbf{elif}\;y5 \leq 1.7 \cdot 10^{-88}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\

\mathbf{elif}\;y5 \leq 1.45 \cdot 10^{+56}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\

\mathbf{elif}\;y5 \leq 1.25 \cdot 10^{+205}:\\
\;\;\;\;k \cdot \left(y5 \cdot \left(y0 \cdot \left(-y2\right)\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y5 < -8.19999999999999963e142

    1. Initial program 13.9%

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

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

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

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

        \[\leadsto y2 \cdot \left(t \cdot \color{blue}{\left(y5 \cdot a\right)}\right) \]
    7. Simplified39.8%

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

    if -8.19999999999999963e142 < y5 < -9.7999999999999996e-23

    1. Initial program 29.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 30.0%

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

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

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

        \[\leadsto b \cdot \color{blue}{\left(\left(k \cdot y0\right) \cdot z\right)} \]
      2. *-commutative34.5%

        \[\leadsto b \cdot \left(\color{blue}{\left(y0 \cdot k\right)} \cdot z\right) \]
    7. Simplified34.5%

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

    if -9.7999999999999996e-23 < y5 < 1.69999999999999987e-88

    1. Initial program 37.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 33.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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in a around inf 34.0%

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

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

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

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

    if 1.69999999999999987e-88 < y5 < 1.45000000000000004e56

    1. Initial program 41.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 33.9%

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

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

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

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

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

    if 1.45000000000000004e56 < y5 < 1.25e205

    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 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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in k around inf 61.1%

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

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

        \[\leadsto \color{blue}{-k \cdot \left(y0 \cdot \left(y2 \cdot y5\right)\right)} \]
      2. associate-*r*44.6%

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

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

    if 1.25e205 < y5

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

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

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

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

        \[\leadsto y2 \cdot \left(a \cdot \color{blue}{\left(y5 \cdot t\right)}\right) \]
    7. Simplified58.1%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -8.2 \cdot 10^{+142}:\\ \;\;\;\;y2 \cdot \left(t \cdot \left(a \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq -9.8 \cdot 10^{-23}:\\ \;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0\right)\right)\\ \mathbf{elif}\;y5 \leq 1.7 \cdot 10^{-88}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \mathbf{elif}\;y5 \leq 1.45 \cdot 10^{+56}:\\ \;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;y5 \leq 1.25 \cdot 10^{+205}:\\ \;\;\;\;k \cdot \left(y5 \cdot \left(y0 \cdot \left(-y2\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(a \cdot \left(t \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 35.2% accurate, 3.1× speedup?

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

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

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

\mathbf{elif}\;z \leq 6.4 \cdot 10^{-59}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

\mathbf{elif}\;z \leq 3.4 \cdot 10^{+116}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\

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


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

    1. Initial program 20.0%

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

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

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

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

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

    if -4.2e133 < z < 1.5e-291

    1. Initial program 41.3%

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

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

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

    if 1.5e-291 < z < 6.3999999999999998e-59

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

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

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

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

        \[\leadsto t \cdot \left(y2 \cdot \left(\color{blue}{y5 \cdot a} - c \cdot y4\right)\right) \]
      2. *-commutative47.8%

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

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

    if 6.3999999999999998e-59 < z < 3.40000000000000023e116

    1. Initial program 31.3%

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

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

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

    if 3.40000000000000023e116 < z

    1. Initial program 16.7%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.2 \cdot 10^{+133}:\\ \;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\ \mathbf{elif}\;z \leq 1.5 \cdot 10^{-291}:\\ \;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\ \mathbf{elif}\;z \leq 6.4 \cdot 10^{-59}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;z \leq 3.4 \cdot 10^{+116}:\\ \;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 31.2% accurate, 3.1× speedup?

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

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

\mathbf{elif}\;y2 \leq -1 \cdot 10^{-170}:\\
\;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3 - t \cdot i\right)\right)\\

\mathbf{elif}\;y2 \leq 1.8 \cdot 10^{-88}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\

\mathbf{elif}\;y2 \leq 8.2 \cdot 10^{+167}:\\
\;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y2 < -4.49999999999999983e123 or 8.2e167 < y2

    1. Initial program 24.6%

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

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

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

    if -4.49999999999999983e123 < y2 < -9.99999999999999983e-171

    1. Initial program 22.9%

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

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

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

    if -9.99999999999999983e-171 < y2 < 1.8e-88

    1. Initial program 42.2%

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

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

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

    if 1.8e-88 < y2 < 8.2e167

    1. Initial program 37.5%

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

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

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

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

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(y2 \cdot \left(x \cdot y1 - t \cdot y5\right)\right) \]
    6. Simplified45.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -4.5 \cdot 10^{+123}:\\ \;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\ \mathbf{elif}\;y2 \leq -1 \cdot 10^{-170}:\\ \;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3 - t \cdot i\right)\right)\\ \mathbf{elif}\;y2 \leq 1.8 \cdot 10^{-88}:\\ \;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \mathbf{elif}\;y2 \leq 8.2 \cdot 10^{+167}:\\ \;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 18: 30.8% accurate, 3.1× speedup?

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

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

\mathbf{elif}\;y2 \leq -7.6 \cdot 10^{-173}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\

\mathbf{elif}\;y2 \leq 2.1 \cdot 10^{-88}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\

\mathbf{elif}\;y2 \leq 2.3 \cdot 10^{+175}:\\
\;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y2 < -7.6000000000000001e115 or 2.3e175 < y2

    1. Initial program 23.6%

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

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

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

    if -7.6000000000000001e115 < y2 < -7.6000000000000006e-173

    1. Initial program 24.1%

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

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot i\right) \cdot \left(j \cdot \left(t \cdot y5 - x \cdot y1\right)\right)} \]
      2. neg-mul-135.9%

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

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

    if -7.6000000000000006e-173 < y2 < 2.1e-88

    1. Initial program 42.2%

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

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

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

    if 2.1e-88 < y2 < 2.3e175

    1. Initial program 37.5%

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

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

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

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

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(y2 \cdot \left(x \cdot y1 - t \cdot y5\right)\right) \]
    6. Simplified45.3%

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

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

Alternative 19: 29.4% accurate, 3.1× speedup?

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

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

\mathbf{elif}\;y5 \leq 1.35 \cdot 10^{-107}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y5 < -9.8e14

    1. Initial program 21.8%

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

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

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

    if -9.8e14 < y5 < 1.35e-107

    1. Initial program 35.5%

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

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

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

    if 1.35e-107 < y5 < 2.35e100

    1. Initial program 36.1%

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

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

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

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

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

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

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

    if 2.35e100 < y5 < 7.39999999999999962e214

    1. Initial program 37.5%

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

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

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

    if 7.39999999999999962e214 < y5

    1. Initial program 22.7%

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

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

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

      \[\leadsto y2 \cdot \color{blue}{\left(a \cdot \left(t \cdot y5\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative63.9%

        \[\leadsto y2 \cdot \left(a \cdot \color{blue}{\left(y5 \cdot t\right)}\right) \]
    7. Simplified63.9%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -9.8 \cdot 10^{+14}:\\ \;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{elif}\;y5 \leq 1.35 \cdot 10^{-107}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\ \mathbf{elif}\;y5 \leq 2.35 \cdot 10^{+100}:\\ \;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\ \mathbf{elif}\;y5 \leq 7.4 \cdot 10^{+214}:\\ \;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(a \cdot \left(t \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 31.2% accurate, 3.1× speedup?

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

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

\mathbf{elif}\;t \leq -4.2 \cdot 10^{-75}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(y \cdot \left(-k\right)\right)\right)\\

\mathbf{elif}\;t \leq 3.9 \cdot 10^{-25}:\\
\;\;\;\;b \cdot \left(x \cdot \left(y \cdot a - j \cdot y0\right)\right)\\

\mathbf{elif}\;t \leq 2.4 \cdot 10^{+202}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -1.80000000000000011e-4 or 3.9e-25 < t < 2.4000000000000002e202

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

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

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

    if -1.80000000000000011e-4 < t < -4.2000000000000002e-75

    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 28.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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in k around inf 47.5%

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

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

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

        \[\leadsto \color{blue}{\left(-b\right)} \cdot \left(k \cdot \left(y \cdot y4\right)\right) \]
      3. *-commutative29.0%

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

      \[\leadsto \color{blue}{\left(-b\right) \cdot \left(\left(y \cdot y4\right) \cdot k\right)} \]
    8. Taylor expanded in b around 0 29.0%

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

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

        \[\leadsto -b \cdot \color{blue}{\left(\left(y \cdot y4\right) \cdot k\right)} \]
      3. associate-*r*29.0%

        \[\leadsto -b \cdot \color{blue}{\left(y \cdot \left(y4 \cdot k\right)\right)} \]
      4. distribute-rgt-neg-in29.0%

        \[\leadsto \color{blue}{b \cdot \left(-y \cdot \left(y4 \cdot k\right)\right)} \]
      5. associate-*r*29.0%

        \[\leadsto b \cdot \left(-\color{blue}{\left(y \cdot y4\right) \cdot k}\right) \]
      6. *-commutative29.0%

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

        \[\leadsto b \cdot \left(-\color{blue}{\left(k \cdot y\right) \cdot y4}\right) \]
      8. distribute-lft-neg-in48.2%

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

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

    if -4.2000000000000002e-75 < t < 3.9e-25

    1. Initial program 32.2%

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

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

    if 2.4000000000000002e202 < t

    1. Initial program 36.8%

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -0.00018:\\ \;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\ \mathbf{elif}\;t \leq -4.2 \cdot 10^{-75}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(y \cdot \left(-k\right)\right)\right)\\ \mathbf{elif}\;t \leq 3.9 \cdot 10^{-25}:\\ \;\;\;\;b \cdot \left(x \cdot \left(y \cdot a - j \cdot y0\right)\right)\\ \mathbf{elif}\;t \leq 2.4 \cdot 10^{+202}:\\ \;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(z \cdot \left(-t \cdot b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 21: 21.6% accurate, 3.4× speedup?

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

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

\mathbf{elif}\;y5 \leq -4.2 \cdot 10^{-23}:\\
\;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0\right)\right)\\

\mathbf{elif}\;y5 \leq 1.45 \cdot 10^{-257}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\

\mathbf{elif}\;y5 \leq 1.8 \cdot 10^{-56}:\\
\;\;\;\;b \cdot \left(y \cdot \left(-k \cdot y4\right)\right)\\

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


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

    1. Initial program 13.9%

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

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

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

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

        \[\leadsto y2 \cdot \left(t \cdot \color{blue}{\left(y5 \cdot a\right)}\right) \]
    7. Simplified39.8%

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

    if -5.1999999999999998e137 < y5 < -4.2000000000000002e-23

    1. Initial program 29.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 30.0%

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

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

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

        \[\leadsto b \cdot \color{blue}{\left(\left(k \cdot y0\right) \cdot z\right)} \]
      2. *-commutative34.5%

        \[\leadsto b \cdot \left(\color{blue}{\left(y0 \cdot k\right)} \cdot z\right) \]
    7. Simplified34.5%

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

    if -4.2000000000000002e-23 < y5 < 1.4500000000000001e-257

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

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

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

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

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

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

    if 1.4500000000000001e-257 < y5 < 1.79999999999999989e-56

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\left(-b\right) \cdot \left(\left(y \cdot y4\right) \cdot k\right)} \]
    8. Step-by-step derivation
      1. distribute-lft-neg-out24.2%

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

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

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

    if 1.79999999999999989e-56 < y5

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

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

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

      \[\leadsto y2 \cdot \color{blue}{\left(a \cdot \left(t \cdot y5\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative35.5%

        \[\leadsto y2 \cdot \left(a \cdot \color{blue}{\left(y5 \cdot t\right)}\right) \]
    7. Simplified35.5%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -5.2 \cdot 10^{+137}:\\ \;\;\;\;y2 \cdot \left(t \cdot \left(a \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq -4.2 \cdot 10^{-23}:\\ \;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0\right)\right)\\ \mathbf{elif}\;y5 \leq 1.45 \cdot 10^{-257}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \mathbf{elif}\;y5 \leq 1.8 \cdot 10^{-56}:\\ \;\;\;\;b \cdot \left(y \cdot \left(-k \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(a \cdot \left(t \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 22: 22.4% accurate, 3.5× speedup?

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

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

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

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

\mathbf{elif}\;t \leq 4.1 \cdot 10^{+34}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if t < -7.4e18

    1. Initial program 28.3%

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

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

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

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

        \[\leadsto a \cdot \color{blue}{\left(\left(t \cdot y2\right) \cdot y5\right)} \]
    7. Simplified33.0%

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

    if -7.4e18 < t < -1.2999999999999999e-128

    1. Initial program 31.0%

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

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

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

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

        \[\leadsto \color{blue}{\left(-b\right)} \cdot \left(k \cdot \left(y \cdot y4\right)\right) \]
      3. *-commutative29.4%

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

      \[\leadsto \color{blue}{\left(-b\right) \cdot \left(\left(y \cdot y4\right) \cdot k\right)} \]
    8. Taylor expanded in b around 0 29.4%

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

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

        \[\leadsto -b \cdot \color{blue}{\left(\left(y \cdot y4\right) \cdot k\right)} \]
      3. associate-*r*29.4%

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

        \[\leadsto \color{blue}{b \cdot \left(-y \cdot \left(y4 \cdot k\right)\right)} \]
      5. associate-*r*29.4%

        \[\leadsto b \cdot \left(-\color{blue}{\left(y \cdot y4\right) \cdot k}\right) \]
      6. *-commutative29.4%

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

        \[\leadsto b \cdot \left(-\color{blue}{\left(k \cdot y\right) \cdot y4}\right) \]
      8. distribute-lft-neg-in39.3%

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

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

    if -1.2999999999999999e-128 < t < 4.80000000000000021e-169

    1. Initial program 28.6%

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

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

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

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

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

    if 4.80000000000000021e-169 < t < 4.0999999999999998e34

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

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

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

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

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

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

    if 4.0999999999999998e34 < t

    1. Initial program 34.8%

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

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

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

      \[\leadsto y2 \cdot \color{blue}{\left(a \cdot \left(t \cdot y5\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative32.7%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -7.4 \cdot 10^{+18}:\\ \;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\ \mathbf{elif}\;t \leq -1.3 \cdot 10^{-128}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(y \cdot \left(-k\right)\right)\right)\\ \mathbf{elif}\;t \leq 4.8 \cdot 10^{-169}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \mathbf{elif}\;t \leq 4.1 \cdot 10^{+34}:\\ \;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(a \cdot \left(t \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 23: 22.4% accurate, 3.5× speedup?

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

\\
\begin{array}{l}
t_1 := k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{if}\;t \leq -2 \cdot 10^{-5}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\

\mathbf{elif}\;t \leq -1.05 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 3.9 \cdot 10^{-169}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\

\mathbf{elif}\;t \leq 2.7 \cdot 10^{+32}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -2.00000000000000016e-5

    1. Initial program 27.7%

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

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

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

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

        \[\leadsto a \cdot \color{blue}{\left(\left(t \cdot y2\right) \cdot y5\right)} \]
    7. Simplified32.1%

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

    if -2.00000000000000016e-5 < t < -1.05000000000000004e-139 or 3.89999999999999977e-169 < t < 2.70000000000000013e32

    1. Initial program 37.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 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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in k around inf 40.7%

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

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

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

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

    if -1.05000000000000004e-139 < t < 3.89999999999999977e-169

    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 26.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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in a around inf 31.4%

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

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

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

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

    if 2.70000000000000013e32 < t

    1. Initial program 34.8%

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

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

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

      \[\leadsto y2 \cdot \color{blue}{\left(a \cdot \left(t \cdot y5\right)\right)} \]
    6. Step-by-step derivation
      1. *-commutative32.7%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2 \cdot 10^{-5}:\\ \;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\ \mathbf{elif}\;t \leq -1.05 \cdot 10^{-139}:\\ \;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;t \leq 3.9 \cdot 10^{-169}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \mathbf{elif}\;t \leq 2.7 \cdot 10^{+32}:\\ \;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(a \cdot \left(t \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 24: 22.3% accurate, 3.5× speedup?

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

\\
\begin{array}{l}
t_1 := a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\
t_2 := k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{if}\;t \leq -7.6 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq -4.6 \cdot 10^{-147}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t \leq 5.6 \cdot 10^{-169}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\

\mathbf{elif}\;t \leq 6 \cdot 10^{+26}:\\
\;\;\;\;t\_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -7.60000000000000029e-7 or 5.99999999999999994e26 < t

    1. Initial program 31.0%

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

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

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

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

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

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

    if -7.60000000000000029e-7 < t < -4.59999999999999981e-147 or 5.59999999999999976e-169 < t < 5.99999999999999994e26

    1. Initial program 37.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 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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in k around inf 40.7%

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

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

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

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

    if -4.59999999999999981e-147 < t < 5.59999999999999976e-169

    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 26.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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in a around inf 31.4%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -7.6 \cdot 10^{-7}:\\ \;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\ \mathbf{elif}\;t \leq -4.6 \cdot 10^{-147}:\\ \;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{elif}\;t \leq 5.6 \cdot 10^{-169}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \mathbf{elif}\;t \leq 6 \cdot 10^{+26}:\\ \;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 25: 30.2% accurate, 3.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -125000:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\

\mathbf{elif}\;y5 \leq 7.2 \cdot 10^{-104}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\

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

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


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

    1. Initial program 21.8%

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

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

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

    if -125000 < y5 < 7.1999999999999996e-104

    1. Initial program 35.5%

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

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

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

    if 7.1999999999999996e-104 < y5 < 8.00000000000000007e78

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

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

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

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

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

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

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

    if 8.00000000000000007e78 < y5

    1. Initial program 31.4%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -125000:\\ \;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{elif}\;y5 \leq 7.2 \cdot 10^{-104}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\ \mathbf{elif}\;y5 \leq 8 \cdot 10^{+78}:\\ \;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 26: 28.6% accurate, 3.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -1450000000:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\

\mathbf{elif}\;y5 \leq 1.15 \cdot 10^{-78}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\

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

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


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

    1. Initial program 21.8%

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

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

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

    if -1.45e9 < y5 < 1.1500000000000001e-78

    1. Initial program 35.3%

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

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

    if 1.1500000000000001e-78 < y5 < 1.60000000000000005e41

    1. Initial program 42.1%

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

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

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

    if 1.60000000000000005e41 < y5

    1. Initial program 30.0%

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

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

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

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

        \[\leadsto y2 \cdot \left(a \cdot \color{blue}{\left(y5 \cdot t\right)}\right) \]
    7. Simplified42.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -1450000000:\\ \;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\ \mathbf{elif}\;y5 \leq 1.15 \cdot 10^{-78}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\ \mathbf{elif}\;y5 \leq 1.6 \cdot 10^{+41}:\\ \;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(a \cdot \left(t \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 27: 26.7% accurate, 3.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -240000000:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\

\mathbf{elif}\;y5 \leq 5.2 \cdot 10^{-78}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\

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

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


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

    1. Initial program 21.8%

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

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

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

    if -2.4e8 < y5 < 5.2000000000000002e-78

    1. Initial program 35.3%

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

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

    if 5.2000000000000002e-78 < y5 < 3.4500000000000001e41

    1. Initial program 42.1%

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

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

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

    if 3.4500000000000001e41 < y5

    1. Initial program 30.0%

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

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

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

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

        \[\leadsto y2 \cdot \left(a \cdot \color{blue}{\left(y5 \cdot t\right)}\right) \]
    7. Simplified42.8%

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

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

Alternative 28: 21.1% accurate, 4.3× speedup?

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

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

\mathbf{elif}\;y5 \leq -1.05 \cdot 10^{-22}:\\
\;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0\right)\right)\\

\mathbf{elif}\;y5 \leq 1.22 \cdot 10^{-90}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\

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


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

    1. Initial program 13.9%

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

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

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

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

        \[\leadsto y2 \cdot \left(t \cdot \color{blue}{\left(y5 \cdot a\right)}\right) \]
    7. Simplified39.8%

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

    if -5.40000000000000034e137 < y5 < -1.05000000000000004e-22

    1. Initial program 29.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 30.0%

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

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

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

        \[\leadsto b \cdot \color{blue}{\left(\left(k \cdot y0\right) \cdot z\right)} \]
      2. *-commutative34.5%

        \[\leadsto b \cdot \left(\color{blue}{\left(y0 \cdot k\right)} \cdot z\right) \]
    7. Simplified34.5%

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

    if -1.05000000000000004e-22 < y5 < 1.2199999999999999e-90

    1. Initial program 37.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 33.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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in a around inf 34.0%

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

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

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

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

    if 1.2199999999999999e-90 < y5

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

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

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

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

        \[\leadsto y2 \cdot \left(a \cdot \color{blue}{\left(y5 \cdot t\right)}\right) \]
    7. Simplified35.1%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -5.4 \cdot 10^{+137}:\\ \;\;\;\;y2 \cdot \left(t \cdot \left(a \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq -1.05 \cdot 10^{-22}:\\ \;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0\right)\right)\\ \mathbf{elif}\;y5 \leq 1.22 \cdot 10^{-90}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(a \cdot \left(t \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 29: 21.2% accurate, 4.3× speedup?

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

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

\mathbf{elif}\;y5 \leq -8.8 \cdot 10^{-23}:\\
\;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0\right)\right)\\

\mathbf{elif}\;y5 \leq 7 \cdot 10^{-83}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y5 < -5.2e148 or 7.00000000000000061e-83 < y5

    1. Initial program 27.6%

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

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

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

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

    if -5.2e148 < y5 < -8.7999999999999998e-23

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

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

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

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

        \[\leadsto b \cdot \color{blue}{\left(\left(k \cdot y0\right) \cdot z\right)} \]
      2. *-commutative35.7%

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

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

    if -8.7999999999999998e-23 < y5 < 7.00000000000000061e-83

    1. Initial program 37.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 33.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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in a around inf 34.0%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -5.2 \cdot 10^{+148}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq -8.8 \cdot 10^{-23}:\\ \;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0\right)\right)\\ \mathbf{elif}\;y5 \leq 7 \cdot 10^{-83}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 30: 21.3% accurate, 4.3× speedup?

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

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

\mathbf{elif}\;y5 \leq -9.5 \cdot 10^{-23}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\

\mathbf{elif}\;y5 \leq 3.8 \cdot 10^{-83}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y5 < -4.8999999999999998e147 or 3.79999999999999977e-83 < y5

    1. Initial program 27.6%

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

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

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

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

    if -4.8999999999999998e147 < y5 < -9.50000000000000058e-23

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

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

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

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

    if -9.50000000000000058e-23 < y5 < 3.79999999999999977e-83

    1. Initial program 37.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 33.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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    4. Taylor expanded in a around inf 34.0%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -4.9 \cdot 10^{+147}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq -9.5 \cdot 10^{-23}:\\ \;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\ \mathbf{elif}\;y5 \leq 3.8 \cdot 10^{-83}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 31: 28.2% accurate, 4.5× speedup?

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

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

\mathbf{elif}\;y5 \leq 1.3 \cdot 10^{+40}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y5 < -5.2e135

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

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

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

      \[\leadsto y2 \cdot \left(t \cdot \color{blue}{\left(a \cdot y5\right)}\right) \]
    6. Step-by-step derivation
      1. *-commutative39.0%

        \[\leadsto y2 \cdot \left(t \cdot \color{blue}{\left(y5 \cdot a\right)}\right) \]
    7. Simplified39.0%

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

    if -5.2e135 < y5 < 1.3e40

    1. Initial program 36.3%

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

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

    if 1.3e40 < y5

    1. Initial program 31.1%

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

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

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

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

        \[\leadsto y2 \cdot \left(a \cdot \color{blue}{\left(y5 \cdot t\right)}\right) \]
    7. Simplified42.1%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -5.2 \cdot 10^{+135}:\\ \;\;\;\;y2 \cdot \left(t \cdot \left(a \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq 1.3 \cdot 10^{+40}:\\ \;\;\;\;a \cdot \left(\left(x \cdot y - z \cdot t\right) \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(a \cdot \left(t \cdot y5\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 32: 21.7% accurate, 5.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -7 \cdot 10^{-20} \lor \neg \left(y5 \leq 2.6 \cdot 10^{-80}\right):\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y5 < -7.00000000000000007e-20 or 2.6000000000000001e-80 < y5

    1. Initial program 27.7%

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

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

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

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

    if -7.00000000000000007e-20 < y5 < 2.6000000000000001e-80

    1. Initial program 36.8%

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

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

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

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

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

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

Alternative 33: 16.9% accurate, 13.6× speedup?

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

\\
a \cdot \left(\left(x \cdot y\right) \cdot b\right)
\end{array}
Derivation
  1. Initial program 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 33.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)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
  4. Taylor expanded in a around inf 27.5%

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

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

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

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

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

Developer Target 1: 28.4% 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 2024145 
(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)))))