Linear.Matrix:det44 from linear-1.19.1.3

Percentage Accurate: 29.9% → 43.6%
Time: 29.5s
Alternatives: 31
Speedup: 4.8×

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)));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
    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 31 alternatives:

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

Initial Program: 29.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (+
  (-
   (+
    (+
     (-
      (* (- (* x y) (* z t)) (- (* a b) (* c i)))
      (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
     (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
    (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
   (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
  (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
    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: 43.6% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\ t_2 := \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\\ t_3 := \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right)\\ t_4 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\ t_5 := \left(\mathsf{fma}\left(t\_3, a, t\_4 \cdot y4\right) - t\_2 \cdot y0\right) \cdot b\\ t_6 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\ t_7 := \left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_4, i, t\_1 \cdot y0\right) - t\_6 \cdot a\right)\\ \mathbf{if}\;y5 \leq -1.9 \cdot 10^{+101}:\\ \;\;\;\;t\_7\\ \mathbf{elif}\;y5 \leq -6.2 \cdot 10^{-184}:\\ \;\;\;\;\left(\mathsf{fma}\left(t\_4, b, t\_1 \cdot y1\right) - t\_6 \cdot c\right) \cdot y4\\ \mathbf{elif}\;y5 \leq 6.2 \cdot 10^{-288}:\\ \;\;\;\;t\_5\\ \mathbf{elif}\;y5 \leq 9 \cdot 10^{-199}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\ \mathbf{elif}\;y5 \leq 1.6 \cdot 10^{-117}:\\ \;\;\;\;\left(\mathsf{fma}\left(-y1, y2, b \cdot y\right) \cdot x\right) \cdot a\\ \mathbf{elif}\;y5 \leq 6.4 \cdot 10^{-71}:\\ \;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(t\_3, c, t\_4 \cdot y5\right) - t\_2 \cdot y1\right)\\ \mathbf{elif}\;y5 \leq 2 \cdot 10^{+88}:\\ \;\;\;\;t\_5\\ \mathbf{else}:\\ \;\;\;\;t\_7\\ \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 (fma y2 k (* (- j) y3)))
        (t_2 (fma j x (* (- k) z)))
        (t_3 (fma y x (* (- t) z)))
        (t_4 (fma j t (* (- k) y)))
        (t_5 (* (- (fma t_3 a (* t_4 y4)) (* t_2 y0)) b))
        (t_6 (fma y2 t (* (- y) y3)))
        (t_7 (* (- y5) (- (fma t_4 i (* t_1 y0)) (* t_6 a)))))
   (if (<= y5 -1.9e+101)
     t_7
     (if (<= y5 -6.2e-184)
       (* (- (fma t_4 b (* t_1 y1)) (* t_6 c)) y4)
       (if (<= y5 6.2e-288)
         t_5
         (if (<= y5 9e-199)
           (*
            (-
             (fma (fma y0 c (* (- y1) a)) y2 (* (fma b a (* (- c) i)) y))
             (* (fma y0 b (* (- i) y1)) j))
            x)
           (if (<= y5 1.6e-117)
             (* (* (fma (- y1) y2 (* b y)) x) a)
             (if (<= y5 6.4e-71)
               (* (- i) (- (fma t_3 c (* t_4 y5)) (* t_2 y1)))
               (if (<= y5 2e+88) t_5 t_7)))))))))
double code(double x, double y, double z, double t, double 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 = fma(y2, k, (-j * y3));
	double t_2 = fma(j, x, (-k * z));
	double t_3 = fma(y, x, (-t * z));
	double t_4 = fma(j, t, (-k * y));
	double t_5 = (fma(t_3, a, (t_4 * y4)) - (t_2 * y0)) * b;
	double t_6 = fma(y2, t, (-y * y3));
	double t_7 = -y5 * (fma(t_4, i, (t_1 * y0)) - (t_6 * a));
	double tmp;
	if (y5 <= -1.9e+101) {
		tmp = t_7;
	} else if (y5 <= -6.2e-184) {
		tmp = (fma(t_4, b, (t_1 * y1)) - (t_6 * c)) * y4;
	} else if (y5 <= 6.2e-288) {
		tmp = t_5;
	} else if (y5 <= 9e-199) {
		tmp = (fma(fma(y0, c, (-y1 * a)), y2, (fma(b, a, (-c * i)) * y)) - (fma(y0, b, (-i * y1)) * j)) * x;
	} else if (y5 <= 1.6e-117) {
		tmp = (fma(-y1, y2, (b * y)) * x) * a;
	} else if (y5 <= 6.4e-71) {
		tmp = -i * (fma(t_3, c, (t_4 * y5)) - (t_2 * y1));
	} else if (y5 <= 2e+88) {
		tmp = t_5;
	} else {
		tmp = t_7;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = fma(y2, k, Float64(Float64(-j) * y3))
	t_2 = fma(j, x, Float64(Float64(-k) * z))
	t_3 = fma(y, x, Float64(Float64(-t) * z))
	t_4 = fma(j, t, Float64(Float64(-k) * y))
	t_5 = Float64(Float64(fma(t_3, a, Float64(t_4 * y4)) - Float64(t_2 * y0)) * b)
	t_6 = fma(y2, t, Float64(Float64(-y) * y3))
	t_7 = Float64(Float64(-y5) * Float64(fma(t_4, i, Float64(t_1 * y0)) - Float64(t_6 * a)))
	tmp = 0.0
	if (y5 <= -1.9e+101)
		tmp = t_7;
	elseif (y5 <= -6.2e-184)
		tmp = Float64(Float64(fma(t_4, b, Float64(t_1 * y1)) - Float64(t_6 * c)) * y4);
	elseif (y5 <= 6.2e-288)
		tmp = t_5;
	elseif (y5 <= 9e-199)
		tmp = Float64(Float64(fma(fma(y0, c, Float64(Float64(-y1) * a)), y2, Float64(fma(b, a, Float64(Float64(-c) * i)) * y)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * j)) * x);
	elseif (y5 <= 1.6e-117)
		tmp = Float64(Float64(fma(Float64(-y1), y2, Float64(b * y)) * x) * a);
	elseif (y5 <= 6.4e-71)
		tmp = Float64(Float64(-i) * Float64(fma(t_3, c, Float64(t_4 * y5)) - Float64(t_2 * y1)));
	elseif (y5 <= 2e+88)
		tmp = t_5;
	else
		tmp = t_7;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(N[(t$95$3 * a + N[(t$95$4 * y4), $MachinePrecision]), $MachinePrecision] - N[(t$95$2 * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$6 = N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[((-y5) * N[(N[(t$95$4 * i + N[(t$95$1 * y0), $MachinePrecision]), $MachinePrecision] - N[(t$95$6 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.9e+101], t$95$7, If[LessEqual[y5, -6.2e-184], N[(N[(N[(t$95$4 * b + N[(t$95$1 * y1), $MachinePrecision]), $MachinePrecision] - N[(t$95$6 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y5, 6.2e-288], t$95$5, If[LessEqual[y5, 9e-199], N[(N[(N[(N[(y0 * c + N[((-y1) * a), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, 1.6e-117], N[(N[(N[((-y1) * y2 + N[(b * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y5, 6.4e-71], N[((-i) * N[(N[(t$95$3 * c + N[(t$95$4 * y5), $MachinePrecision]), $MachinePrecision] - N[(t$95$2 * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2e+88], t$95$5, t$95$7]]]]]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\
t_2 := \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\\
t_3 := \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right)\\
t_4 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
t_5 := \left(\mathsf{fma}\left(t\_3, a, t\_4 \cdot y4\right) - t\_2 \cdot y0\right) \cdot b\\
t_6 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\
t_7 := \left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_4, i, t\_1 \cdot y0\right) - t\_6 \cdot a\right)\\
\mathbf{if}\;y5 \leq -1.9 \cdot 10^{+101}:\\
\;\;\;\;t\_7\\

\mathbf{elif}\;y5 \leq -6.2 \cdot 10^{-184}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_4, b, t\_1 \cdot y1\right) - t\_6 \cdot c\right) \cdot y4\\

\mathbf{elif}\;y5 \leq 6.2 \cdot 10^{-288}:\\
\;\;\;\;t\_5\\

\mathbf{elif}\;y5 \leq 9 \cdot 10^{-199}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\

\mathbf{elif}\;y5 \leq 1.6 \cdot 10^{-117}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y1, y2, b \cdot y\right) \cdot x\right) \cdot a\\

\mathbf{elif}\;y5 \leq 6.4 \cdot 10^{-71}:\\
\;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(t\_3, c, t\_4 \cdot y5\right) - t\_2 \cdot y1\right)\\

\mathbf{elif}\;y5 \leq 2 \cdot 10^{+88}:\\
\;\;\;\;t\_5\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y5 < -1.8999999999999999e101 or 1.99999999999999992e88 < y5

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

      \[\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)} \]
    4. Step-by-step derivation
      1. Applied rewrites67.4%

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

      if -1.8999999999999999e101 < y5 < -6.2000000000000004e-184

      1. Initial program 48.4%

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

        \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
      4. Step-by-step derivation
        1. Applied rewrites60.7%

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

        if -6.2000000000000004e-184 < y5 < 6.19999999999999967e-288 or 6.3999999999999998e-71 < y5 < 1.99999999999999992e88

        1. Initial program 28.7%

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

          \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
        4. Step-by-step derivation
          1. Applied rewrites56.7%

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

          if 6.19999999999999967e-288 < y5 < 8.99999999999999995e-199

          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 x around inf

            \[\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)} \]
          4. Step-by-step derivation
            1. Applied rewrites71.6%

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

            if 8.99999999999999995e-199 < y5 < 1.59999999999999998e-117

            1. Initial program 30.1%

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

              \[\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)} \]
            4. Step-by-step derivation
              1. Applied rewrites31.0%

                \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
              2. Taylor expanded in x around inf

                \[\leadsto \left(x \cdot \left(-1 \cdot \left(y1 \cdot y2\right) + b \cdot y\right)\right) \cdot a \]
              3. Step-by-step derivation
                1. Applied rewrites70.7%

                  \[\leadsto \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right) \cdot a \]
                2. Step-by-step derivation
                  1. Applied rewrites70.7%

                    \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, y2, b \cdot y\right) \cdot x\right) \cdot a} \]

                  if 1.59999999999999998e-117 < y5 < 6.3999999999999998e-71

                  1. Initial program 39.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 i around -inf

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

                    \[\leadsto \color{blue}{\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)} \]
                3. Recombined 6 regimes into one program.
                4. Add Preprocessing

                Alternative 2: 53.4% accurate, 0.5× speedup?

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

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

                    \[\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)} \]
                  4. Step-by-step derivation
                    1. Applied rewrites42.2%

                      \[\leadsto \color{blue}{\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)} \]
                  5. Recombined 2 regimes into one program.
                  6. Add Preprocessing

                  Alternative 3: 45.1% accurate, 2.0× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\ t_2 := \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\\ t_3 := \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right)\\ t_4 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\ t_5 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\ t_6 := \left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_4, i, t\_1 \cdot y0\right) - t\_5 \cdot a\right)\\ \mathbf{if}\;y5 \leq -1.9 \cdot 10^{+101}:\\ \;\;\;\;t\_6\\ \mathbf{elif}\;y5 \leq -2.05 \cdot 10^{-227}:\\ \;\;\;\;\left(\mathsf{fma}\left(t\_4, b, t\_1 \cdot y1\right) - t\_5 \cdot c\right) \cdot y4\\ \mathbf{elif}\;y5 \leq 1.9 \cdot 10^{-121}:\\ \;\;\;\;\left(\mathsf{fma}\left(-a, t\_3, t\_1 \cdot y4\right) + i \cdot t\_2\right) \cdot y1\\ \mathbf{elif}\;y5 \leq 5.5 \cdot 10^{-85}:\\ \;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, t\_4 \cdot y5\right) - t\_2 \cdot y1\right)\\ \mathbf{elif}\;y5 \leq 4.6 \cdot 10^{-11}:\\ \;\;\;\;\left(\mathsf{fma}\left(-k, \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right), \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot x\right) + y3 \cdot \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right)\right) \cdot y\\ \mathbf{elif}\;y5 \leq 2.05 \cdot 10^{+89}:\\ \;\;\;\;\left(\mathsf{fma}\left(-y5, t\_1, t\_3 \cdot c\right) - t\_2 \cdot b\right) \cdot y0\\ \mathbf{else}:\\ \;\;\;\;t\_6\\ \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 (fma y2 k (* (- j) y3)))
                          (t_2 (fma j x (* (- k) z)))
                          (t_3 (fma y2 x (* (- y3) z)))
                          (t_4 (fma j t (* (- k) y)))
                          (t_5 (fma y2 t (* (- y) y3)))
                          (t_6 (* (- y5) (- (fma t_4 i (* t_1 y0)) (* t_5 a)))))
                     (if (<= y5 -1.9e+101)
                       t_6
                       (if (<= y5 -2.05e-227)
                         (* (- (fma t_4 b (* t_1 y1)) (* t_5 c)) y4)
                         (if (<= y5 1.9e-121)
                           (* (+ (fma (- a) t_3 (* t_1 y4)) (* i t_2)) y1)
                           (if (<= y5 5.5e-85)
                             (* (- i) (- (fma (fma y x (* (- t) z)) c (* t_4 y5)) (* t_2 y1)))
                             (if (<= y5 4.6e-11)
                               (*
                                (+
                                 (fma (- k) (fma y4 b (* (- i) y5)) (* (fma b a (* (- c) i)) x))
                                 (* y3 (fma y4 c (* (- y5) a))))
                                y)
                               (if (<= y5 2.05e+89)
                                 (* (- (fma (- y5) t_1 (* t_3 c)) (* t_2 b)) y0)
                                 t_6))))))))
                  double code(double x, double y, double z, double t, double 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 = fma(y2, k, (-j * y3));
                  	double t_2 = fma(j, x, (-k * z));
                  	double t_3 = fma(y2, x, (-y3 * z));
                  	double t_4 = fma(j, t, (-k * y));
                  	double t_5 = fma(y2, t, (-y * y3));
                  	double t_6 = -y5 * (fma(t_4, i, (t_1 * y0)) - (t_5 * a));
                  	double tmp;
                  	if (y5 <= -1.9e+101) {
                  		tmp = t_6;
                  	} else if (y5 <= -2.05e-227) {
                  		tmp = (fma(t_4, b, (t_1 * y1)) - (t_5 * c)) * y4;
                  	} else if (y5 <= 1.9e-121) {
                  		tmp = (fma(-a, t_3, (t_1 * y4)) + (i * t_2)) * y1;
                  	} else if (y5 <= 5.5e-85) {
                  		tmp = -i * (fma(fma(y, x, (-t * z)), c, (t_4 * y5)) - (t_2 * y1));
                  	} else if (y5 <= 4.6e-11) {
                  		tmp = (fma(-k, fma(y4, b, (-i * y5)), (fma(b, a, (-c * i)) * x)) + (y3 * fma(y4, c, (-y5 * a)))) * y;
                  	} else if (y5 <= 2.05e+89) {
                  		tmp = (fma(-y5, t_1, (t_3 * c)) - (t_2 * b)) * y0;
                  	} else {
                  		tmp = t_6;
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                  	t_1 = fma(y2, k, Float64(Float64(-j) * y3))
                  	t_2 = fma(j, x, Float64(Float64(-k) * z))
                  	t_3 = fma(y2, x, Float64(Float64(-y3) * z))
                  	t_4 = fma(j, t, Float64(Float64(-k) * y))
                  	t_5 = fma(y2, t, Float64(Float64(-y) * y3))
                  	t_6 = Float64(Float64(-y5) * Float64(fma(t_4, i, Float64(t_1 * y0)) - Float64(t_5 * a)))
                  	tmp = 0.0
                  	if (y5 <= -1.9e+101)
                  		tmp = t_6;
                  	elseif (y5 <= -2.05e-227)
                  		tmp = Float64(Float64(fma(t_4, b, Float64(t_1 * y1)) - Float64(t_5 * c)) * y4);
                  	elseif (y5 <= 1.9e-121)
                  		tmp = Float64(Float64(fma(Float64(-a), t_3, Float64(t_1 * y4)) + Float64(i * t_2)) * y1);
                  	elseif (y5 <= 5.5e-85)
                  		tmp = Float64(Float64(-i) * Float64(fma(fma(y, x, Float64(Float64(-t) * z)), c, Float64(t_4 * y5)) - Float64(t_2 * y1)));
                  	elseif (y5 <= 4.6e-11)
                  		tmp = Float64(Float64(fma(Float64(-k), fma(y4, b, Float64(Float64(-i) * y5)), Float64(fma(b, a, Float64(Float64(-c) * i)) * x)) + Float64(y3 * fma(y4, c, Float64(Float64(-y5) * a)))) * y);
                  	elseif (y5 <= 2.05e+89)
                  		tmp = Float64(Float64(fma(Float64(-y5), t_1, Float64(t_3 * c)) - Float64(t_2 * b)) * y0);
                  	else
                  		tmp = t_6;
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y2 * x + N[((-y3) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[((-y5) * N[(N[(t$95$4 * i + N[(t$95$1 * y0), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.9e+101], t$95$6, If[LessEqual[y5, -2.05e-227], N[(N[(N[(t$95$4 * b + N[(t$95$1 * y1), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y5, 1.9e-121], N[(N[(N[((-a) * t$95$3 + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] + N[(i * t$95$2), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y5, 5.5e-85], N[((-i) * N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * c + N[(t$95$4 * y5), $MachinePrecision]), $MachinePrecision] - N[(t$95$2 * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 4.6e-11], N[(N[(N[((-k) * N[(y4 * b + N[((-i) * y5), $MachinePrecision]), $MachinePrecision] + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(y4 * c + N[((-y5) * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y5, 2.05e+89], N[(N[(N[((-y5) * t$95$1 + N[(t$95$3 * c), $MachinePrecision]), $MachinePrecision] - N[(t$95$2 * b), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], t$95$6]]]]]]]]]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\
                  t_2 := \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\\
                  t_3 := \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right)\\
                  t_4 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
                  t_5 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\
                  t_6 := \left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_4, i, t\_1 \cdot y0\right) - t\_5 \cdot a\right)\\
                  \mathbf{if}\;y5 \leq -1.9 \cdot 10^{+101}:\\
                  \;\;\;\;t\_6\\
                  
                  \mathbf{elif}\;y5 \leq -2.05 \cdot 10^{-227}:\\
                  \;\;\;\;\left(\mathsf{fma}\left(t\_4, b, t\_1 \cdot y1\right) - t\_5 \cdot c\right) \cdot y4\\
                  
                  \mathbf{elif}\;y5 \leq 1.9 \cdot 10^{-121}:\\
                  \;\;\;\;\left(\mathsf{fma}\left(-a, t\_3, t\_1 \cdot y4\right) + i \cdot t\_2\right) \cdot y1\\
                  
                  \mathbf{elif}\;y5 \leq 5.5 \cdot 10^{-85}:\\
                  \;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, t\_4 \cdot y5\right) - t\_2 \cdot y1\right)\\
                  
                  \mathbf{elif}\;y5 \leq 4.6 \cdot 10^{-11}:\\
                  \;\;\;\;\left(\mathsf{fma}\left(-k, \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right), \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot x\right) + y3 \cdot \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right)\right) \cdot y\\
                  
                  \mathbf{elif}\;y5 \leq 2.05 \cdot 10^{+89}:\\
                  \;\;\;\;\left(\mathsf{fma}\left(-y5, t\_1, t\_3 \cdot c\right) - t\_2 \cdot b\right) \cdot y0\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_6\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 6 regimes
                  2. if y5 < -1.8999999999999999e101 or 2.04999999999999993e89 < y5

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

                      \[\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)} \]
                    4. Step-by-step derivation
                      1. Applied rewrites67.4%

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

                      if -1.8999999999999999e101 < y5 < -2.05000000000000005e-227

                      1. Initial program 46.2%

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

                        \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                      4. Step-by-step derivation
                        1. Applied rewrites60.7%

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

                        if -2.05000000000000005e-227 < y5 < 1.9e-121

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

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

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

                        if 1.9e-121 < y5 < 5.4999999999999997e-85

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

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

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

                        if 5.4999999999999997e-85 < y5 < 4.60000000000000027e-11

                        1. Initial program 22.2%

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

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

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

                        if 4.60000000000000027e-11 < y5 < 2.04999999999999993e89

                        1. Initial program 34.5%

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

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

                          \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y5, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right) \cdot c\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot b\right) \cdot y0} \]
                      5. Recombined 6 regimes into one program.
                      6. Final simplification63.2%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -1.9 \cdot 10^{+101}:\\ \;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)\\ \mathbf{elif}\;y5 \leq -2.05 \cdot 10^{-227}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\ \mathbf{elif}\;y5 \leq 1.9 \cdot 10^{-121}:\\ \;\;\;\;\left(\mathsf{fma}\left(-a, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y4\right) + i \cdot \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\right) \cdot y1\\ \mathbf{elif}\;y5 \leq 5.5 \cdot 10^{-85}:\\ \;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)\\ \mathbf{elif}\;y5 \leq 4.6 \cdot 10^{-11}:\\ \;\;\;\;\left(\mathsf{fma}\left(-k, \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right), \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot x\right) + y3 \cdot \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right)\right) \cdot y\\ \mathbf{elif}\;y5 \leq 2.05 \cdot 10^{+89}:\\ \;\;\;\;\left(\mathsf{fma}\left(-y5, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right) \cdot c\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot b\right) \cdot y0\\ \mathbf{else}:\\ \;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)\\ \end{array} \]
                      7. Add Preprocessing

                      Alternative 4: 40.4% accurate, 2.1× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right)\\ t_2 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\ t_3 := \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\\ \mathbf{if}\;y2 \leq -1.4 \cdot 10^{+29}:\\ \;\;\;\;k \cdot \left(y2 \cdot t\_3\right)\\ \mathbf{elif}\;y2 \leq -1 \cdot 10^{-108}:\\ \;\;\;\;\left(\mathsf{fma}\left(t\_2, b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\ \mathbf{elif}\;y2 \leq 3.5 \cdot 10^{-249}:\\ \;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, t\_2 \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)\\ \mathbf{elif}\;y2 \leq 8.2 \cdot 10^{-38}:\\ \;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, t\_1 \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot y\right)\\ \mathbf{elif}\;y2 \leq 2.25 \cdot 10^{+70}:\\ \;\;\;\;\left(\mathsf{fma}\left(t\_1, y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(k, t\_3, x \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right) \cdot y2\\ \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 (fma y0 c (* (- y1) a)))
                              (t_2 (fma j t (* (- k) y)))
                              (t_3 (fma (- y0) y5 (* y1 y4))))
                         (if (<= y2 -1.4e+29)
                           (* k (* y2 t_3))
                           (if (<= y2 -1e-108)
                             (*
                              (-
                               (fma t_2 b (* (fma y2 k (* (- j) y3)) y1))
                               (* (fma y2 t (* (- y) y3)) c))
                              y4)
                             (if (<= y2 3.5e-249)
                               (*
                                (- i)
                                (-
                                 (fma (fma y x (* (- t) z)) c (* t_2 y5))
                                 (* (fma j x (* (- k) z)) y1)))
                               (if (<= y2 8.2e-38)
                                 (*
                                  (- y3)
                                  (-
                                   (fma (fma y4 y1 (* (- y0) y5)) j (* t_1 z))
                                   (* (fma y4 c (* (- y5) a)) y)))
                                 (if (<= y2 2.25e+70)
                                   (*
                                    (-
                                     (fma t_1 y2 (* (fma b a (* (- c) i)) y))
                                     (* (fma y0 b (* (- i) y1)) j))
                                    x)
                                   (* (fma k t_3 (* x (fma -1.0 (* a y1) (* c y0)))) y2))))))))
                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                      	double t_1 = fma(y0, c, (-y1 * a));
                      	double t_2 = fma(j, t, (-k * y));
                      	double t_3 = fma(-y0, y5, (y1 * y4));
                      	double tmp;
                      	if (y2 <= -1.4e+29) {
                      		tmp = k * (y2 * t_3);
                      	} else if (y2 <= -1e-108) {
                      		tmp = (fma(t_2, b, (fma(y2, k, (-j * y3)) * y1)) - (fma(y2, t, (-y * y3)) * c)) * y4;
                      	} else if (y2 <= 3.5e-249) {
                      		tmp = -i * (fma(fma(y, x, (-t * z)), c, (t_2 * y5)) - (fma(j, x, (-k * z)) * y1));
                      	} else if (y2 <= 8.2e-38) {
                      		tmp = -y3 * (fma(fma(y4, y1, (-y0 * y5)), j, (t_1 * z)) - (fma(y4, c, (-y5 * a)) * y));
                      	} else if (y2 <= 2.25e+70) {
                      		tmp = (fma(t_1, y2, (fma(b, a, (-c * i)) * y)) - (fma(y0, b, (-i * y1)) * j)) * x;
                      	} else {
                      		tmp = fma(k, t_3, (x * fma(-1.0, (a * y1), (c * y0)))) * y2;
                      	}
                      	return tmp;
                      }
                      
                      function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                      	t_1 = fma(y0, c, Float64(Float64(-y1) * a))
                      	t_2 = fma(j, t, Float64(Float64(-k) * y))
                      	t_3 = fma(Float64(-y0), y5, Float64(y1 * y4))
                      	tmp = 0.0
                      	if (y2 <= -1.4e+29)
                      		tmp = Float64(k * Float64(y2 * t_3));
                      	elseif (y2 <= -1e-108)
                      		tmp = Float64(Float64(fma(t_2, b, Float64(fma(y2, k, Float64(Float64(-j) * y3)) * y1)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * c)) * y4);
                      	elseif (y2 <= 3.5e-249)
                      		tmp = Float64(Float64(-i) * Float64(fma(fma(y, x, Float64(Float64(-t) * z)), c, Float64(t_2 * y5)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y1)));
                      	elseif (y2 <= 8.2e-38)
                      		tmp = Float64(Float64(-y3) * Float64(fma(fma(y4, y1, Float64(Float64(-y0) * y5)), j, Float64(t_1 * z)) - Float64(fma(y4, c, Float64(Float64(-y5) * a)) * y)));
                      	elseif (y2 <= 2.25e+70)
                      		tmp = Float64(Float64(fma(t_1, y2, Float64(fma(b, a, Float64(Float64(-c) * i)) * y)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * j)) * x);
                      	else
                      		tmp = Float64(fma(k, t_3, Float64(x * fma(-1.0, Float64(a * y1), Float64(c * y0)))) * y2);
                      	end
                      	return tmp
                      end
                      
                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * c + N[((-y1) * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.4e+29], N[(k * N[(y2 * t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1e-108], N[(N[(N[(t$95$2 * b + N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y2, 3.5e-249], N[((-i) * N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * c + N[(t$95$2 * y5), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 8.2e-38], N[((-y3) * N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * j + N[(t$95$1 * z), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * c + N[((-y5) * a), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.25e+70], N[(N[(N[(t$95$1 * y2 + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[(k * t$95$3 + N[(x * N[(-1.0 * N[(a * y1), $MachinePrecision] + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]]]]]]]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right)\\
                      t_2 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
                      t_3 := \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\\
                      \mathbf{if}\;y2 \leq -1.4 \cdot 10^{+29}:\\
                      \;\;\;\;k \cdot \left(y2 \cdot t\_3\right)\\
                      
                      \mathbf{elif}\;y2 \leq -1 \cdot 10^{-108}:\\
                      \;\;\;\;\left(\mathsf{fma}\left(t\_2, b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\
                      
                      \mathbf{elif}\;y2 \leq 3.5 \cdot 10^{-249}:\\
                      \;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, t\_2 \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)\\
                      
                      \mathbf{elif}\;y2 \leq 8.2 \cdot 10^{-38}:\\
                      \;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, t\_1 \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot y\right)\\
                      
                      \mathbf{elif}\;y2 \leq 2.25 \cdot 10^{+70}:\\
                      \;\;\;\;\left(\mathsf{fma}\left(t\_1, y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\mathsf{fma}\left(k, t\_3, x \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right) \cdot y2\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 6 regimes
                      2. if y2 < -1.4e29

                        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

                          \[\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. Step-by-step derivation
                          1. Applied rewrites50.6%

                            \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2} \]
                          2. Taylor expanded in k around inf

                            \[\leadsto k \cdot \color{blue}{\left(y2 \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right)} \]
                          3. Step-by-step derivation
                            1. Applied rewrites57.4%

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

                            if -1.4e29 < y2 < -1.00000000000000004e-108

                            1. Initial program 28.5%

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

                              \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                            4. Step-by-step derivation
                              1. Applied rewrites67.9%

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

                              if -1.00000000000000004e-108 < y2 < 3.50000000000000013e-249

                              1. Initial program 31.9%

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

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

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

                              if 3.50000000000000013e-249 < y2 < 8.1999999999999996e-38

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

                                \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
                              4. Step-by-step derivation
                                1. Applied rewrites56.8%

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

                                if 8.1999999999999996e-38 < y2 < 2.25e70

                                1. Initial program 39.4%

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

                                  \[\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)} \]
                                4. Step-by-step derivation
                                  1. Applied rewrites66.4%

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

                                  if 2.25e70 < y2

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

                                    \[\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. Step-by-step derivation
                                    1. Applied rewrites57.9%

                                      \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2} \]
                                    2. Taylor expanded in t around 0

                                      \[\leadsto \left(k \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right) + x \cdot \left(-1 \cdot \left(a \cdot y1\right) + c \cdot y0\right)\right) \cdot y2 \]
                                    3. Step-by-step derivation
                                      1. Applied rewrites58.6%

                                        \[\leadsto \mathsf{fma}\left(k, \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right), x \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right) \cdot y2 \]
                                    4. Recombined 6 regimes into one program.
                                    5. Add Preprocessing

                                    Alternative 5: 36.6% accurate, 2.1× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y3 \leq -2.4 \cdot 10^{+123}:\\ \;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\ \mathbf{elif}\;y3 \leq -9.5 \cdot 10^{-267}:\\ \;\;\;\;\mathsf{fma}\left(k, \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right), x \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right) \cdot y2\\ \mathbf{elif}\;y3 \leq 4.1 \cdot 10^{-154}:\\ \;\;\;\;\left(j \cdot \mathsf{fma}\left(-i, y5, b \cdot y4\right)\right) \cdot t\\ \mathbf{elif}\;y3 \leq 6 \cdot 10^{-63}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2\\ \mathbf{elif}\;y3 \leq 2.15 \cdot 10^{+240}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\ \mathbf{else}:\\ \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                     :precision binary64
                                     (if (<= y3 -2.4e+123)
                                       (* (* y3 (fma y1 z (* (- y) y5))) a)
                                       (if (<= y3 -9.5e-267)
                                         (*
                                          (fma k (fma (- y0) y5 (* y1 y4)) (* x (fma -1.0 (* a y1) (* c y0))))
                                          y2)
                                         (if (<= y3 4.1e-154)
                                           (* (* j (fma (- i) y5 (* b y4))) t)
                                           (if (<= y3 6e-63)
                                             (*
                                              (-
                                               (fma (fma y4 y1 (* (- y0) y5)) k (* (fma y0 c (* (- y1) a)) x))
                                               (* (fma y4 c (* (- y5) a)) t))
                                              y2)
                                             (if (<= y3 2.15e+240)
                                               (*
                                                (-
                                                 (fma (fma j t (* (- k) y)) b (* (fma y2 k (* (- j) y3)) y1))
                                                 (* (fma y2 t (* (- y) y3)) c))
                                                y4)
                                               (* y3 (* y5 (fma j y0 (* (- a) y))))))))))
                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                    	double tmp;
                                    	if (y3 <= -2.4e+123) {
                                    		tmp = (y3 * fma(y1, z, (-y * y5))) * a;
                                    	} else if (y3 <= -9.5e-267) {
                                    		tmp = fma(k, fma(-y0, y5, (y1 * y4)), (x * fma(-1.0, (a * y1), (c * y0)))) * y2;
                                    	} else if (y3 <= 4.1e-154) {
                                    		tmp = (j * fma(-i, y5, (b * y4))) * t;
                                    	} else if (y3 <= 6e-63) {
                                    		tmp = (fma(fma(y4, y1, (-y0 * y5)), k, (fma(y0, c, (-y1 * a)) * x)) - (fma(y4, c, (-y5 * a)) * t)) * y2;
                                    	} else if (y3 <= 2.15e+240) {
                                    		tmp = (fma(fma(j, t, (-k * y)), b, (fma(y2, k, (-j * y3)) * y1)) - (fma(y2, t, (-y * y3)) * c)) * y4;
                                    	} else {
                                    		tmp = y3 * (y5 * fma(j, y0, (-a * y)));
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                    	tmp = 0.0
                                    	if (y3 <= -2.4e+123)
                                    		tmp = Float64(Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))) * a);
                                    	elseif (y3 <= -9.5e-267)
                                    		tmp = Float64(fma(k, fma(Float64(-y0), y5, Float64(y1 * y4)), Float64(x * fma(-1.0, Float64(a * y1), Float64(c * y0)))) * y2);
                                    	elseif (y3 <= 4.1e-154)
                                    		tmp = Float64(Float64(j * fma(Float64(-i), y5, Float64(b * y4))) * t);
                                    	elseif (y3 <= 6e-63)
                                    		tmp = Float64(Float64(fma(fma(y4, y1, Float64(Float64(-y0) * y5)), k, Float64(fma(y0, c, Float64(Float64(-y1) * a)) * x)) - Float64(fma(y4, c, Float64(Float64(-y5) * a)) * t)) * y2);
                                    	elseif (y3 <= 2.15e+240)
                                    		tmp = Float64(Float64(fma(fma(j, t, Float64(Float64(-k) * y)), b, Float64(fma(y2, k, Float64(Float64(-j) * y3)) * y1)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * c)) * y4);
                                    	else
                                    		tmp = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y))));
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -2.4e+123], N[(N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y3, -9.5e-267], N[(N[(k * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision] + N[(x * N[(-1.0 * N[(a * y1), $MachinePrecision] + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y3, 4.1e-154], N[(N[(j * N[((-i) * y5 + N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y3, 6e-63], N[(N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * k + N[(N[(y0 * c + N[((-y1) * a), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * c + N[((-y5) * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y3, 2.15e+240], N[(N[(N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * b + N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;y3 \leq -2.4 \cdot 10^{+123}:\\
                                    \;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\
                                    
                                    \mathbf{elif}\;y3 \leq -9.5 \cdot 10^{-267}:\\
                                    \;\;\;\;\mathsf{fma}\left(k, \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right), x \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right) \cdot y2\\
                                    
                                    \mathbf{elif}\;y3 \leq 4.1 \cdot 10^{-154}:\\
                                    \;\;\;\;\left(j \cdot \mathsf{fma}\left(-i, y5, b \cdot y4\right)\right) \cdot t\\
                                    
                                    \mathbf{elif}\;y3 \leq 6 \cdot 10^{-63}:\\
                                    \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2\\
                                    
                                    \mathbf{elif}\;y3 \leq 2.15 \cdot 10^{+240}:\\
                                    \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 6 regimes
                                    2. if y3 < -2.39999999999999989e123

                                      1. Initial program 30.2%

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

                                        \[\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)} \]
                                      4. Step-by-step derivation
                                        1. Applied rewrites37.9%

                                          \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                        2. Taylor expanded in y3 around inf

                                          \[\leadsto \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right) \cdot a \]
                                        3. Step-by-step derivation
                                          1. Applied rewrites59.0%

                                            \[\leadsto \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a \]

                                          if -2.39999999999999989e123 < y3 < -9.49999999999999985e-267

                                          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

                                            \[\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. Step-by-step derivation
                                            1. Applied rewrites48.6%

                                              \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2} \]
                                            2. Taylor expanded in t around 0

                                              \[\leadsto \left(k \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right) + x \cdot \left(-1 \cdot \left(a \cdot y1\right) + c \cdot y0\right)\right) \cdot y2 \]
                                            3. Step-by-step derivation
                                              1. Applied rewrites57.3%

                                                \[\leadsto \mathsf{fma}\left(k, \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right), x \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right) \cdot y2 \]

                                              if -9.49999999999999985e-267 < y3 < 4.1e-154

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

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

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

                                                \[\leadsto \left(j \cdot \left(-1 \cdot \left(i \cdot y5\right) + b \cdot y4\right)\right) \cdot t \]
                                              6. Step-by-step derivation
                                                1. Applied rewrites54.7%

                                                  \[\leadsto \left(j \cdot \mathsf{fma}\left(-i, y5, b \cdot y4\right)\right) \cdot t \]

                                                if 4.1e-154 < y3 < 5.99999999999999959e-63

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

                                                  \[\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. Step-by-step derivation
                                                  1. Applied rewrites74.9%

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

                                                  if 5.99999999999999959e-63 < y3 < 2.15e240

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

                                                    \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                  4. Step-by-step derivation
                                                    1. Applied rewrites55.6%

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

                                                    if 2.15e240 < y3

                                                    1. Initial program 18.8%

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

                                                      \[\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)} \]
                                                    4. Step-by-step derivation
                                                      1. Applied rewrites62.4%

                                                        \[\leadsto \color{blue}{\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)} \]
                                                      2. Taylor expanded in y3 around -inf

                                                        \[\leadsto y3 \cdot \color{blue}{\left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)} \]
                                                      3. Step-by-step derivation
                                                        1. Applied rewrites62.6%

                                                          \[\leadsto y3 \cdot \color{blue}{\left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)} \]
                                                      4. Recombined 6 regimes into one program.
                                                      5. Add Preprocessing

                                                      Alternative 6: 35.7% accurate, 2.1× speedup?

                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y3 \leq -2.4 \cdot 10^{+123}:\\ \;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\ \mathbf{elif}\;y3 \leq -9.5 \cdot 10^{-267}:\\ \;\;\;\;\mathsf{fma}\left(k, \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right), x \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right) \cdot y2\\ \mathbf{elif}\;y3 \leq 2.6 \cdot 10^{-198}:\\ \;\;\;\;\left(j \cdot \mathsf{fma}\left(-i, y5, b \cdot y4\right)\right) \cdot t\\ \mathbf{elif}\;y3 \leq 6.5 \cdot 10^{-63}:\\ \;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \mathsf{fma}\left(k, y0, \left(-a\right) \cdot t\right)\right)\\ \mathbf{elif}\;y3 \leq 2.15 \cdot 10^{+240}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\ \mathbf{else}:\\ \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\ \end{array} \end{array} \]
                                                      (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                       :precision binary64
                                                       (if (<= y3 -2.4e+123)
                                                         (* (* y3 (fma y1 z (* (- y) y5))) a)
                                                         (if (<= y3 -9.5e-267)
                                                           (*
                                                            (fma k (fma (- y0) y5 (* y1 y4)) (* x (fma -1.0 (* a y1) (* c y0))))
                                                            y2)
                                                           (if (<= y3 2.6e-198)
                                                             (* (* j (fma (- i) y5 (* b y4))) t)
                                                             (if (<= y3 6.5e-63)
                                                               (* (- y5) (* y2 (fma k y0 (* (- a) t))))
                                                               (if (<= y3 2.15e+240)
                                                                 (*
                                                                  (-
                                                                   (fma (fma j t (* (- k) y)) b (* (fma y2 k (* (- j) y3)) y1))
                                                                   (* (fma y2 t (* (- y) y3)) c))
                                                                  y4)
                                                                 (* y3 (* y5 (fma j y0 (* (- a) y))))))))))
                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                      	double tmp;
                                                      	if (y3 <= -2.4e+123) {
                                                      		tmp = (y3 * fma(y1, z, (-y * y5))) * a;
                                                      	} else if (y3 <= -9.5e-267) {
                                                      		tmp = fma(k, fma(-y0, y5, (y1 * y4)), (x * fma(-1.0, (a * y1), (c * y0)))) * y2;
                                                      	} else if (y3 <= 2.6e-198) {
                                                      		tmp = (j * fma(-i, y5, (b * y4))) * t;
                                                      	} else if (y3 <= 6.5e-63) {
                                                      		tmp = -y5 * (y2 * fma(k, y0, (-a * t)));
                                                      	} else if (y3 <= 2.15e+240) {
                                                      		tmp = (fma(fma(j, t, (-k * y)), b, (fma(y2, k, (-j * y3)) * y1)) - (fma(y2, t, (-y * y3)) * c)) * y4;
                                                      	} else {
                                                      		tmp = y3 * (y5 * fma(j, y0, (-a * y)));
                                                      	}
                                                      	return tmp;
                                                      }
                                                      
                                                      function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                      	tmp = 0.0
                                                      	if (y3 <= -2.4e+123)
                                                      		tmp = Float64(Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))) * a);
                                                      	elseif (y3 <= -9.5e-267)
                                                      		tmp = Float64(fma(k, fma(Float64(-y0), y5, Float64(y1 * y4)), Float64(x * fma(-1.0, Float64(a * y1), Float64(c * y0)))) * y2);
                                                      	elseif (y3 <= 2.6e-198)
                                                      		tmp = Float64(Float64(j * fma(Float64(-i), y5, Float64(b * y4))) * t);
                                                      	elseif (y3 <= 6.5e-63)
                                                      		tmp = Float64(Float64(-y5) * Float64(y2 * fma(k, y0, Float64(Float64(-a) * t))));
                                                      	elseif (y3 <= 2.15e+240)
                                                      		tmp = Float64(Float64(fma(fma(j, t, Float64(Float64(-k) * y)), b, Float64(fma(y2, k, Float64(Float64(-j) * y3)) * y1)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * c)) * y4);
                                                      	else
                                                      		tmp = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y))));
                                                      	end
                                                      	return tmp
                                                      end
                                                      
                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -2.4e+123], N[(N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y3, -9.5e-267], N[(N[(k * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision] + N[(x * N[(-1.0 * N[(a * y1), $MachinePrecision] + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y3, 2.6e-198], N[(N[(j * N[((-i) * y5 + N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y3, 6.5e-63], N[((-y5) * N[(y2 * N[(k * y0 + N[((-a) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.15e+240], N[(N[(N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * b + N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \begin{array}{l}
                                                      \mathbf{if}\;y3 \leq -2.4 \cdot 10^{+123}:\\
                                                      \;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\
                                                      
                                                      \mathbf{elif}\;y3 \leq -9.5 \cdot 10^{-267}:\\
                                                      \;\;\;\;\mathsf{fma}\left(k, \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right), x \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right) \cdot y2\\
                                                      
                                                      \mathbf{elif}\;y3 \leq 2.6 \cdot 10^{-198}:\\
                                                      \;\;\;\;\left(j \cdot \mathsf{fma}\left(-i, y5, b \cdot y4\right)\right) \cdot t\\
                                                      
                                                      \mathbf{elif}\;y3 \leq 6.5 \cdot 10^{-63}:\\
                                                      \;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \mathsf{fma}\left(k, y0, \left(-a\right) \cdot t\right)\right)\\
                                                      
                                                      \mathbf{elif}\;y3 \leq 2.15 \cdot 10^{+240}:\\
                                                      \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 6 regimes
                                                      2. if y3 < -2.39999999999999989e123

                                                        1. Initial program 30.2%

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

                                                          \[\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)} \]
                                                        4. Step-by-step derivation
                                                          1. Applied rewrites37.9%

                                                            \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                          2. Taylor expanded in y3 around inf

                                                            \[\leadsto \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right) \cdot a \]
                                                          3. Step-by-step derivation
                                                            1. Applied rewrites59.0%

                                                              \[\leadsto \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a \]

                                                            if -2.39999999999999989e123 < y3 < -9.49999999999999985e-267

                                                            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

                                                              \[\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. Step-by-step derivation
                                                              1. Applied rewrites48.6%

                                                                \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2} \]
                                                              2. Taylor expanded in t around 0

                                                                \[\leadsto \left(k \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right) + x \cdot \left(-1 \cdot \left(a \cdot y1\right) + c \cdot y0\right)\right) \cdot y2 \]
                                                              3. Step-by-step derivation
                                                                1. Applied rewrites57.3%

                                                                  \[\leadsto \mathsf{fma}\left(k, \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right), x \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right) \cdot y2 \]

                                                                if -9.49999999999999985e-267 < y3 < 2.60000000000000007e-198

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

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

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

                                                                  \[\leadsto \left(j \cdot \left(-1 \cdot \left(i \cdot y5\right) + b \cdot y4\right)\right) \cdot t \]
                                                                6. Step-by-step derivation
                                                                  1. Applied rewrites59.4%

                                                                    \[\leadsto \left(j \cdot \mathsf{fma}\left(-i, y5, b \cdot y4\right)\right) \cdot t \]

                                                                  if 2.60000000000000007e-198 < y3 < 6.4999999999999998e-63

                                                                  1. Initial program 43.2%

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

                                                                    \[\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)} \]
                                                                  4. Step-by-step derivation
                                                                    1. Applied rewrites56.2%

                                                                      \[\leadsto \color{blue}{\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)} \]
                                                                    2. Taylor expanded in y2 around inf

                                                                      \[\leadsto \left(-y5\right) \cdot \left(y2 \cdot \color{blue}{\left(k \cdot y0 - a \cdot t\right)}\right) \]
                                                                    3. Step-by-step derivation
                                                                      1. Applied rewrites56.9%

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

                                                                      if 6.4999999999999998e-63 < y3 < 2.15e240

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

                                                                        \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                      4. Step-by-step derivation
                                                                        1. Applied rewrites55.6%

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

                                                                        if 2.15e240 < y3

                                                                        1. Initial program 18.8%

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

                                                                          \[\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)} \]
                                                                        4. Step-by-step derivation
                                                                          1. Applied rewrites62.4%

                                                                            \[\leadsto \color{blue}{\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)} \]
                                                                          2. Taylor expanded in y3 around -inf

                                                                            \[\leadsto y3 \cdot \color{blue}{\left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)} \]
                                                                          3. Step-by-step derivation
                                                                            1. Applied rewrites62.6%

                                                                              \[\leadsto y3 \cdot \color{blue}{\left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)} \]
                                                                          4. Recombined 6 regimes into one program.
                                                                          5. Add Preprocessing

                                                                          Alternative 7: 45.2% accurate, 2.2× speedup?

                                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\ t_2 := \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\\ t_3 := \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right)\\ t_4 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\ t_5 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\ t_6 := \left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_4, i, t\_1 \cdot y0\right) - t\_5 \cdot a\right)\\ \mathbf{if}\;y5 \leq -1.9 \cdot 10^{+101}:\\ \;\;\;\;t\_6\\ \mathbf{elif}\;y5 \leq -2.05 \cdot 10^{-227}:\\ \;\;\;\;\left(\mathsf{fma}\left(t\_4, b, t\_1 \cdot y1\right) - t\_5 \cdot c\right) \cdot y4\\ \mathbf{elif}\;y5 \leq 3.35 \cdot 10^{-108}:\\ \;\;\;\;\left(\mathsf{fma}\left(-a, t\_3, t\_1 \cdot y4\right) + i \cdot t\_2\right) \cdot y1\\ \mathbf{elif}\;y5 \leq 2.05 \cdot 10^{+89}:\\ \;\;\;\;\left(\mathsf{fma}\left(-y5, t\_1, t\_3 \cdot c\right) - t\_2 \cdot b\right) \cdot y0\\ \mathbf{else}:\\ \;\;\;\;t\_6\\ \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 (fma y2 k (* (- j) y3)))
                                                                                  (t_2 (fma j x (* (- k) z)))
                                                                                  (t_3 (fma y2 x (* (- y3) z)))
                                                                                  (t_4 (fma j t (* (- k) y)))
                                                                                  (t_5 (fma y2 t (* (- y) y3)))
                                                                                  (t_6 (* (- y5) (- (fma t_4 i (* t_1 y0)) (* t_5 a)))))
                                                                             (if (<= y5 -1.9e+101)
                                                                               t_6
                                                                               (if (<= y5 -2.05e-227)
                                                                                 (* (- (fma t_4 b (* t_1 y1)) (* t_5 c)) y4)
                                                                                 (if (<= y5 3.35e-108)
                                                                                   (* (+ (fma (- a) t_3 (* t_1 y4)) (* i t_2)) y1)
                                                                                   (if (<= y5 2.05e+89)
                                                                                     (* (- (fma (- y5) t_1 (* t_3 c)) (* t_2 b)) y0)
                                                                                     t_6))))))
                                                                          double code(double x, double y, double z, double t, double 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 = fma(y2, k, (-j * y3));
                                                                          	double t_2 = fma(j, x, (-k * z));
                                                                          	double t_3 = fma(y2, x, (-y3 * z));
                                                                          	double t_4 = fma(j, t, (-k * y));
                                                                          	double t_5 = fma(y2, t, (-y * y3));
                                                                          	double t_6 = -y5 * (fma(t_4, i, (t_1 * y0)) - (t_5 * a));
                                                                          	double tmp;
                                                                          	if (y5 <= -1.9e+101) {
                                                                          		tmp = t_6;
                                                                          	} else if (y5 <= -2.05e-227) {
                                                                          		tmp = (fma(t_4, b, (t_1 * y1)) - (t_5 * c)) * y4;
                                                                          	} else if (y5 <= 3.35e-108) {
                                                                          		tmp = (fma(-a, t_3, (t_1 * y4)) + (i * t_2)) * y1;
                                                                          	} else if (y5 <= 2.05e+89) {
                                                                          		tmp = (fma(-y5, t_1, (t_3 * c)) - (t_2 * b)) * y0;
                                                                          	} else {
                                                                          		tmp = t_6;
                                                                          	}
                                                                          	return tmp;
                                                                          }
                                                                          
                                                                          function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                          	t_1 = fma(y2, k, Float64(Float64(-j) * y3))
                                                                          	t_2 = fma(j, x, Float64(Float64(-k) * z))
                                                                          	t_3 = fma(y2, x, Float64(Float64(-y3) * z))
                                                                          	t_4 = fma(j, t, Float64(Float64(-k) * y))
                                                                          	t_5 = fma(y2, t, Float64(Float64(-y) * y3))
                                                                          	t_6 = Float64(Float64(-y5) * Float64(fma(t_4, i, Float64(t_1 * y0)) - Float64(t_5 * a)))
                                                                          	tmp = 0.0
                                                                          	if (y5 <= -1.9e+101)
                                                                          		tmp = t_6;
                                                                          	elseif (y5 <= -2.05e-227)
                                                                          		tmp = Float64(Float64(fma(t_4, b, Float64(t_1 * y1)) - Float64(t_5 * c)) * y4);
                                                                          	elseif (y5 <= 3.35e-108)
                                                                          		tmp = Float64(Float64(fma(Float64(-a), t_3, Float64(t_1 * y4)) + Float64(i * t_2)) * y1);
                                                                          	elseif (y5 <= 2.05e+89)
                                                                          		tmp = Float64(Float64(fma(Float64(-y5), t_1, Float64(t_3 * c)) - Float64(t_2 * b)) * y0);
                                                                          	else
                                                                          		tmp = t_6;
                                                                          	end
                                                                          	return tmp
                                                                          end
                                                                          
                                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y2 * x + N[((-y3) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[((-y5) * N[(N[(t$95$4 * i + N[(t$95$1 * y0), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.9e+101], t$95$6, If[LessEqual[y5, -2.05e-227], N[(N[(N[(t$95$4 * b + N[(t$95$1 * y1), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y5, 3.35e-108], N[(N[(N[((-a) * t$95$3 + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] + N[(i * t$95$2), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y5, 2.05e+89], N[(N[(N[((-y5) * t$95$1 + N[(t$95$3 * c), $MachinePrecision]), $MachinePrecision] - N[(t$95$2 * b), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], t$95$6]]]]]]]]]]
                                                                          
                                                                          \begin{array}{l}
                                                                          
                                                                          \\
                                                                          \begin{array}{l}
                                                                          t_1 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\
                                                                          t_2 := \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\\
                                                                          t_3 := \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right)\\
                                                                          t_4 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
                                                                          t_5 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\
                                                                          t_6 := \left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_4, i, t\_1 \cdot y0\right) - t\_5 \cdot a\right)\\
                                                                          \mathbf{if}\;y5 \leq -1.9 \cdot 10^{+101}:\\
                                                                          \;\;\;\;t\_6\\
                                                                          
                                                                          \mathbf{elif}\;y5 \leq -2.05 \cdot 10^{-227}:\\
                                                                          \;\;\;\;\left(\mathsf{fma}\left(t\_4, b, t\_1 \cdot y1\right) - t\_5 \cdot c\right) \cdot y4\\
                                                                          
                                                                          \mathbf{elif}\;y5 \leq 3.35 \cdot 10^{-108}:\\
                                                                          \;\;\;\;\left(\mathsf{fma}\left(-a, t\_3, t\_1 \cdot y4\right) + i \cdot t\_2\right) \cdot y1\\
                                                                          
                                                                          \mathbf{elif}\;y5 \leq 2.05 \cdot 10^{+89}:\\
                                                                          \;\;\;\;\left(\mathsf{fma}\left(-y5, t\_1, t\_3 \cdot c\right) - t\_2 \cdot b\right) \cdot y0\\
                                                                          
                                                                          \mathbf{else}:\\
                                                                          \;\;\;\;t\_6\\
                                                                          
                                                                          
                                                                          \end{array}
                                                                          \end{array}
                                                                          
                                                                          Derivation
                                                                          1. Split input into 4 regimes
                                                                          2. if y5 < -1.8999999999999999e101 or 2.04999999999999993e89 < y5

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

                                                                              \[\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)} \]
                                                                            4. Step-by-step derivation
                                                                              1. Applied rewrites67.4%

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

                                                                              if -1.8999999999999999e101 < y5 < -2.05000000000000005e-227

                                                                              1. Initial program 46.2%

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

                                                                                \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                              4. Step-by-step derivation
                                                                                1. Applied rewrites60.7%

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

                                                                                if -2.05000000000000005e-227 < y5 < 3.34999999999999991e-108

                                                                                1. Initial program 32.8%

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

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

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

                                                                                if 3.34999999999999991e-108 < y5 < 2.04999999999999993e89

                                                                                1. Initial program 30.3%

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

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

                                                                                  \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y5, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right) \cdot c\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot b\right) \cdot y0} \]
                                                                              5. Recombined 4 regimes into one program.
                                                                              6. Final simplification60.1%

                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -1.9 \cdot 10^{+101}:\\ \;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)\\ \mathbf{elif}\;y5 \leq -2.05 \cdot 10^{-227}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\ \mathbf{elif}\;y5 \leq 3.35 \cdot 10^{-108}:\\ \;\;\;\;\left(\mathsf{fma}\left(-a, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y4\right) + i \cdot \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\right) \cdot y1\\ \mathbf{elif}\;y5 \leq 2.05 \cdot 10^{+89}:\\ \;\;\;\;\left(\mathsf{fma}\left(-y5, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right) \cdot c\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot b\right) \cdot y0\\ \mathbf{else}:\\ \;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)\\ \end{array} \]
                                                                              7. Add Preprocessing

                                                                              Alternative 8: 45.0% accurate, 2.4× speedup?

                                                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\ t_2 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\ t_3 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\ t_4 := \left(\mathsf{fma}\left(t\_2, b, t\_1 \cdot y1\right) - t\_3 \cdot c\right) \cdot y4\\ \mathbf{if}\;y4 \leq -6.8 \cdot 10^{-27}:\\ \;\;\;\;t\_4\\ \mathbf{elif}\;y4 \leq 2.1 \cdot 10^{-246}:\\ \;\;\;\;\left(\mathsf{fma}\left(-y5, t\_1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right) \cdot c\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot b\right) \cdot y0\\ \mathbf{elif}\;y4 \leq 1.05 \cdot 10^{+89}:\\ \;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_2, i, t\_1 \cdot y0\right) - t\_3 \cdot a\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 (fma y2 k (* (- j) y3)))
                                                                                      (t_2 (fma j t (* (- k) y)))
                                                                                      (t_3 (fma y2 t (* (- y) y3)))
                                                                                      (t_4 (* (- (fma t_2 b (* t_1 y1)) (* t_3 c)) y4)))
                                                                                 (if (<= y4 -6.8e-27)
                                                                                   t_4
                                                                                   (if (<= y4 2.1e-246)
                                                                                     (*
                                                                                      (-
                                                                                       (fma (- y5) t_1 (* (fma y2 x (* (- y3) z)) c))
                                                                                       (* (fma j x (* (- k) z)) b))
                                                                                      y0)
                                                                                     (if (<= y4 1.05e+89)
                                                                                       (* (- y5) (- (fma t_2 i (* t_1 y0)) (* t_3 a)))
                                                                                       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 = fma(y2, k, (-j * y3));
                                                                              	double t_2 = fma(j, t, (-k * y));
                                                                              	double t_3 = fma(y2, t, (-y * y3));
                                                                              	double t_4 = (fma(t_2, b, (t_1 * y1)) - (t_3 * c)) * y4;
                                                                              	double tmp;
                                                                              	if (y4 <= -6.8e-27) {
                                                                              		tmp = t_4;
                                                                              	} else if (y4 <= 2.1e-246) {
                                                                              		tmp = (fma(-y5, t_1, (fma(y2, x, (-y3 * z)) * c)) - (fma(j, x, (-k * z)) * b)) * y0;
                                                                              	} else if (y4 <= 1.05e+89) {
                                                                              		tmp = -y5 * (fma(t_2, i, (t_1 * y0)) - (t_3 * a));
                                                                              	} 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 = fma(y2, k, Float64(Float64(-j) * y3))
                                                                              	t_2 = fma(j, t, Float64(Float64(-k) * y))
                                                                              	t_3 = fma(y2, t, Float64(Float64(-y) * y3))
                                                                              	t_4 = Float64(Float64(fma(t_2, b, Float64(t_1 * y1)) - Float64(t_3 * c)) * y4)
                                                                              	tmp = 0.0
                                                                              	if (y4 <= -6.8e-27)
                                                                              		tmp = t_4;
                                                                              	elseif (y4 <= 2.1e-246)
                                                                              		tmp = Float64(Float64(fma(Float64(-y5), t_1, Float64(fma(y2, x, Float64(Float64(-y3) * z)) * c)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * b)) * y0);
                                                                              	elseif (y4 <= 1.05e+89)
                                                                              		tmp = Float64(Float64(-y5) * Float64(fma(t_2, i, Float64(t_1 * y0)) - Float64(t_3 * a)));
                                                                              	else
                                                                              		tmp = t_4;
                                                                              	end
                                                                              	return tmp
                                                                              end
                                                                              
                                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(t$95$2 * b + N[(t$95$1 * y1), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]}, If[LessEqual[y4, -6.8e-27], t$95$4, If[LessEqual[y4, 2.1e-246], N[(N[(N[((-y5) * t$95$1 + N[(N[(y2 * x + N[((-y3) * z), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[y4, 1.05e+89], N[((-y5) * N[(N[(t$95$2 * i + N[(t$95$1 * y0), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]
                                                                              
                                                                              \begin{array}{l}
                                                                              
                                                                              \\
                                                                              \begin{array}{l}
                                                                              t_1 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\
                                                                              t_2 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
                                                                              t_3 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\
                                                                              t_4 := \left(\mathsf{fma}\left(t\_2, b, t\_1 \cdot y1\right) - t\_3 \cdot c\right) \cdot y4\\
                                                                              \mathbf{if}\;y4 \leq -6.8 \cdot 10^{-27}:\\
                                                                              \;\;\;\;t\_4\\
                                                                              
                                                                              \mathbf{elif}\;y4 \leq 2.1 \cdot 10^{-246}:\\
                                                                              \;\;\;\;\left(\mathsf{fma}\left(-y5, t\_1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right) \cdot c\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot b\right) \cdot y0\\
                                                                              
                                                                              \mathbf{elif}\;y4 \leq 1.05 \cdot 10^{+89}:\\
                                                                              \;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_2, i, t\_1 \cdot y0\right) - t\_3 \cdot a\right)\\
                                                                              
                                                                              \mathbf{else}:\\
                                                                              \;\;\;\;t\_4\\
                                                                              
                                                                              
                                                                              \end{array}
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Split input into 3 regimes
                                                                              2. if y4 < -6.7999999999999994e-27 or 1.04999999999999993e89 < y4

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

                                                                                  \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                4. Step-by-step derivation
                                                                                  1. Applied rewrites61.1%

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

                                                                                  if -6.7999999999999994e-27 < y4 < 2.09999999999999995e-246

                                                                                  1. Initial program 42.4%

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

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

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

                                                                                  if 2.09999999999999995e-246 < y4 < 1.04999999999999993e89

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

                                                                                    \[\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)} \]
                                                                                  4. Step-by-step derivation
                                                                                    1. Applied rewrites58.3%

                                                                                      \[\leadsto \color{blue}{\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)} \]
                                                                                  5. Recombined 3 regimes into one program.
                                                                                  6. Add Preprocessing

                                                                                  Alternative 9: 27.7% accurate, 3.4× speedup?

                                                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\ t_2 := y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\ \mathbf{if}\;k \leq -1.7 \cdot 10^{+104}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;k \leq -1.85 \cdot 10^{-9}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;k \leq -3 \cdot 10^{-113}:\\ \;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\ \mathbf{elif}\;k \leq 2.1 \cdot 10^{-224}:\\ \;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\ \mathbf{elif}\;k \leq 1.55 \cdot 10^{-41}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;k \leq 4.1 \cdot 10^{+135}:\\ \;\;\;\;\left(i \cdot \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\right) \cdot y1\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                  (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                   :precision binary64
                                                                                   (let* ((t_1 (* y1 (* (* k y2) y4)))
                                                                                          (t_2 (* y3 (* y5 (fma j y0 (* (- a) y))))))
                                                                                     (if (<= k -1.7e+104)
                                                                                       t_1
                                                                                       (if (<= k -1.85e-9)
                                                                                         t_2
                                                                                         (if (<= k -3e-113)
                                                                                           (* (* (* b x) y) a)
                                                                                           (if (<= k 2.1e-224)
                                                                                             (* (* i t) (fma c z (* (- j) y5)))
                                                                                             (if (<= k 1.55e-41)
                                                                                               t_2
                                                                                               (if (<= k 4.1e+135) (* (* i (fma j x (* (- k) z))) 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 = y1 * ((k * y2) * y4);
                                                                                  	double t_2 = y3 * (y5 * fma(j, y0, (-a * y)));
                                                                                  	double tmp;
                                                                                  	if (k <= -1.7e+104) {
                                                                                  		tmp = t_1;
                                                                                  	} else if (k <= -1.85e-9) {
                                                                                  		tmp = t_2;
                                                                                  	} else if (k <= -3e-113) {
                                                                                  		tmp = ((b * x) * y) * a;
                                                                                  	} else if (k <= 2.1e-224) {
                                                                                  		tmp = (i * t) * fma(c, z, (-j * y5));
                                                                                  	} else if (k <= 1.55e-41) {
                                                                                  		tmp = t_2;
                                                                                  	} else if (k <= 4.1e+135) {
                                                                                  		tmp = (i * fma(j, x, (-k * z))) * 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(y1 * Float64(Float64(k * y2) * y4))
                                                                                  	t_2 = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y))))
                                                                                  	tmp = 0.0
                                                                                  	if (k <= -1.7e+104)
                                                                                  		tmp = t_1;
                                                                                  	elseif (k <= -1.85e-9)
                                                                                  		tmp = t_2;
                                                                                  	elseif (k <= -3e-113)
                                                                                  		tmp = Float64(Float64(Float64(b * x) * y) * a);
                                                                                  	elseif (k <= 2.1e-224)
                                                                                  		tmp = Float64(Float64(i * t) * fma(c, z, Float64(Float64(-j) * y5)));
                                                                                  	elseif (k <= 1.55e-41)
                                                                                  		tmp = t_2;
                                                                                  	elseif (k <= 4.1e+135)
                                                                                  		tmp = Float64(Float64(i * fma(j, x, Float64(Float64(-k) * z))) * y1);
                                                                                  	else
                                                                                  		tmp = t_1;
                                                                                  	end
                                                                                  	return tmp
                                                                                  end
                                                                                  
                                                                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y1 * N[(N[(k * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.7e+104], t$95$1, If[LessEqual[k, -1.85e-9], t$95$2, If[LessEqual[k, -3e-113], N[(N[(N[(b * x), $MachinePrecision] * y), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 2.1e-224], N[(N[(i * t), $MachinePrecision] * N[(c * z + N[((-j) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.55e-41], t$95$2, If[LessEqual[k, 4.1e+135], N[(N[(i * N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], t$95$1]]]]]]]]
                                                                                  
                                                                                  \begin{array}{l}
                                                                                  
                                                                                  \\
                                                                                  \begin{array}{l}
                                                                                  t_1 := y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\
                                                                                  t_2 := y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
                                                                                  \mathbf{if}\;k \leq -1.7 \cdot 10^{+104}:\\
                                                                                  \;\;\;\;t\_1\\
                                                                                  
                                                                                  \mathbf{elif}\;k \leq -1.85 \cdot 10^{-9}:\\
                                                                                  \;\;\;\;t\_2\\
                                                                                  
                                                                                  \mathbf{elif}\;k \leq -3 \cdot 10^{-113}:\\
                                                                                  \;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\
                                                                                  
                                                                                  \mathbf{elif}\;k \leq 2.1 \cdot 10^{-224}:\\
                                                                                  \;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\
                                                                                  
                                                                                  \mathbf{elif}\;k \leq 1.55 \cdot 10^{-41}:\\
                                                                                  \;\;\;\;t\_2\\
                                                                                  
                                                                                  \mathbf{elif}\;k \leq 4.1 \cdot 10^{+135}:\\
                                                                                  \;\;\;\;\left(i \cdot \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\right) \cdot y1\\
                                                                                  
                                                                                  \mathbf{else}:\\
                                                                                  \;\;\;\;t\_1\\
                                                                                  
                                                                                  
                                                                                  \end{array}
                                                                                  \end{array}
                                                                                  
                                                                                  Derivation
                                                                                  1. Split input into 5 regimes
                                                                                  2. if k < -1.6999999999999998e104 or 4.1e135 < k

                                                                                    1. Initial program 26.5%

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

                                                                                      \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                    4. Step-by-step derivation
                                                                                      1. Applied rewrites49.8%

                                                                                        \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                      2. Taylor expanded in y1 around inf

                                                                                        \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(j \cdot y3\right) + k \cdot y2\right)\right)} \]
                                                                                      3. Step-by-step derivation
                                                                                        1. Applied rewrites50.1%

                                                                                          \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)} \]
                                                                                        2. Taylor expanded in j around 0

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

                                                                                            \[\leadsto y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right) \]

                                                                                          if -1.6999999999999998e104 < k < -1.85e-9 or 2.10000000000000006e-224 < k < 1.55e-41

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

                                                                                            \[\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)} \]
                                                                                          4. Step-by-step derivation
                                                                                            1. Applied rewrites49.9%

                                                                                              \[\leadsto \color{blue}{\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)} \]
                                                                                            2. Taylor expanded in y3 around -inf

                                                                                              \[\leadsto y3 \cdot \color{blue}{\left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)} \]
                                                                                            3. Step-by-step derivation
                                                                                              1. Applied rewrites42.7%

                                                                                                \[\leadsto y3 \cdot \color{blue}{\left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)} \]

                                                                                              if -1.85e-9 < k < -3.0000000000000001e-113

                                                                                              1. Initial program 18.3%

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

                                                                                                \[\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)} \]
                                                                                              4. Step-by-step derivation
                                                                                                1. Applied rewrites49.9%

                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                2. Taylor expanded in y around inf

                                                                                                  \[\leadsto \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \cdot a \]
                                                                                                3. Step-by-step derivation
                                                                                                  1. Applied rewrites55.0%

                                                                                                    \[\leadsto \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right) \cdot a \]
                                                                                                  2. Taylor expanded in x around inf

                                                                                                    \[\leadsto \left(b \cdot \left(x \cdot y\right)\right) \cdot a \]
                                                                                                  3. Step-by-step derivation
                                                                                                    1. Applied rewrites55.4%

                                                                                                      \[\leadsto \left(\left(b \cdot x\right) \cdot y\right) \cdot a \]

                                                                                                    if -3.0000000000000001e-113 < k < 2.10000000000000006e-224

                                                                                                    1. Initial program 46.2%

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

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

                                                                                                      \[\leadsto \color{blue}{\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)} \]
                                                                                                    5. Taylor expanded in y1 around inf

                                                                                                      \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \left(-1 \cdot \left(k \cdot z\right) + j \cdot x\right)\right)} \]
                                                                                                    6. Step-by-step derivation
                                                                                                      1. Applied rewrites18.9%

                                                                                                        \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)} \]
                                                                                                      2. Taylor expanded in t around -inf

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

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

                                                                                                        if 1.55e-41 < k < 4.1e135

                                                                                                        1. Initial program 34.4%

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

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

                                                                                                          \[\leadsto \color{blue}{\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)} \]
                                                                                                        5. Taylor expanded in y1 around inf

                                                                                                          \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \left(-1 \cdot \left(k \cdot z\right) + j \cdot x\right)\right)} \]
                                                                                                        6. Step-by-step derivation
                                                                                                          1. Applied rewrites38.3%

                                                                                                            \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)} \]
                                                                                                          2. Step-by-step derivation
                                                                                                            1. Applied rewrites40.8%

                                                                                                              \[\leadsto \left(i \cdot \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\right) \cdot y1 \]
                                                                                                          3. Recombined 5 regimes into one program.
                                                                                                          4. Final simplification44.1%

                                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq -1.7 \cdot 10^{+104}:\\ \;\;\;\;y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\ \mathbf{elif}\;k \leq -1.85 \cdot 10^{-9}:\\ \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\ \mathbf{elif}\;k \leq -3 \cdot 10^{-113}:\\ \;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\ \mathbf{elif}\;k \leq 2.1 \cdot 10^{-224}:\\ \;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\ \mathbf{elif}\;k \leq 1.55 \cdot 10^{-41}:\\ \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\ \mathbf{elif}\;k \leq 4.1 \cdot 10^{+135}:\\ \;\;\;\;\left(i \cdot \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\right) \cdot y1\\ \mathbf{else}:\\ \;\;\;\;y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\ \end{array} \]
                                                                                                          5. Add Preprocessing

                                                                                                          Alternative 10: 33.1% accurate, 3.5× speedup?

                                                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y3 \leq -2.4 \cdot 10^{+123}:\\ \;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\ \mathbf{elif}\;y3 \leq -9.5 \cdot 10^{-267}:\\ \;\;\;\;\mathsf{fma}\left(k, \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right), x \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right) \cdot y2\\ \mathbf{elif}\;y3 \leq 2.6 \cdot 10^{-198}:\\ \;\;\;\;\left(j \cdot \mathsf{fma}\left(-i, y5, b \cdot y4\right)\right) \cdot t\\ \mathbf{elif}\;y3 \leq 6.5 \cdot 10^{-63}:\\ \;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \mathsf{fma}\left(k, y0, \left(-a\right) \cdot t\right)\right)\\ \mathbf{elif}\;y3 \leq 1.2 \cdot 10^{+238}:\\ \;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\ \end{array} \end{array} \]
                                                                                                          (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                           :precision binary64
                                                                                                           (if (<= y3 -2.4e+123)
                                                                                                             (* (* y3 (fma y1 z (* (- y) y5))) a)
                                                                                                             (if (<= y3 -9.5e-267)
                                                                                                               (*
                                                                                                                (fma k (fma (- y0) y5 (* y1 y4)) (* x (fma -1.0 (* a y1) (* c y0))))
                                                                                                                y2)
                                                                                                               (if (<= y3 2.6e-198)
                                                                                                                 (* (* j (fma (- i) y5 (* b y4))) t)
                                                                                                                 (if (<= y3 6.5e-63)
                                                                                                                   (* (- y5) (* y2 (fma k y0 (* (- a) t))))
                                                                                                                   (if (<= y3 1.2e+238)
                                                                                                                     (* b (* y4 (fma (- k) y (* j t))))
                                                                                                                     (* y3 (* y5 (fma j y0 (* (- a) y))))))))))
                                                                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                          	double tmp;
                                                                                                          	if (y3 <= -2.4e+123) {
                                                                                                          		tmp = (y3 * fma(y1, z, (-y * y5))) * a;
                                                                                                          	} else if (y3 <= -9.5e-267) {
                                                                                                          		tmp = fma(k, fma(-y0, y5, (y1 * y4)), (x * fma(-1.0, (a * y1), (c * y0)))) * y2;
                                                                                                          	} else if (y3 <= 2.6e-198) {
                                                                                                          		tmp = (j * fma(-i, y5, (b * y4))) * t;
                                                                                                          	} else if (y3 <= 6.5e-63) {
                                                                                                          		tmp = -y5 * (y2 * fma(k, y0, (-a * t)));
                                                                                                          	} else if (y3 <= 1.2e+238) {
                                                                                                          		tmp = b * (y4 * fma(-k, y, (j * t)));
                                                                                                          	} else {
                                                                                                          		tmp = y3 * (y5 * fma(j, y0, (-a * y)));
                                                                                                          	}
                                                                                                          	return tmp;
                                                                                                          }
                                                                                                          
                                                                                                          function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                          	tmp = 0.0
                                                                                                          	if (y3 <= -2.4e+123)
                                                                                                          		tmp = Float64(Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))) * a);
                                                                                                          	elseif (y3 <= -9.5e-267)
                                                                                                          		tmp = Float64(fma(k, fma(Float64(-y0), y5, Float64(y1 * y4)), Float64(x * fma(-1.0, Float64(a * y1), Float64(c * y0)))) * y2);
                                                                                                          	elseif (y3 <= 2.6e-198)
                                                                                                          		tmp = Float64(Float64(j * fma(Float64(-i), y5, Float64(b * y4))) * t);
                                                                                                          	elseif (y3 <= 6.5e-63)
                                                                                                          		tmp = Float64(Float64(-y5) * Float64(y2 * fma(k, y0, Float64(Float64(-a) * t))));
                                                                                                          	elseif (y3 <= 1.2e+238)
                                                                                                          		tmp = Float64(b * Float64(y4 * fma(Float64(-k), y, Float64(j * t))));
                                                                                                          	else
                                                                                                          		tmp = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y))));
                                                                                                          	end
                                                                                                          	return tmp
                                                                                                          end
                                                                                                          
                                                                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -2.4e+123], N[(N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y3, -9.5e-267], N[(N[(k * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision] + N[(x * N[(-1.0 * N[(a * y1), $MachinePrecision] + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y3, 2.6e-198], N[(N[(j * N[((-i) * y5 + N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y3, 6.5e-63], N[((-y5) * N[(y2 * N[(k * y0 + N[((-a) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.2e+238], N[(b * N[(y4 * N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
                                                                                                          
                                                                                                          \begin{array}{l}
                                                                                                          
                                                                                                          \\
                                                                                                          \begin{array}{l}
                                                                                                          \mathbf{if}\;y3 \leq -2.4 \cdot 10^{+123}:\\
                                                                                                          \;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\
                                                                                                          
                                                                                                          \mathbf{elif}\;y3 \leq -9.5 \cdot 10^{-267}:\\
                                                                                                          \;\;\;\;\mathsf{fma}\left(k, \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right), x \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right) \cdot y2\\
                                                                                                          
                                                                                                          \mathbf{elif}\;y3 \leq 2.6 \cdot 10^{-198}:\\
                                                                                                          \;\;\;\;\left(j \cdot \mathsf{fma}\left(-i, y5, b \cdot y4\right)\right) \cdot t\\
                                                                                                          
                                                                                                          \mathbf{elif}\;y3 \leq 6.5 \cdot 10^{-63}:\\
                                                                                                          \;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \mathsf{fma}\left(k, y0, \left(-a\right) \cdot t\right)\right)\\
                                                                                                          
                                                                                                          \mathbf{elif}\;y3 \leq 1.2 \cdot 10^{+238}:\\
                                                                                                          \;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\
                                                                                                          
                                                                                                          \mathbf{else}:\\
                                                                                                          \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
                                                                                                          
                                                                                                          
                                                                                                          \end{array}
                                                                                                          \end{array}
                                                                                                          
                                                                                                          Derivation
                                                                                                          1. Split input into 6 regimes
                                                                                                          2. if y3 < -2.39999999999999989e123

                                                                                                            1. Initial program 30.2%

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

                                                                                                              \[\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)} \]
                                                                                                            4. Step-by-step derivation
                                                                                                              1. Applied rewrites37.9%

                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                              2. Taylor expanded in y3 around inf

                                                                                                                \[\leadsto \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right) \cdot a \]
                                                                                                              3. Step-by-step derivation
                                                                                                                1. Applied rewrites59.0%

                                                                                                                  \[\leadsto \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a \]

                                                                                                                if -2.39999999999999989e123 < y3 < -9.49999999999999985e-267

                                                                                                                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

                                                                                                                  \[\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. Step-by-step derivation
                                                                                                                  1. Applied rewrites48.6%

                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2} \]
                                                                                                                  2. Taylor expanded in t around 0

                                                                                                                    \[\leadsto \left(k \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right) + x \cdot \left(-1 \cdot \left(a \cdot y1\right) + c \cdot y0\right)\right) \cdot y2 \]
                                                                                                                  3. Step-by-step derivation
                                                                                                                    1. Applied rewrites57.3%

                                                                                                                      \[\leadsto \mathsf{fma}\left(k, \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right), x \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right) \cdot y2 \]

                                                                                                                    if -9.49999999999999985e-267 < y3 < 2.60000000000000007e-198

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

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

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

                                                                                                                      \[\leadsto \left(j \cdot \left(-1 \cdot \left(i \cdot y5\right) + b \cdot y4\right)\right) \cdot t \]
                                                                                                                    6. Step-by-step derivation
                                                                                                                      1. Applied rewrites59.4%

                                                                                                                        \[\leadsto \left(j \cdot \mathsf{fma}\left(-i, y5, b \cdot y4\right)\right) \cdot t \]

                                                                                                                      if 2.60000000000000007e-198 < y3 < 6.4999999999999998e-63

                                                                                                                      1. Initial program 43.2%

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

                                                                                                                        \[\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)} \]
                                                                                                                      4. Step-by-step derivation
                                                                                                                        1. Applied rewrites56.2%

                                                                                                                          \[\leadsto \color{blue}{\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)} \]
                                                                                                                        2. Taylor expanded in y2 around inf

                                                                                                                          \[\leadsto \left(-y5\right) \cdot \left(y2 \cdot \color{blue}{\left(k \cdot y0 - a \cdot t\right)}\right) \]
                                                                                                                        3. Step-by-step derivation
                                                                                                                          1. Applied rewrites56.9%

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

                                                                                                                          if 6.4999999999999998e-63 < y3 < 1.2e238

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

                                                                                                                            \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                          4. Step-by-step derivation
                                                                                                                            1. Applied rewrites55.6%

                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                            2. Taylor expanded in b around inf

                                                                                                                              \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(k \cdot y\right) + j \cdot t\right)\right)} \]
                                                                                                                            3. Step-by-step derivation
                                                                                                                              1. Applied rewrites42.7%

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

                                                                                                                              if 1.2e238 < y3

                                                                                                                              1. Initial program 18.8%

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

                                                                                                                                \[\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)} \]
                                                                                                                              4. Step-by-step derivation
                                                                                                                                1. Applied rewrites62.4%

                                                                                                                                  \[\leadsto \color{blue}{\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)} \]
                                                                                                                                2. Taylor expanded in y3 around -inf

                                                                                                                                  \[\leadsto y3 \cdot \color{blue}{\left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)} \]
                                                                                                                                3. Step-by-step derivation
                                                                                                                                  1. Applied rewrites62.6%

                                                                                                                                    \[\leadsto y3 \cdot \color{blue}{\left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)} \]
                                                                                                                                4. Recombined 6 regimes into one program.
                                                                                                                                5. Add Preprocessing

                                                                                                                                Alternative 11: 32.0% accurate, 3.5× speedup?

                                                                                                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(k \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right) \cdot y2\\ \mathbf{if}\;k \leq -4.6 \cdot 10^{+110}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;k \leq -4.4 \cdot 10^{-276}:\\ \;\;\;\;\left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b\\ \mathbf{elif}\;k \leq 3.4 \cdot 10^{-134}:\\ \;\;\;\;\left(y5 \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\right) \cdot a\\ \mathbf{elif}\;k \leq 1.15 \cdot 10^{+19}:\\ \;\;\;\;\left(c \cdot \mathsf{fma}\left(x, y0, \left(-t\right) \cdot y4\right)\right) \cdot y2\\ \mathbf{elif}\;k \leq 3 \cdot 10^{+133}:\\ \;\;\;\;k \cdot \left(y5 \cdot \mathsf{fma}\left(-1, y0 \cdot y2, i \cdot y\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 (* (* k (fma (- y0) y5 (* y1 y4))) y2)))
                                                                                                                                   (if (<= k -4.6e+110)
                                                                                                                                     t_1
                                                                                                                                     (if (<= k -4.4e-276)
                                                                                                                                       (* (* x (fma a y (* (- j) y0))) b)
                                                                                                                                       (if (<= k 3.4e-134)
                                                                                                                                         (* (* y5 (fma (- y) y3 (* t y2))) a)
                                                                                                                                         (if (<= k 1.15e+19)
                                                                                                                                           (* (* c (fma x y0 (* (- t) y4))) y2)
                                                                                                                                           (if (<= k 3e+133)
                                                                                                                                             (* k (* y5 (fma -1.0 (* y0 y2) (* i y))))
                                                                                                                                             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 = (k * fma(-y0, y5, (y1 * y4))) * y2;
                                                                                                                                	double tmp;
                                                                                                                                	if (k <= -4.6e+110) {
                                                                                                                                		tmp = t_1;
                                                                                                                                	} else if (k <= -4.4e-276) {
                                                                                                                                		tmp = (x * fma(a, y, (-j * y0))) * b;
                                                                                                                                	} else if (k <= 3.4e-134) {
                                                                                                                                		tmp = (y5 * fma(-y, y3, (t * y2))) * a;
                                                                                                                                	} else if (k <= 1.15e+19) {
                                                                                                                                		tmp = (c * fma(x, y0, (-t * y4))) * y2;
                                                                                                                                	} else if (k <= 3e+133) {
                                                                                                                                		tmp = k * (y5 * fma(-1.0, (y0 * y2), (i * y)));
                                                                                                                                	} 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(Float64(k * fma(Float64(-y0), y5, Float64(y1 * y4))) * y2)
                                                                                                                                	tmp = 0.0
                                                                                                                                	if (k <= -4.6e+110)
                                                                                                                                		tmp = t_1;
                                                                                                                                	elseif (k <= -4.4e-276)
                                                                                                                                		tmp = Float64(Float64(x * fma(a, y, Float64(Float64(-j) * y0))) * b);
                                                                                                                                	elseif (k <= 3.4e-134)
                                                                                                                                		tmp = Float64(Float64(y5 * fma(Float64(-y), y3, Float64(t * y2))) * a);
                                                                                                                                	elseif (k <= 1.15e+19)
                                                                                                                                		tmp = Float64(Float64(c * fma(x, y0, Float64(Float64(-t) * y4))) * y2);
                                                                                                                                	elseif (k <= 3e+133)
                                                                                                                                		tmp = Float64(k * Float64(y5 * fma(-1.0, Float64(y0 * y2), Float64(i * y))));
                                                                                                                                	else
                                                                                                                                		tmp = t_1;
                                                                                                                                	end
                                                                                                                                	return tmp
                                                                                                                                end
                                                                                                                                
                                                                                                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]}, If[LessEqual[k, -4.6e+110], t$95$1, If[LessEqual[k, -4.4e-276], N[(N[(x * N[(a * y + N[((-j) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[k, 3.4e-134], N[(N[(y5 * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 1.15e+19], N[(N[(c * N[(x * y0 + N[((-t) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[k, 3e+133], N[(k * N[(y5 * N[(-1.0 * N[(y0 * y2), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
                                                                                                                                
                                                                                                                                \begin{array}{l}
                                                                                                                                
                                                                                                                                \\
                                                                                                                                \begin{array}{l}
                                                                                                                                t_1 := \left(k \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right) \cdot y2\\
                                                                                                                                \mathbf{if}\;k \leq -4.6 \cdot 10^{+110}:\\
                                                                                                                                \;\;\;\;t\_1\\
                                                                                                                                
                                                                                                                                \mathbf{elif}\;k \leq -4.4 \cdot 10^{-276}:\\
                                                                                                                                \;\;\;\;\left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b\\
                                                                                                                                
                                                                                                                                \mathbf{elif}\;k \leq 3.4 \cdot 10^{-134}:\\
                                                                                                                                \;\;\;\;\left(y5 \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\right) \cdot a\\
                                                                                                                                
                                                                                                                                \mathbf{elif}\;k \leq 1.15 \cdot 10^{+19}:\\
                                                                                                                                \;\;\;\;\left(c \cdot \mathsf{fma}\left(x, y0, \left(-t\right) \cdot y4\right)\right) \cdot y2\\
                                                                                                                                
                                                                                                                                \mathbf{elif}\;k \leq 3 \cdot 10^{+133}:\\
                                                                                                                                \;\;\;\;k \cdot \left(y5 \cdot \mathsf{fma}\left(-1, y0 \cdot y2, i \cdot y\right)\right)\\
                                                                                                                                
                                                                                                                                \mathbf{else}:\\
                                                                                                                                \;\;\;\;t\_1\\
                                                                                                                                
                                                                                                                                
                                                                                                                                \end{array}
                                                                                                                                \end{array}
                                                                                                                                
                                                                                                                                Derivation
                                                                                                                                1. Split input into 5 regimes
                                                                                                                                2. if k < -4.6e110 or 3.00000000000000007e133 < k

                                                                                                                                  1. Initial program 27.2%

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

                                                                                                                                    \[\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. Step-by-step derivation
                                                                                                                                    1. Applied rewrites49.6%

                                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2} \]
                                                                                                                                    2. Taylor expanded in k around inf

                                                                                                                                      \[\leadsto \left(k \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right) \cdot y2 \]
                                                                                                                                    3. Step-by-step derivation
                                                                                                                                      1. Applied rewrites62.1%

                                                                                                                                        \[\leadsto \left(k \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right) \cdot y2 \]

                                                                                                                                      if -4.6e110 < k < -4.39999999999999961e-276

                                                                                                                                      1. Initial program 34.3%

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

                                                                                                                                        \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                      4. Step-by-step derivation
                                                                                                                                        1. Applied rewrites45.2%

                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b} \]
                                                                                                                                        2. Taylor expanded in x around inf

                                                                                                                                          \[\leadsto \left(x \cdot \left(a \cdot y - j \cdot y0\right)\right) \cdot b \]
                                                                                                                                        3. Step-by-step derivation
                                                                                                                                          1. Applied rewrites47.2%

                                                                                                                                            \[\leadsto \left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b \]

                                                                                                                                          if -4.39999999999999961e-276 < k < 3.39999999999999977e-134

                                                                                                                                          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 a around inf

                                                                                                                                            \[\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)} \]
                                                                                                                                          4. Step-by-step derivation
                                                                                                                                            1. Applied rewrites48.9%

                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                            2. Taylor expanded in y5 around inf

                                                                                                                                              \[\leadsto \left(y5 \cdot \left(-1 \cdot \left(y \cdot y3\right) + t \cdot y2\right)\right) \cdot a \]
                                                                                                                                            3. Step-by-step derivation
                                                                                                                                              1. Applied rewrites45.0%

                                                                                                                                                \[\leadsto \left(y5 \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\right) \cdot a \]

                                                                                                                                              if 3.39999999999999977e-134 < k < 1.15e19

                                                                                                                                              1. Initial program 38.8%

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

                                                                                                                                                \[\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. Step-by-step derivation
                                                                                                                                                1. Applied rewrites42.0%

                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2} \]
                                                                                                                                                2. Taylor expanded in c around inf

                                                                                                                                                  \[\leadsto \left(c \cdot \left(x \cdot y0 - t \cdot y4\right)\right) \cdot y2 \]
                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                  1. Applied rewrites50.9%

                                                                                                                                                    \[\leadsto \left(c \cdot \mathsf{fma}\left(x, y0, \left(-t\right) \cdot y4\right)\right) \cdot y2 \]

                                                                                                                                                  if 1.15e19 < k < 3.00000000000000007e133

                                                                                                                                                  1. Initial program 26.4%

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

                                                                                                                                                    \[\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)} \]
                                                                                                                                                  4. Step-by-step derivation
                                                                                                                                                    1. Applied rewrites43.7%

                                                                                                                                                      \[\leadsto \color{blue}{\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)} \]
                                                                                                                                                    2. Taylor expanded in k around -inf

                                                                                                                                                      \[\leadsto k \cdot \color{blue}{\left(y5 \cdot \left(-1 \cdot \left(y0 \cdot y2\right) + i \cdot y\right)\right)} \]
                                                                                                                                                    3. Step-by-step derivation
                                                                                                                                                      1. Applied rewrites44.7%

                                                                                                                                                        \[\leadsto k \cdot \color{blue}{\left(y5 \cdot \mathsf{fma}\left(-1, y0 \cdot y2, i \cdot y\right)\right)} \]
                                                                                                                                                    4. Recombined 5 regimes into one program.
                                                                                                                                                    5. Add Preprocessing

                                                                                                                                                    Alternative 12: 31.7% accurate, 3.7× speedup?

                                                                                                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(k \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right) \cdot y2\\ \mathbf{if}\;k \leq -4.6 \cdot 10^{+110}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;k \leq -4.4 \cdot 10^{-276}:\\ \;\;\;\;\left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b\\ \mathbf{elif}\;k \leq 3.4 \cdot 10^{-134}:\\ \;\;\;\;\left(y5 \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\right) \cdot a\\ \mathbf{elif}\;k \leq 1.95 \cdot 10^{+25}:\\ \;\;\;\;\left(c \cdot \mathsf{fma}\left(x, y0, \left(-t\right) \cdot y4\right)\right) \cdot y2\\ \mathbf{elif}\;k \leq 2.25 \cdot 10^{+133}:\\ \;\;\;\;i \cdot \left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \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 (* (* k (fma (- y0) y5 (* y1 y4))) y2)))
                                                                                                                                                       (if (<= k -4.6e+110)
                                                                                                                                                         t_1
                                                                                                                                                         (if (<= k -4.4e-276)
                                                                                                                                                           (* (* x (fma a y (* (- j) y0))) b)
                                                                                                                                                           (if (<= k 3.4e-134)
                                                                                                                                                             (* (* y5 (fma (- y) y3 (* t y2))) a)
                                                                                                                                                             (if (<= k 1.95e+25)
                                                                                                                                                               (* (* c (fma x y0 (* (- t) y4))) y2)
                                                                                                                                                               (if (<= k 2.25e+133) (* i (* z (fma c t (* (- k) 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 = (k * fma(-y0, y5, (y1 * y4))) * y2;
                                                                                                                                                    	double tmp;
                                                                                                                                                    	if (k <= -4.6e+110) {
                                                                                                                                                    		tmp = t_1;
                                                                                                                                                    	} else if (k <= -4.4e-276) {
                                                                                                                                                    		tmp = (x * fma(a, y, (-j * y0))) * b;
                                                                                                                                                    	} else if (k <= 3.4e-134) {
                                                                                                                                                    		tmp = (y5 * fma(-y, y3, (t * y2))) * a;
                                                                                                                                                    	} else if (k <= 1.95e+25) {
                                                                                                                                                    		tmp = (c * fma(x, y0, (-t * y4))) * y2;
                                                                                                                                                    	} else if (k <= 2.25e+133) {
                                                                                                                                                    		tmp = i * (z * fma(c, t, (-k * 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(Float64(k * fma(Float64(-y0), y5, Float64(y1 * y4))) * y2)
                                                                                                                                                    	tmp = 0.0
                                                                                                                                                    	if (k <= -4.6e+110)
                                                                                                                                                    		tmp = t_1;
                                                                                                                                                    	elseif (k <= -4.4e-276)
                                                                                                                                                    		tmp = Float64(Float64(x * fma(a, y, Float64(Float64(-j) * y0))) * b);
                                                                                                                                                    	elseif (k <= 3.4e-134)
                                                                                                                                                    		tmp = Float64(Float64(y5 * fma(Float64(-y), y3, Float64(t * y2))) * a);
                                                                                                                                                    	elseif (k <= 1.95e+25)
                                                                                                                                                    		tmp = Float64(Float64(c * fma(x, y0, Float64(Float64(-t) * y4))) * y2);
                                                                                                                                                    	elseif (k <= 2.25e+133)
                                                                                                                                                    		tmp = Float64(i * Float64(z * fma(c, t, Float64(Float64(-k) * y1))));
                                                                                                                                                    	else
                                                                                                                                                    		tmp = t_1;
                                                                                                                                                    	end
                                                                                                                                                    	return tmp
                                                                                                                                                    end
                                                                                                                                                    
                                                                                                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]}, If[LessEqual[k, -4.6e+110], t$95$1, If[LessEqual[k, -4.4e-276], N[(N[(x * N[(a * y + N[((-j) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[k, 3.4e-134], N[(N[(y5 * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 1.95e+25], N[(N[(c * N[(x * y0 + N[((-t) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[k, 2.25e+133], N[(i * N[(z * N[(c * t + N[((-k) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
                                                                                                                                                    
                                                                                                                                                    \begin{array}{l}
                                                                                                                                                    
                                                                                                                                                    \\
                                                                                                                                                    \begin{array}{l}
                                                                                                                                                    t_1 := \left(k \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right) \cdot y2\\
                                                                                                                                                    \mathbf{if}\;k \leq -4.6 \cdot 10^{+110}:\\
                                                                                                                                                    \;\;\;\;t\_1\\
                                                                                                                                                    
                                                                                                                                                    \mathbf{elif}\;k \leq -4.4 \cdot 10^{-276}:\\
                                                                                                                                                    \;\;\;\;\left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b\\
                                                                                                                                                    
                                                                                                                                                    \mathbf{elif}\;k \leq 3.4 \cdot 10^{-134}:\\
                                                                                                                                                    \;\;\;\;\left(y5 \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\right) \cdot a\\
                                                                                                                                                    
                                                                                                                                                    \mathbf{elif}\;k \leq 1.95 \cdot 10^{+25}:\\
                                                                                                                                                    \;\;\;\;\left(c \cdot \mathsf{fma}\left(x, y0, \left(-t\right) \cdot y4\right)\right) \cdot y2\\
                                                                                                                                                    
                                                                                                                                                    \mathbf{elif}\;k \leq 2.25 \cdot 10^{+133}:\\
                                                                                                                                                    \;\;\;\;i \cdot \left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \cdot y1\right)\right)\\
                                                                                                                                                    
                                                                                                                                                    \mathbf{else}:\\
                                                                                                                                                    \;\;\;\;t\_1\\
                                                                                                                                                    
                                                                                                                                                    
                                                                                                                                                    \end{array}
                                                                                                                                                    \end{array}
                                                                                                                                                    
                                                                                                                                                    Derivation
                                                                                                                                                    1. Split input into 5 regimes
                                                                                                                                                    2. if k < -4.6e110 or 2.24999999999999992e133 < k

                                                                                                                                                      1. Initial program 27.2%

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

                                                                                                                                                        \[\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. Step-by-step derivation
                                                                                                                                                        1. Applied rewrites49.6%

                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2} \]
                                                                                                                                                        2. Taylor expanded in k around inf

                                                                                                                                                          \[\leadsto \left(k \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right) \cdot y2 \]
                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                          1. Applied rewrites62.1%

                                                                                                                                                            \[\leadsto \left(k \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right) \cdot y2 \]

                                                                                                                                                          if -4.6e110 < k < -4.39999999999999961e-276

                                                                                                                                                          1. Initial program 34.3%

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

                                                                                                                                                            \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                          4. Step-by-step derivation
                                                                                                                                                            1. Applied rewrites45.2%

                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b} \]
                                                                                                                                                            2. Taylor expanded in x around inf

                                                                                                                                                              \[\leadsto \left(x \cdot \left(a \cdot y - j \cdot y0\right)\right) \cdot b \]
                                                                                                                                                            3. Step-by-step derivation
                                                                                                                                                              1. Applied rewrites47.2%

                                                                                                                                                                \[\leadsto \left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b \]

                                                                                                                                                              if -4.39999999999999961e-276 < k < 3.39999999999999977e-134

                                                                                                                                                              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 a around inf

                                                                                                                                                                \[\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)} \]
                                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                                1. Applied rewrites48.9%

                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                2. Taylor expanded in y5 around inf

                                                                                                                                                                  \[\leadsto \left(y5 \cdot \left(-1 \cdot \left(y \cdot y3\right) + t \cdot y2\right)\right) \cdot a \]
                                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                                  1. Applied rewrites45.0%

                                                                                                                                                                    \[\leadsto \left(y5 \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\right) \cdot a \]

                                                                                                                                                                  if 3.39999999999999977e-134 < k < 1.9500000000000001e25

                                                                                                                                                                  1. Initial program 40.5%

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

                                                                                                                                                                    \[\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. Step-by-step derivation
                                                                                                                                                                    1. Applied rewrites40.9%

                                                                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2} \]
                                                                                                                                                                    2. Taylor expanded in c around inf

                                                                                                                                                                      \[\leadsto \left(c \cdot \left(x \cdot y0 - t \cdot y4\right)\right) \cdot y2 \]
                                                                                                                                                                    3. Step-by-step derivation
                                                                                                                                                                      1. Applied rewrites49.6%

                                                                                                                                                                        \[\leadsto \left(c \cdot \mathsf{fma}\left(x, y0, \left(-t\right) \cdot y4\right)\right) \cdot y2 \]

                                                                                                                                                                      if 1.9500000000000001e25 < k < 2.24999999999999992e133

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

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

                                                                                                                                                                        \[\leadsto \color{blue}{\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)} \]
                                                                                                                                                                      5. Taylor expanded in z around -inf

                                                                                                                                                                        \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
                                                                                                                                                                      6. Step-by-step derivation
                                                                                                                                                                        1. Applied rewrites46.6%

                                                                                                                                                                          \[\leadsto i \cdot \color{blue}{\left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \cdot y1\right)\right)} \]
                                                                                                                                                                      7. Recombined 5 regimes into one program.
                                                                                                                                                                      8. Add Preprocessing

                                                                                                                                                                      Alternative 13: 29.4% accurate, 3.7× speedup?

                                                                                                                                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y3 \leq -2.3 \cdot 10^{+123}:\\ \;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\ \mathbf{elif}\;y3 \leq -1.8 \cdot 10^{-267}:\\ \;\;\;\;k \cdot \left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 2.15 \cdot 10^{-197}:\\ \;\;\;\;\left(j \cdot \mathsf{fma}\left(-i, y5, b \cdot y4\right)\right) \cdot t\\ \mathbf{elif}\;y3 \leq 4.05 \cdot 10^{-63}:\\ \;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\ \mathbf{elif}\;y3 \leq 1.2 \cdot 10^{+238}:\\ \;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\ \end{array} \end{array} \]
                                                                                                                                                                      (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                       :precision binary64
                                                                                                                                                                       (if (<= y3 -2.3e+123)
                                                                                                                                                                         (* (* y3 (fma y1 z (* (- y) y5))) a)
                                                                                                                                                                         (if (<= y3 -1.8e-267)
                                                                                                                                                                           (* k (* y2 (fma (- y0) y5 (* y1 y4))))
                                                                                                                                                                           (if (<= y3 2.15e-197)
                                                                                                                                                                             (* (* j (fma (- i) y5 (* b y4))) t)
                                                                                                                                                                             (if (<= y3 4.05e-63)
                                                                                                                                                                               (* (* a y5) (fma (- y) y3 (* t y2)))
                                                                                                                                                                               (if (<= y3 1.2e+238)
                                                                                                                                                                                 (* b (* y4 (fma (- k) y (* j t))))
                                                                                                                                                                                 (* y3 (* y5 (fma j y0 (* (- a) y))))))))))
                                                                                                                                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                      	double tmp;
                                                                                                                                                                      	if (y3 <= -2.3e+123) {
                                                                                                                                                                      		tmp = (y3 * fma(y1, z, (-y * y5))) * a;
                                                                                                                                                                      	} else if (y3 <= -1.8e-267) {
                                                                                                                                                                      		tmp = k * (y2 * fma(-y0, y5, (y1 * y4)));
                                                                                                                                                                      	} else if (y3 <= 2.15e-197) {
                                                                                                                                                                      		tmp = (j * fma(-i, y5, (b * y4))) * t;
                                                                                                                                                                      	} else if (y3 <= 4.05e-63) {
                                                                                                                                                                      		tmp = (a * y5) * fma(-y, y3, (t * y2));
                                                                                                                                                                      	} else if (y3 <= 1.2e+238) {
                                                                                                                                                                      		tmp = b * (y4 * fma(-k, y, (j * t)));
                                                                                                                                                                      	} else {
                                                                                                                                                                      		tmp = y3 * (y5 * fma(j, y0, (-a * y)));
                                                                                                                                                                      	}
                                                                                                                                                                      	return tmp;
                                                                                                                                                                      }
                                                                                                                                                                      
                                                                                                                                                                      function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                      	tmp = 0.0
                                                                                                                                                                      	if (y3 <= -2.3e+123)
                                                                                                                                                                      		tmp = Float64(Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))) * a);
                                                                                                                                                                      	elseif (y3 <= -1.8e-267)
                                                                                                                                                                      		tmp = Float64(k * Float64(y2 * fma(Float64(-y0), y5, Float64(y1 * y4))));
                                                                                                                                                                      	elseif (y3 <= 2.15e-197)
                                                                                                                                                                      		tmp = Float64(Float64(j * fma(Float64(-i), y5, Float64(b * y4))) * t);
                                                                                                                                                                      	elseif (y3 <= 4.05e-63)
                                                                                                                                                                      		tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * y2)));
                                                                                                                                                                      	elseif (y3 <= 1.2e+238)
                                                                                                                                                                      		tmp = Float64(b * Float64(y4 * fma(Float64(-k), y, Float64(j * t))));
                                                                                                                                                                      	else
                                                                                                                                                                      		tmp = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y))));
                                                                                                                                                                      	end
                                                                                                                                                                      	return tmp
                                                                                                                                                                      end
                                                                                                                                                                      
                                                                                                                                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -2.3e+123], N[(N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y3, -1.8e-267], N[(k * N[(y2 * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.15e-197], N[(N[(j * N[((-i) * y5 + N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y3, 4.05e-63], N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.2e+238], N[(b * N[(y4 * N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
                                                                                                                                                                      
                                                                                                                                                                      \begin{array}{l}
                                                                                                                                                                      
                                                                                                                                                                      \\
                                                                                                                                                                      \begin{array}{l}
                                                                                                                                                                      \mathbf{if}\;y3 \leq -2.3 \cdot 10^{+123}:\\
                                                                                                                                                                      \;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\
                                                                                                                                                                      
                                                                                                                                                                      \mathbf{elif}\;y3 \leq -1.8 \cdot 10^{-267}:\\
                                                                                                                                                                      \;\;\;\;k \cdot \left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right)\\
                                                                                                                                                                      
                                                                                                                                                                      \mathbf{elif}\;y3 \leq 2.15 \cdot 10^{-197}:\\
                                                                                                                                                                      \;\;\;\;\left(j \cdot \mathsf{fma}\left(-i, y5, b \cdot y4\right)\right) \cdot t\\
                                                                                                                                                                      
                                                                                                                                                                      \mathbf{elif}\;y3 \leq 4.05 \cdot 10^{-63}:\\
                                                                                                                                                                      \;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
                                                                                                                                                                      
                                                                                                                                                                      \mathbf{elif}\;y3 \leq 1.2 \cdot 10^{+238}:\\
                                                                                                                                                                      \;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\
                                                                                                                                                                      
                                                                                                                                                                      \mathbf{else}:\\
                                                                                                                                                                      \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
                                                                                                                                                                      
                                                                                                                                                                      
                                                                                                                                                                      \end{array}
                                                                                                                                                                      \end{array}
                                                                                                                                                                      
                                                                                                                                                                      Derivation
                                                                                                                                                                      1. Split input into 6 regimes
                                                                                                                                                                      2. if y3 < -2.2999999999999999e123

                                                                                                                                                                        1. Initial program 30.2%

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

                                                                                                                                                                          \[\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)} \]
                                                                                                                                                                        4. Step-by-step derivation
                                                                                                                                                                          1. Applied rewrites37.9%

                                                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                          2. Taylor expanded in y3 around inf

                                                                                                                                                                            \[\leadsto \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                          3. Step-by-step derivation
                                                                                                                                                                            1. Applied rewrites59.0%

                                                                                                                                                                              \[\leadsto \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a \]

                                                                                                                                                                            if -2.2999999999999999e123 < y3 < -1.8000000000000001e-267

                                                                                                                                                                            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

                                                                                                                                                                              \[\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. Step-by-step derivation
                                                                                                                                                                              1. Applied rewrites48.6%

                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2} \]
                                                                                                                                                                              2. Taylor expanded in k around inf

                                                                                                                                                                                \[\leadsto k \cdot \color{blue}{\left(y2 \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right)} \]
                                                                                                                                                                              3. Step-by-step derivation
                                                                                                                                                                                1. Applied rewrites47.9%

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

                                                                                                                                                                                if -1.8000000000000001e-267 < y3 < 2.15e-197

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

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

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

                                                                                                                                                                                  \[\leadsto \left(j \cdot \left(-1 \cdot \left(i \cdot y5\right) + b \cdot y4\right)\right) \cdot t \]
                                                                                                                                                                                6. Step-by-step derivation
                                                                                                                                                                                  1. Applied rewrites60.8%

                                                                                                                                                                                    \[\leadsto \left(j \cdot \mathsf{fma}\left(-i, y5, b \cdot y4\right)\right) \cdot t \]

                                                                                                                                                                                  if 2.15e-197 < y3 < 4.04999999999999975e-63

                                                                                                                                                                                  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 a around inf

                                                                                                                                                                                    \[\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)} \]
                                                                                                                                                                                  4. Step-by-step derivation
                                                                                                                                                                                    1. Applied rewrites56.3%

                                                                                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                    2. Taylor expanded in y around inf

                                                                                                                                                                                      \[\leadsto \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                    3. Step-by-step derivation
                                                                                                                                                                                      1. Applied rewrites25.6%

                                                                                                                                                                                        \[\leadsto \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                      2. Taylor expanded in y5 around inf

                                                                                                                                                                                        \[\leadsto a \cdot \color{blue}{\left(y5 \cdot \left(-1 \cdot \left(y \cdot y3\right) + t \cdot y2\right)\right)} \]
                                                                                                                                                                                      3. Step-by-step derivation
                                                                                                                                                                                        1. Applied rewrites49.2%

                                                                                                                                                                                          \[\leadsto \left(a \cdot y5\right) \cdot \color{blue}{\mathsf{fma}\left(-y, y3, t \cdot y2\right)} \]

                                                                                                                                                                                        if 4.04999999999999975e-63 < y3 < 1.2e238

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

                                                                                                                                                                                          \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                        4. Step-by-step derivation
                                                                                                                                                                                          1. Applied rewrites55.6%

                                                                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                          2. Taylor expanded in b around inf

                                                                                                                                                                                            \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(k \cdot y\right) + j \cdot t\right)\right)} \]
                                                                                                                                                                                          3. Step-by-step derivation
                                                                                                                                                                                            1. Applied rewrites42.7%

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

                                                                                                                                                                                            if 1.2e238 < y3

                                                                                                                                                                                            1. Initial program 18.8%

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

                                                                                                                                                                                              \[\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)} \]
                                                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                                                              1. Applied rewrites62.4%

                                                                                                                                                                                                \[\leadsto \color{blue}{\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)} \]
                                                                                                                                                                                              2. Taylor expanded in y3 around -inf

                                                                                                                                                                                                \[\leadsto y3 \cdot \color{blue}{\left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)} \]
                                                                                                                                                                                              3. Step-by-step derivation
                                                                                                                                                                                                1. Applied rewrites62.6%

                                                                                                                                                                                                  \[\leadsto y3 \cdot \color{blue}{\left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)} \]
                                                                                                                                                                                              4. Recombined 6 regimes into one program.
                                                                                                                                                                                              5. Add Preprocessing

                                                                                                                                                                                              Alternative 14: 29.5% accurate, 4.2× speedup?

                                                                                                                                                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y3 \leq -2.3 \cdot 10^{+123}:\\ \;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\ \mathbf{elif}\;y3 \leq 4.4 \cdot 10^{-196}:\\ \;\;\;\;k \cdot \left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right)\\ \mathbf{elif}\;y3 \leq 4.05 \cdot 10^{-63}:\\ \;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\ \mathbf{elif}\;y3 \leq 1.2 \cdot 10^{+238}:\\ \;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\ \end{array} \end{array} \]
                                                                                                                                                                                              (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                               :precision binary64
                                                                                                                                                                                               (if (<= y3 -2.3e+123)
                                                                                                                                                                                                 (* (* y3 (fma y1 z (* (- y) y5))) a)
                                                                                                                                                                                                 (if (<= y3 4.4e-196)
                                                                                                                                                                                                   (* k (* y2 (fma (- y0) y5 (* y1 y4))))
                                                                                                                                                                                                   (if (<= y3 4.05e-63)
                                                                                                                                                                                                     (* (* a y5) (fma (- y) y3 (* t y2)))
                                                                                                                                                                                                     (if (<= y3 1.2e+238)
                                                                                                                                                                                                       (* b (* y4 (fma (- k) y (* j t))))
                                                                                                                                                                                                       (* y3 (* y5 (fma j y0 (* (- a) y)))))))))
                                                                                                                                                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                              	double tmp;
                                                                                                                                                                                              	if (y3 <= -2.3e+123) {
                                                                                                                                                                                              		tmp = (y3 * fma(y1, z, (-y * y5))) * a;
                                                                                                                                                                                              	} else if (y3 <= 4.4e-196) {
                                                                                                                                                                                              		tmp = k * (y2 * fma(-y0, y5, (y1 * y4)));
                                                                                                                                                                                              	} else if (y3 <= 4.05e-63) {
                                                                                                                                                                                              		tmp = (a * y5) * fma(-y, y3, (t * y2));
                                                                                                                                                                                              	} else if (y3 <= 1.2e+238) {
                                                                                                                                                                                              		tmp = b * (y4 * fma(-k, y, (j * t)));
                                                                                                                                                                                              	} else {
                                                                                                                                                                                              		tmp = y3 * (y5 * fma(j, y0, (-a * y)));
                                                                                                                                                                                              	}
                                                                                                                                                                                              	return tmp;
                                                                                                                                                                                              }
                                                                                                                                                                                              
                                                                                                                                                                                              function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                              	tmp = 0.0
                                                                                                                                                                                              	if (y3 <= -2.3e+123)
                                                                                                                                                                                              		tmp = Float64(Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))) * a);
                                                                                                                                                                                              	elseif (y3 <= 4.4e-196)
                                                                                                                                                                                              		tmp = Float64(k * Float64(y2 * fma(Float64(-y0), y5, Float64(y1 * y4))));
                                                                                                                                                                                              	elseif (y3 <= 4.05e-63)
                                                                                                                                                                                              		tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * y2)));
                                                                                                                                                                                              	elseif (y3 <= 1.2e+238)
                                                                                                                                                                                              		tmp = Float64(b * Float64(y4 * fma(Float64(-k), y, Float64(j * t))));
                                                                                                                                                                                              	else
                                                                                                                                                                                              		tmp = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y))));
                                                                                                                                                                                              	end
                                                                                                                                                                                              	return tmp
                                                                                                                                                                                              end
                                                                                                                                                                                              
                                                                                                                                                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -2.3e+123], N[(N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y3, 4.4e-196], N[(k * N[(y2 * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.05e-63], N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.2e+238], N[(b * N[(y4 * N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
                                                                                                                                                                                              
                                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                                              
                                                                                                                                                                                              \\
                                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                                              \mathbf{if}\;y3 \leq -2.3 \cdot 10^{+123}:\\
                                                                                                                                                                                              \;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\
                                                                                                                                                                                              
                                                                                                                                                                                              \mathbf{elif}\;y3 \leq 4.4 \cdot 10^{-196}:\\
                                                                                                                                                                                              \;\;\;\;k \cdot \left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right)\\
                                                                                                                                                                                              
                                                                                                                                                                                              \mathbf{elif}\;y3 \leq 4.05 \cdot 10^{-63}:\\
                                                                                                                                                                                              \;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
                                                                                                                                                                                              
                                                                                                                                                                                              \mathbf{elif}\;y3 \leq 1.2 \cdot 10^{+238}:\\
                                                                                                                                                                                              \;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\
                                                                                                                                                                                              
                                                                                                                                                                                              \mathbf{else}:\\
                                                                                                                                                                                              \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
                                                                                                                                                                                              
                                                                                                                                                                                              
                                                                                                                                                                                              \end{array}
                                                                                                                                                                                              \end{array}
                                                                                                                                                                                              
                                                                                                                                                                                              Derivation
                                                                                                                                                                                              1. Split input into 5 regimes
                                                                                                                                                                                              2. if y3 < -2.2999999999999999e123

                                                                                                                                                                                                1. Initial program 30.2%

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

                                                                                                                                                                                                  \[\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)} \]
                                                                                                                                                                                                4. Step-by-step derivation
                                                                                                                                                                                                  1. Applied rewrites37.9%

                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                  2. Taylor expanded in y3 around inf

                                                                                                                                                                                                    \[\leadsto \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                                  3. Step-by-step derivation
                                                                                                                                                                                                    1. Applied rewrites59.0%

                                                                                                                                                                                                      \[\leadsto \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a \]

                                                                                                                                                                                                    if -2.2999999999999999e123 < y3 < 4.4000000000000003e-196

                                                                                                                                                                                                    1. Initial program 33.8%

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

                                                                                                                                                                                                      \[\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. Step-by-step derivation
                                                                                                                                                                                                      1. Applied rewrites40.3%

                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2} \]
                                                                                                                                                                                                      2. Taylor expanded in k around inf

                                                                                                                                                                                                        \[\leadsto k \cdot \color{blue}{\left(y2 \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right)} \]
                                                                                                                                                                                                      3. Step-by-step derivation
                                                                                                                                                                                                        1. Applied rewrites44.8%

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

                                                                                                                                                                                                        if 4.4000000000000003e-196 < y3 < 4.04999999999999975e-63

                                                                                                                                                                                                        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 a around inf

                                                                                                                                                                                                          \[\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)} \]
                                                                                                                                                                                                        4. Step-by-step derivation
                                                                                                                                                                                                          1. Applied rewrites56.3%

                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                          2. Taylor expanded in y around inf

                                                                                                                                                                                                            \[\leadsto \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                                          3. Step-by-step derivation
                                                                                                                                                                                                            1. Applied rewrites25.6%

                                                                                                                                                                                                              \[\leadsto \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                                            2. Taylor expanded in y5 around inf

                                                                                                                                                                                                              \[\leadsto a \cdot \color{blue}{\left(y5 \cdot \left(-1 \cdot \left(y \cdot y3\right) + t \cdot y2\right)\right)} \]
                                                                                                                                                                                                            3. Step-by-step derivation
                                                                                                                                                                                                              1. Applied rewrites49.2%

                                                                                                                                                                                                                \[\leadsto \left(a \cdot y5\right) \cdot \color{blue}{\mathsf{fma}\left(-y, y3, t \cdot y2\right)} \]

                                                                                                                                                                                                              if 4.04999999999999975e-63 < y3 < 1.2e238

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

                                                                                                                                                                                                                \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                                                                                1. Applied rewrites55.6%

                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                2. Taylor expanded in b around inf

                                                                                                                                                                                                                  \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(k \cdot y\right) + j \cdot t\right)\right)} \]
                                                                                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                                                                                  1. Applied rewrites42.7%

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

                                                                                                                                                                                                                  if 1.2e238 < y3

                                                                                                                                                                                                                  1. Initial program 18.8%

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

                                                                                                                                                                                                                    \[\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)} \]
                                                                                                                                                                                                                  4. Step-by-step derivation
                                                                                                                                                                                                                    1. Applied rewrites62.4%

                                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)} \]
                                                                                                                                                                                                                    2. Taylor expanded in y3 around -inf

                                                                                                                                                                                                                      \[\leadsto y3 \cdot \color{blue}{\left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)} \]
                                                                                                                                                                                                                    3. Step-by-step derivation
                                                                                                                                                                                                                      1. Applied rewrites62.6%

                                                                                                                                                                                                                        \[\leadsto y3 \cdot \color{blue}{\left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)} \]
                                                                                                                                                                                                                    4. Recombined 5 regimes into one program.
                                                                                                                                                                                                                    5. Add Preprocessing

                                                                                                                                                                                                                    Alternative 15: 27.2% accurate, 4.2× speedup?

                                                                                                                                                                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\ \mathbf{if}\;k \leq -1 \cdot 10^{+189}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;k \leq -2.2 \cdot 10^{+58}:\\ \;\;\;\;i \cdot \left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \cdot y1\right)\right)\\ \mathbf{elif}\;k \leq -3 \cdot 10^{-113}:\\ \;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\ \mathbf{elif}\;k \leq 1.1 \cdot 10^{+137}:\\ \;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                                                                                                                    (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                     :precision binary64
                                                                                                                                                                                                                     (let* ((t_1 (* y1 (* (* k y2) y4))))
                                                                                                                                                                                                                       (if (<= k -1e+189)
                                                                                                                                                                                                                         t_1
                                                                                                                                                                                                                         (if (<= k -2.2e+58)
                                                                                                                                                                                                                           (* i (* z (fma c t (* (- k) y1))))
                                                                                                                                                                                                                           (if (<= k -3e-113)
                                                                                                                                                                                                                             (* (* (* b x) y) a)
                                                                                                                                                                                                                             (if (<= k 1.1e+137) (* (* i t) (fma c z (* (- j) y5))) t_1))))))
                                                                                                                                                                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                    	double t_1 = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                    	double tmp;
                                                                                                                                                                                                                    	if (k <= -1e+189) {
                                                                                                                                                                                                                    		tmp = t_1;
                                                                                                                                                                                                                    	} else if (k <= -2.2e+58) {
                                                                                                                                                                                                                    		tmp = i * (z * fma(c, t, (-k * y1)));
                                                                                                                                                                                                                    	} else if (k <= -3e-113) {
                                                                                                                                                                                                                    		tmp = ((b * x) * y) * a;
                                                                                                                                                                                                                    	} else if (k <= 1.1e+137) {
                                                                                                                                                                                                                    		tmp = (i * t) * fma(c, z, (-j * y5));
                                                                                                                                                                                                                    	} else {
                                                                                                                                                                                                                    		tmp = t_1;
                                                                                                                                                                                                                    	}
                                                                                                                                                                                                                    	return tmp;
                                                                                                                                                                                                                    }
                                                                                                                                                                                                                    
                                                                                                                                                                                                                    function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                    	t_1 = Float64(y1 * Float64(Float64(k * y2) * y4))
                                                                                                                                                                                                                    	tmp = 0.0
                                                                                                                                                                                                                    	if (k <= -1e+189)
                                                                                                                                                                                                                    		tmp = t_1;
                                                                                                                                                                                                                    	elseif (k <= -2.2e+58)
                                                                                                                                                                                                                    		tmp = Float64(i * Float64(z * fma(c, t, Float64(Float64(-k) * y1))));
                                                                                                                                                                                                                    	elseif (k <= -3e-113)
                                                                                                                                                                                                                    		tmp = Float64(Float64(Float64(b * x) * y) * a);
                                                                                                                                                                                                                    	elseif (k <= 1.1e+137)
                                                                                                                                                                                                                    		tmp = Float64(Float64(i * t) * fma(c, z, Float64(Float64(-j) * y5)));
                                                                                                                                                                                                                    	else
                                                                                                                                                                                                                    		tmp = t_1;
                                                                                                                                                                                                                    	end
                                                                                                                                                                                                                    	return tmp
                                                                                                                                                                                                                    end
                                                                                                                                                                                                                    
                                                                                                                                                                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y1 * N[(N[(k * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1e+189], t$95$1, If[LessEqual[k, -2.2e+58], N[(i * N[(z * N[(c * t + N[((-k) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -3e-113], N[(N[(N[(b * x), $MachinePrecision] * y), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 1.1e+137], N[(N[(i * t), $MachinePrecision] * N[(c * z + N[((-j) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
                                                                                                                                                                                                                    
                                                                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                                                                    
                                                                                                                                                                                                                    \\
                                                                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                                                                    t_1 := y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\
                                                                                                                                                                                                                    \mathbf{if}\;k \leq -1 \cdot 10^{+189}:\\
                                                                                                                                                                                                                    \;\;\;\;t\_1\\
                                                                                                                                                                                                                    
                                                                                                                                                                                                                    \mathbf{elif}\;k \leq -2.2 \cdot 10^{+58}:\\
                                                                                                                                                                                                                    \;\;\;\;i \cdot \left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \cdot y1\right)\right)\\
                                                                                                                                                                                                                    
                                                                                                                                                                                                                    \mathbf{elif}\;k \leq -3 \cdot 10^{-113}:\\
                                                                                                                                                                                                                    \;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\
                                                                                                                                                                                                                    
                                                                                                                                                                                                                    \mathbf{elif}\;k \leq 1.1 \cdot 10^{+137}:\\
                                                                                                                                                                                                                    \;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\
                                                                                                                                                                                                                    
                                                                                                                                                                                                                    \mathbf{else}:\\
                                                                                                                                                                                                                    \;\;\;\;t\_1\\
                                                                                                                                                                                                                    
                                                                                                                                                                                                                    
                                                                                                                                                                                                                    \end{array}
                                                                                                                                                                                                                    \end{array}
                                                                                                                                                                                                                    
                                                                                                                                                                                                                    Derivation
                                                                                                                                                                                                                    1. Split input into 4 regimes
                                                                                                                                                                                                                    2. if k < -1e189 or 1.10000000000000008e137 < k

                                                                                                                                                                                                                      1. Initial program 23.8%

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

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

                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                        2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                          \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(j \cdot y3\right) + k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                                                                                          1. Applied rewrites56.2%

                                                                                                                                                                                                                            \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                          2. Taylor expanded in j around 0

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

                                                                                                                                                                                                                              \[\leadsto y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right) \]

                                                                                                                                                                                                                            if -1e189 < k < -2.2000000000000001e58

                                                                                                                                                                                                                            1. Initial program 33.3%

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

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

                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)} \]
                                                                                                                                                                                                                            5. Taylor expanded in z around -inf

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

                                                                                                                                                                                                                                \[\leadsto i \cdot \color{blue}{\left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \cdot y1\right)\right)} \]

                                                                                                                                                                                                                              if -2.2000000000000001e58 < k < -3.0000000000000001e-113

                                                                                                                                                                                                                              1. Initial program 20.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 a around inf

                                                                                                                                                                                                                                \[\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)} \]
                                                                                                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                                                                                                1. Applied rewrites51.4%

                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                                                2. Taylor expanded in y around inf

                                                                                                                                                                                                                                  \[\leadsto \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                                                                                                  1. Applied rewrites46.1%

                                                                                                                                                                                                                                    \[\leadsto \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                                                                  2. Taylor expanded in x around inf

                                                                                                                                                                                                                                    \[\leadsto \left(b \cdot \left(x \cdot y\right)\right) \cdot a \]
                                                                                                                                                                                                                                  3. Step-by-step derivation
                                                                                                                                                                                                                                    1. Applied rewrites43.8%

                                                                                                                                                                                                                                      \[\leadsto \left(\left(b \cdot x\right) \cdot y\right) \cdot a \]

                                                                                                                                                                                                                                    if -3.0000000000000001e-113 < k < 1.10000000000000008e137

                                                                                                                                                                                                                                    1. Initial program 39.6%

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

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

                                                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)} \]
                                                                                                                                                                                                                                    5. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                      \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \left(-1 \cdot \left(k \cdot z\right) + j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                    6. Step-by-step derivation
                                                                                                                                                                                                                                      1. Applied rewrites22.5%

                                                                                                                                                                                                                                        \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                      2. Taylor expanded in t around -inf

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

                                                                                                                                                                                                                                          \[\leadsto \left(i \cdot t\right) \cdot \color{blue}{\mathsf{fma}\left(c, z, -j \cdot y5\right)} \]
                                                                                                                                                                                                                                      4. Recombined 4 regimes into one program.
                                                                                                                                                                                                                                      5. Final simplification39.7%

                                                                                                                                                                                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq -1 \cdot 10^{+189}:\\ \;\;\;\;y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\ \mathbf{elif}\;k \leq -2.2 \cdot 10^{+58}:\\ \;\;\;\;i \cdot \left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \cdot y1\right)\right)\\ \mathbf{elif}\;k \leq -3 \cdot 10^{-113}:\\ \;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\ \mathbf{elif}\;k \leq 1.1 \cdot 10^{+137}:\\ \;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\ \mathbf{else}:\\ \;\;\;\;y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\ \end{array} \]
                                                                                                                                                                                                                                      6. Add Preprocessing

                                                                                                                                                                                                                                      Alternative 16: 31.5% accurate, 4.8× speedup?

                                                                                                                                                                                                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y2 \leq -7 \cdot 10^{+26}:\\ \;\;\;\;k \cdot \left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right)\\ \mathbf{elif}\;y2 \leq -1.05 \cdot 10^{-272}:\\ \;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\ \mathbf{elif}\;y2 \leq 3.6 \cdot 10^{-27}:\\ \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(c \cdot \mathsf{fma}\left(i, z, \left(-y2\right) \cdot y4\right)\right) \cdot t\\ \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 -7e+26)
                                                                                                                                                                                                                                         (* k (* y2 (fma (- y0) y5 (* y1 y4))))
                                                                                                                                                                                                                                         (if (<= y2 -1.05e-272)
                                                                                                                                                                                                                                           (* b (* y4 (fma (- k) y (* j t))))
                                                                                                                                                                                                                                           (if (<= y2 3.6e-27)
                                                                                                                                                                                                                                             (* y3 (* y5 (fma j y0 (* (- a) y))))
                                                                                                                                                                                                                                             (* (* c (fma i z (* (- y2) y4))) t)))))
                                                                                                                                                                                                                                      double code(double x, double y, double z, double t, double 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 <= -7e+26) {
                                                                                                                                                                                                                                      		tmp = k * (y2 * fma(-y0, y5, (y1 * y4)));
                                                                                                                                                                                                                                      	} else if (y2 <= -1.05e-272) {
                                                                                                                                                                                                                                      		tmp = b * (y4 * fma(-k, y, (j * t)));
                                                                                                                                                                                                                                      	} else if (y2 <= 3.6e-27) {
                                                                                                                                                                                                                                      		tmp = y3 * (y5 * fma(j, y0, (-a * y)));
                                                                                                                                                                                                                                      	} else {
                                                                                                                                                                                                                                      		tmp = (c * fma(i, z, (-y2 * y4))) * t;
                                                                                                                                                                                                                                      	}
                                                                                                                                                                                                                                      	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 <= -7e+26)
                                                                                                                                                                                                                                      		tmp = Float64(k * Float64(y2 * fma(Float64(-y0), y5, Float64(y1 * y4))));
                                                                                                                                                                                                                                      	elseif (y2 <= -1.05e-272)
                                                                                                                                                                                                                                      		tmp = Float64(b * Float64(y4 * fma(Float64(-k), y, Float64(j * t))));
                                                                                                                                                                                                                                      	elseif (y2 <= 3.6e-27)
                                                                                                                                                                                                                                      		tmp = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y))));
                                                                                                                                                                                                                                      	else
                                                                                                                                                                                                                                      		tmp = Float64(Float64(c * fma(i, z, Float64(Float64(-y2) * y4))) * t);
                                                                                                                                                                                                                                      	end
                                                                                                                                                                                                                                      	return tmp
                                                                                                                                                                                                                                      end
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -7e+26], N[(k * N[(y2 * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.05e-272], N[(b * N[(y4 * N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.6e-27], N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(c * N[(i * z + N[((-y2) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]]]
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      \begin{array}{l}
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      \\
                                                                                                                                                                                                                                      \begin{array}{l}
                                                                                                                                                                                                                                      \mathbf{if}\;y2 \leq -7 \cdot 10^{+26}:\\
                                                                                                                                                                                                                                      \;\;\;\;k \cdot \left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right)\\
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      \mathbf{elif}\;y2 \leq -1.05 \cdot 10^{-272}:\\
                                                                                                                                                                                                                                      \;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      \mathbf{elif}\;y2 \leq 3.6 \cdot 10^{-27}:\\
                                                                                                                                                                                                                                      \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      \mathbf{else}:\\
                                                                                                                                                                                                                                      \;\;\;\;\left(c \cdot \mathsf{fma}\left(i, z, \left(-y2\right) \cdot y4\right)\right) \cdot t\\
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      \end{array}
                                                                                                                                                                                                                                      \end{array}
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      Derivation
                                                                                                                                                                                                                                      1. Split input into 4 regimes
                                                                                                                                                                                                                                      2. if y2 < -6.9999999999999998e26

                                                                                                                                                                                                                                        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

                                                                                                                                                                                                                                          \[\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. Step-by-step derivation
                                                                                                                                                                                                                                          1. Applied rewrites50.6%

                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2} \]
                                                                                                                                                                                                                                          2. Taylor expanded in k around inf

                                                                                                                                                                                                                                            \[\leadsto k \cdot \color{blue}{\left(y2 \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right)} \]
                                                                                                                                                                                                                                          3. Step-by-step derivation
                                                                                                                                                                                                                                            1. Applied rewrites57.4%

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

                                                                                                                                                                                                                                            if -6.9999999999999998e26 < y2 < -1.04999999999999993e-272

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

                                                                                                                                                                                                                                              \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                                                                                                              1. Applied rewrites50.4%

                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                                              2. Taylor expanded in b around inf

                                                                                                                                                                                                                                                \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(k \cdot y\right) + j \cdot t\right)\right)} \]
                                                                                                                                                                                                                                              3. Step-by-step derivation
                                                                                                                                                                                                                                                1. Applied rewrites43.8%

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

                                                                                                                                                                                                                                                if -1.04999999999999993e-272 < y2 < 3.5999999999999999e-27

                                                                                                                                                                                                                                                1. Initial program 38.3%

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

                                                                                                                                                                                                                                                  \[\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)} \]
                                                                                                                                                                                                                                                4. Step-by-step derivation
                                                                                                                                                                                                                                                  1. Applied rewrites48.2%

                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)} \]
                                                                                                                                                                                                                                                  2. Taylor expanded in y3 around -inf

                                                                                                                                                                                                                                                    \[\leadsto y3 \cdot \color{blue}{\left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)} \]
                                                                                                                                                                                                                                                  3. Step-by-step derivation
                                                                                                                                                                                                                                                    1. Applied rewrites40.0%

                                                                                                                                                                                                                                                      \[\leadsto y3 \cdot \color{blue}{\left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)} \]

                                                                                                                                                                                                                                                    if 3.5999999999999999e-27 < 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 t around inf

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

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

                                                                                                                                                                                                                                                      \[\leadsto \left(c \cdot \left(i \cdot z - y2 \cdot y4\right)\right) \cdot t \]
                                                                                                                                                                                                                                                    6. Step-by-step derivation
                                                                                                                                                                                                                                                      1. Applied rewrites47.0%

                                                                                                                                                                                                                                                        \[\leadsto \left(c \cdot \mathsf{fma}\left(i, z, \left(-y2\right) \cdot y4\right)\right) \cdot t \]
                                                                                                                                                                                                                                                    7. Recombined 4 regimes into one program.
                                                                                                                                                                                                                                                    8. Add Preprocessing

                                                                                                                                                                                                                                                    Alternative 17: 31.0% accurate, 4.8× speedup?

                                                                                                                                                                                                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := k \cdot \left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right)\\ \mathbf{if}\;y0 \leq -6 \cdot 10^{+129}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y0 \leq 205000000:\\ \;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\ \mathbf{elif}\;y0 \leq 1.4 \cdot 10^{+182}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\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 (* y2 (fma (- y0) y5 (* y1 y4))))))
                                                                                                                                                                                                                                                       (if (<= y0 -6e+129)
                                                                                                                                                                                                                                                         t_1
                                                                                                                                                                                                                                                         (if (<= y0 205000000.0)
                                                                                                                                                                                                                                                           (* b (* y4 (fma (- k) y (* j t))))
                                                                                                                                                                                                                                                           (if (<= y0 1.4e+182) t_1 (* y3 (* y5 (fma j y0 (* (- a) y)))))))))
                                                                                                                                                                                                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                    	double t_1 = k * (y2 * fma(-y0, y5, (y1 * y4)));
                                                                                                                                                                                                                                                    	double tmp;
                                                                                                                                                                                                                                                    	if (y0 <= -6e+129) {
                                                                                                                                                                                                                                                    		tmp = t_1;
                                                                                                                                                                                                                                                    	} else if (y0 <= 205000000.0) {
                                                                                                                                                                                                                                                    		tmp = b * (y4 * fma(-k, y, (j * t)));
                                                                                                                                                                                                                                                    	} else if (y0 <= 1.4e+182) {
                                                                                                                                                                                                                                                    		tmp = t_1;
                                                                                                                                                                                                                                                    	} else {
                                                                                                                                                                                                                                                    		tmp = y3 * (y5 * fma(j, y0, (-a * y)));
                                                                                                                                                                                                                                                    	}
                                                                                                                                                                                                                                                    	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(y2 * fma(Float64(-y0), y5, Float64(y1 * y4))))
                                                                                                                                                                                                                                                    	tmp = 0.0
                                                                                                                                                                                                                                                    	if (y0 <= -6e+129)
                                                                                                                                                                                                                                                    		tmp = t_1;
                                                                                                                                                                                                                                                    	elseif (y0 <= 205000000.0)
                                                                                                                                                                                                                                                    		tmp = Float64(b * Float64(y4 * fma(Float64(-k), y, Float64(j * t))));
                                                                                                                                                                                                                                                    	elseif (y0 <= 1.4e+182)
                                                                                                                                                                                                                                                    		tmp = t_1;
                                                                                                                                                                                                                                                    	else
                                                                                                                                                                                                                                                    		tmp = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y))));
                                                                                                                                                                                                                                                    	end
                                                                                                                                                                                                                                                    	return tmp
                                                                                                                                                                                                                                                    end
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(y2 * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -6e+129], t$95$1, If[LessEqual[y0, 205000000.0], N[(b * N[(y4 * N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.4e+182], t$95$1, N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    \\
                                                                                                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                                                                                                    t_1 := k \cdot \left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right)\\
                                                                                                                                                                                                                                                    \mathbf{if}\;y0 \leq -6 \cdot 10^{+129}:\\
                                                                                                                                                                                                                                                    \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    \mathbf{elif}\;y0 \leq 205000000:\\
                                                                                                                                                                                                                                                    \;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    \mathbf{elif}\;y0 \leq 1.4 \cdot 10^{+182}:\\
                                                                                                                                                                                                                                                    \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    \mathbf{else}:\\
                                                                                                                                                                                                                                                    \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    \end{array}
                                                                                                                                                                                                                                                    \end{array}
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    Derivation
                                                                                                                                                                                                                                                    1. Split input into 3 regimes
                                                                                                                                                                                                                                                    2. if y0 < -6.0000000000000006e129 or 2.05e8 < y0 < 1.40000000000000003e182

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

                                                                                                                                                                                                                                                        \[\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. Step-by-step derivation
                                                                                                                                                                                                                                                        1. Applied rewrites39.1%

                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2} \]
                                                                                                                                                                                                                                                        2. Taylor expanded in k around inf

                                                                                                                                                                                                                                                          \[\leadsto k \cdot \color{blue}{\left(y2 \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right)} \]
                                                                                                                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                                                                                                                          1. Applied rewrites51.7%

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

                                                                                                                                                                                                                                                          if -6.0000000000000006e129 < y0 < 2.05e8

                                                                                                                                                                                                                                                          1. Initial program 36.0%

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

                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                          4. Step-by-step derivation
                                                                                                                                                                                                                                                            1. Applied rewrites44.4%

                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                                                            2. Taylor expanded in b around inf

                                                                                                                                                                                                                                                              \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(k \cdot y\right) + j \cdot t\right)\right)} \]
                                                                                                                                                                                                                                                            3. Step-by-step derivation
                                                                                                                                                                                                                                                              1. Applied rewrites40.6%

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

                                                                                                                                                                                                                                                              if 1.40000000000000003e182 < y0

                                                                                                                                                                                                                                                              1. Initial program 15.4%

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

                                                                                                                                                                                                                                                                \[\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)} \]
                                                                                                                                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                                                                                                                                1. Applied rewrites43.8%

                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)} \]
                                                                                                                                                                                                                                                                2. Taylor expanded in y3 around -inf

                                                                                                                                                                                                                                                                  \[\leadsto y3 \cdot \color{blue}{\left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)} \]
                                                                                                                                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                                                                                                                                  1. Applied rewrites54.2%

                                                                                                                                                                                                                                                                    \[\leadsto y3 \cdot \color{blue}{\left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)} \]
                                                                                                                                                                                                                                                                4. Recombined 3 regimes into one program.
                                                                                                                                                                                                                                                                5. Add Preprocessing

                                                                                                                                                                                                                                                                Alternative 18: 29.9% accurate, 4.8× speedup?

                                                                                                                                                                                                                                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y5 \leq -1.08 \cdot 10^{+102}:\\ \;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\ \mathbf{elif}\;y5 \leq -1.35 \cdot 10^{-166}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)\\ \mathbf{elif}\;y5 \leq 4.8 \cdot 10^{+213}:\\ \;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                 :precision binary64
                                                                                                                                                                                                                                                                 (if (<= y5 -1.08e+102)
                                                                                                                                                                                                                                                                   (* (* i t) (fma c z (* (- j) y5)))
                                                                                                                                                                                                                                                                   (if (<= y5 -1.35e-166)
                                                                                                                                                                                                                                                                     (* y1 (* y4 (fma (- j) y3 (* k y2))))
                                                                                                                                                                                                                                                                     (if (<= y5 4.8e+213)
                                                                                                                                                                                                                                                                       (* b (* y4 (fma (- k) y (* j t))))
                                                                                                                                                                                                                                                                       (* (* a y5) (fma (- y) y3 (* t y2)))))))
                                                                                                                                                                                                                                                                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                	double tmp;
                                                                                                                                                                                                                                                                	if (y5 <= -1.08e+102) {
                                                                                                                                                                                                                                                                		tmp = (i * t) * fma(c, z, (-j * y5));
                                                                                                                                                                                                                                                                	} else if (y5 <= -1.35e-166) {
                                                                                                                                                                                                                                                                		tmp = y1 * (y4 * fma(-j, y3, (k * y2)));
                                                                                                                                                                                                                                                                	} else if (y5 <= 4.8e+213) {
                                                                                                                                                                                                                                                                		tmp = b * (y4 * fma(-k, y, (j * t)));
                                                                                                                                                                                                                                                                	} else {
                                                                                                                                                                                                                                                                		tmp = (a * y5) * fma(-y, y3, (t * y2));
                                                                                                                                                                                                                                                                	}
                                                                                                                                                                                                                                                                	return tmp;
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                	tmp = 0.0
                                                                                                                                                                                                                                                                	if (y5 <= -1.08e+102)
                                                                                                                                                                                                                                                                		tmp = Float64(Float64(i * t) * fma(c, z, Float64(Float64(-j) * y5)));
                                                                                                                                                                                                                                                                	elseif (y5 <= -1.35e-166)
                                                                                                                                                                                                                                                                		tmp = Float64(y1 * Float64(y4 * fma(Float64(-j), y3, Float64(k * y2))));
                                                                                                                                                                                                                                                                	elseif (y5 <= 4.8e+213)
                                                                                                                                                                                                                                                                		tmp = Float64(b * Float64(y4 * fma(Float64(-k), y, Float64(j * t))));
                                                                                                                                                                                                                                                                	else
                                                                                                                                                                                                                                                                		tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * y2)));
                                                                                                                                                                                                                                                                	end
                                                                                                                                                                                                                                                                	return tmp
                                                                                                                                                                                                                                                                end
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -1.08e+102], N[(N[(i * t), $MachinePrecision] * N[(c * z + N[((-j) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.35e-166], N[(y1 * N[(y4 * N[((-j) * y3 + N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 4.8e+213], N[(b * N[(y4 * N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                \begin{array}{l}
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                \\
                                                                                                                                                                                                                                                                \begin{array}{l}
                                                                                                                                                                                                                                                                \mathbf{if}\;y5 \leq -1.08 \cdot 10^{+102}:\\
                                                                                                                                                                                                                                                                \;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                \mathbf{elif}\;y5 \leq -1.35 \cdot 10^{-166}:\\
                                                                                                                                                                                                                                                                \;\;\;\;y1 \cdot \left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)\\
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                \mathbf{elif}\;y5 \leq 4.8 \cdot 10^{+213}:\\
                                                                                                                                                                                                                                                                \;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                \mathbf{else}:\\
                                                                                                                                                                                                                                                                \;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                \end{array}
                                                                                                                                                                                                                                                                \end{array}
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                Derivation
                                                                                                                                                                                                                                                                1. Split input into 4 regimes
                                                                                                                                                                                                                                                                2. if y5 < -1.08000000000000002e102

                                                                                                                                                                                                                                                                  1. Initial program 26.1%

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

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

                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)} \]
                                                                                                                                                                                                                                                                  5. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                    \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \left(-1 \cdot \left(k \cdot z\right) + j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                  6. Step-by-step derivation
                                                                                                                                                                                                                                                                    1. Applied rewrites23.0%

                                                                                                                                                                                                                                                                      \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                    2. Taylor expanded in t around -inf

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

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

                                                                                                                                                                                                                                                                      if -1.08000000000000002e102 < y5 < -1.35000000000000003e-166

                                                                                                                                                                                                                                                                      1. Initial program 48.4%

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

                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                                                                                                                        1. Applied rewrites57.4%

                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                                                                        2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                          \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(j \cdot y3\right) + k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                                                                                                                                          1. Applied rewrites44.4%

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

                                                                                                                                                                                                                                                                          if -1.35000000000000003e-166 < y5 < 4.8e213

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

                                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                          4. Step-by-step derivation
                                                                                                                                                                                                                                                                            1. Applied rewrites40.6%

                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                                                                            2. Taylor expanded in b around inf

                                                                                                                                                                                                                                                                              \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(k \cdot y\right) + j \cdot t\right)\right)} \]
                                                                                                                                                                                                                                                                            3. Step-by-step derivation
                                                                                                                                                                                                                                                                              1. Applied rewrites37.2%

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

                                                                                                                                                                                                                                                                              if 4.8e213 < y5

                                                                                                                                                                                                                                                                              1. Initial program 23.5%

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

                                                                                                                                                                                                                                                                                \[\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)} \]
                                                                                                                                                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                                                                                                                                                1. Applied rewrites53.1%

                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                                                                                                2. Taylor expanded in y around inf

                                                                                                                                                                                                                                                                                  \[\leadsto \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                                                                                                                                                  1. Applied rewrites47.1%

                                                                                                                                                                                                                                                                                    \[\leadsto \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                  2. Taylor expanded in y5 around inf

                                                                                                                                                                                                                                                                                    \[\leadsto a \cdot \color{blue}{\left(y5 \cdot \left(-1 \cdot \left(y \cdot y3\right) + t \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                  3. Step-by-step derivation
                                                                                                                                                                                                                                                                                    1. Applied rewrites64.9%

                                                                                                                                                                                                                                                                                      \[\leadsto \left(a \cdot y5\right) \cdot \color{blue}{\mathsf{fma}\left(-y, y3, t \cdot y2\right)} \]
                                                                                                                                                                                                                                                                                  4. Recombined 4 regimes into one program.
                                                                                                                                                                                                                                                                                  5. Final simplification44.0%

                                                                                                                                                                                                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -1.08 \cdot 10^{+102}:\\ \;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\ \mathbf{elif}\;y5 \leq -1.35 \cdot 10^{-166}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)\\ \mathbf{elif}\;y5 \leq 4.8 \cdot 10^{+213}:\\ \;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\ \end{array} \]
                                                                                                                                                                                                                                                                                  6. Add Preprocessing

                                                                                                                                                                                                                                                                                  Alternative 19: 30.6% accurate, 4.8× speedup?

                                                                                                                                                                                                                                                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\ \mathbf{if}\;y4 \leq -1.14 \cdot 10^{+58}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y4 \leq 3 \cdot 10^{+34}:\\ \;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\ \mathbf{elif}\;y4 \leq 1.35 \cdot 10^{+210}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\left(-j\right) \cdot \left(\left(y1 \cdot y3\right) \cdot y4\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 (fma (- k) y (* j t))))))
                                                                                                                                                                                                                                                                                     (if (<= y4 -1.14e+58)
                                                                                                                                                                                                                                                                                       t_1
                                                                                                                                                                                                                                                                                       (if (<= y4 3e+34)
                                                                                                                                                                                                                                                                                         (* (* i t) (fma c z (* (- j) y5)))
                                                                                                                                                                                                                                                                                         (if (<= y4 1.35e+210) t_1 (* (- j) (* (* y1 y3) 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 * fma(-k, y, (j * t)));
                                                                                                                                                                                                                                                                                  	double tmp;
                                                                                                                                                                                                                                                                                  	if (y4 <= -1.14e+58) {
                                                                                                                                                                                                                                                                                  		tmp = t_1;
                                                                                                                                                                                                                                                                                  	} else if (y4 <= 3e+34) {
                                                                                                                                                                                                                                                                                  		tmp = (i * t) * fma(c, z, (-j * y5));
                                                                                                                                                                                                                                                                                  	} else if (y4 <= 1.35e+210) {
                                                                                                                                                                                                                                                                                  		tmp = t_1;
                                                                                                                                                                                                                                                                                  	} else {
                                                                                                                                                                                                                                                                                  		tmp = -j * ((y1 * y3) * y4);
                                                                                                                                                                                                                                                                                  	}
                                                                                                                                                                                                                                                                                  	return tmp;
                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                  function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                  	t_1 = Float64(b * Float64(y4 * fma(Float64(-k), y, Float64(j * t))))
                                                                                                                                                                                                                                                                                  	tmp = 0.0
                                                                                                                                                                                                                                                                                  	if (y4 <= -1.14e+58)
                                                                                                                                                                                                                                                                                  		tmp = t_1;
                                                                                                                                                                                                                                                                                  	elseif (y4 <= 3e+34)
                                                                                                                                                                                                                                                                                  		tmp = Float64(Float64(i * t) * fma(c, z, Float64(Float64(-j) * y5)));
                                                                                                                                                                                                                                                                                  	elseif (y4 <= 1.35e+210)
                                                                                                                                                                                                                                                                                  		tmp = t_1;
                                                                                                                                                                                                                                                                                  	else
                                                                                                                                                                                                                                                                                  		tmp = Float64(Float64(-j) * Float64(Float64(y1 * y3) * y4));
                                                                                                                                                                                                                                                                                  	end
                                                                                                                                                                                                                                                                                  	return tmp
                                                                                                                                                                                                                                                                                  end
                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y4 * N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.14e+58], t$95$1, If[LessEqual[y4, 3e+34], N[(N[(i * t), $MachinePrecision] * N[(c * z + N[((-j) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.35e+210], t$95$1, N[((-j) * N[(N[(y1 * y3), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]]]]]
                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                  \begin{array}{l}
                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                  \\
                                                                                                                                                                                                                                                                                  \begin{array}{l}
                                                                                                                                                                                                                                                                                  t_1 := b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\
                                                                                                                                                                                                                                                                                  \mathbf{if}\;y4 \leq -1.14 \cdot 10^{+58}:\\
                                                                                                                                                                                                                                                                                  \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                  \mathbf{elif}\;y4 \leq 3 \cdot 10^{+34}:\\
                                                                                                                                                                                                                                                                                  \;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\
                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                  \mathbf{elif}\;y4 \leq 1.35 \cdot 10^{+210}:\\
                                                                                                                                                                                                                                                                                  \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                  \mathbf{else}:\\
                                                                                                                                                                                                                                                                                  \;\;\;\;\left(-j\right) \cdot \left(\left(y1 \cdot y3\right) \cdot y4\right)\\
                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                  \end{array}
                                                                                                                                                                                                                                                                                  \end{array}
                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                  Derivation
                                                                                                                                                                                                                                                                                  1. Split input into 3 regimes
                                                                                                                                                                                                                                                                                  2. if y4 < -1.14e58 or 3.00000000000000018e34 < y4 < 1.35e210

                                                                                                                                                                                                                                                                                    1. Initial program 28.2%

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

                                                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                    4. Step-by-step derivation
                                                                                                                                                                                                                                                                                      1. Applied rewrites58.9%

                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                                                                                      2. Taylor expanded in b around inf

                                                                                                                                                                                                                                                                                        \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(k \cdot y\right) + j \cdot t\right)\right)} \]
                                                                                                                                                                                                                                                                                      3. Step-by-step derivation
                                                                                                                                                                                                                                                                                        1. Applied rewrites53.1%

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

                                                                                                                                                                                                                                                                                        if -1.14e58 < y4 < 3.00000000000000018e34

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

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

                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)} \]
                                                                                                                                                                                                                                                                                        5. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                          \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \left(-1 \cdot \left(k \cdot z\right) + j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                                        6. Step-by-step derivation
                                                                                                                                                                                                                                                                                          1. Applied rewrites29.2%

                                                                                                                                                                                                                                                                                            \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                                          2. Taylor expanded in t around -inf

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

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

                                                                                                                                                                                                                                                                                            if 1.35e210 < y4

                                                                                                                                                                                                                                                                                            1. Initial program 25.0%

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

                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                                                                                                                                                              1. Applied rewrites63.0%

                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                                                                                              2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(j \cdot y3\right) + k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                              3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                1. Applied rewrites57.0%

                                                                                                                                                                                                                                                                                                  \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                2. Taylor expanded in j around inf

                                                                                                                                                                                                                                                                                                  \[\leadsto -1 \cdot \left(j \cdot \color{blue}{\left(y1 \cdot \left(y3 \cdot y4\right)\right)}\right) \]
                                                                                                                                                                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                  1. Applied rewrites63.1%

                                                                                                                                                                                                                                                                                                    \[\leadsto -j \cdot \left(\left(y1 \cdot y3\right) \cdot y4\right) \]
                                                                                                                                                                                                                                                                                                4. Recombined 3 regimes into one program.
                                                                                                                                                                                                                                                                                                5. Final simplification43.3%

                                                                                                                                                                                                                                                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;y4 \leq -1.14 \cdot 10^{+58}:\\ \;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\ \mathbf{elif}\;y4 \leq 3 \cdot 10^{+34}:\\ \;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\ \mathbf{elif}\;y4 \leq 1.35 \cdot 10^{+210}:\\ \;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(-j\right) \cdot \left(\left(y1 \cdot y3\right) \cdot y4\right)\\ \end{array} \]
                                                                                                                                                                                                                                                                                                6. Add Preprocessing

                                                                                                                                                                                                                                                                                                Alternative 20: 31.1% accurate, 4.8× speedup?

                                                                                                                                                                                                                                                                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y5 \leq -8.5 \cdot 10^{+102}:\\ \;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\ \mathbf{elif}\;y5 \leq -1.15 \cdot 10^{-24}:\\ \;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\\ \mathbf{elif}\;y5 \leq 6.5 \cdot 10^{+20}:\\ \;\;\;\;i \cdot \left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(y5 \cdot \mathsf{fma}\left(i, k, \left(-a\right) \cdot y3\right)\right)\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                                                (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                                 :precision binary64
                                                                                                                                                                                                                                                                                                 (if (<= y5 -8.5e+102)
                                                                                                                                                                                                                                                                                                   (* (* i t) (fma c z (* (- j) y5)))
                                                                                                                                                                                                                                                                                                   (if (<= y5 -1.15e-24)
                                                                                                                                                                                                                                                                                                     (* (* i y) (fma k y5 (* (- c) x)))
                                                                                                                                                                                                                                                                                                     (if (<= y5 6.5e+20)
                                                                                                                                                                                                                                                                                                       (* i (* z (fma c t (* (- k) y1))))
                                                                                                                                                                                                                                                                                                       (* y (* y5 (fma i k (* (- a) y3))))))))
                                                                                                                                                                                                                                                                                                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                	double tmp;
                                                                                                                                                                                                                                                                                                	if (y5 <= -8.5e+102) {
                                                                                                                                                                                                                                                                                                		tmp = (i * t) * fma(c, z, (-j * y5));
                                                                                                                                                                                                                                                                                                	} else if (y5 <= -1.15e-24) {
                                                                                                                                                                                                                                                                                                		tmp = (i * y) * fma(k, y5, (-c * x));
                                                                                                                                                                                                                                                                                                	} else if (y5 <= 6.5e+20) {
                                                                                                                                                                                                                                                                                                		tmp = i * (z * fma(c, t, (-k * y1)));
                                                                                                                                                                                                                                                                                                	} else {
                                                                                                                                                                                                                                                                                                		tmp = y * (y5 * fma(i, k, (-a * y3)));
                                                                                                                                                                                                                                                                                                	}
                                                                                                                                                                                                                                                                                                	return tmp;
                                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                	tmp = 0.0
                                                                                                                                                                                                                                                                                                	if (y5 <= -8.5e+102)
                                                                                                                                                                                                                                                                                                		tmp = Float64(Float64(i * t) * fma(c, z, Float64(Float64(-j) * y5)));
                                                                                                                                                                                                                                                                                                	elseif (y5 <= -1.15e-24)
                                                                                                                                                                                                                                                                                                		tmp = Float64(Float64(i * y) * fma(k, y5, Float64(Float64(-c) * x)));
                                                                                                                                                                                                                                                                                                	elseif (y5 <= 6.5e+20)
                                                                                                                                                                                                                                                                                                		tmp = Float64(i * Float64(z * fma(c, t, Float64(Float64(-k) * y1))));
                                                                                                                                                                                                                                                                                                	else
                                                                                                                                                                                                                                                                                                		tmp = Float64(y * Float64(y5 * fma(i, k, Float64(Float64(-a) * y3))));
                                                                                                                                                                                                                                                                                                	end
                                                                                                                                                                                                                                                                                                	return tmp
                                                                                                                                                                                                                                                                                                end
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -8.5e+102], N[(N[(i * t), $MachinePrecision] * N[(c * z + N[((-j) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.15e-24], N[(N[(i * y), $MachinePrecision] * N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 6.5e+20], N[(i * N[(z * N[(c * t + N[((-k) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(y5 * N[(i * k + N[((-a) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                \begin{array}{l}
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                \\
                                                                                                                                                                                                                                                                                                \begin{array}{l}
                                                                                                                                                                                                                                                                                                \mathbf{if}\;y5 \leq -8.5 \cdot 10^{+102}:\\
                                                                                                                                                                                                                                                                                                \;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                \mathbf{elif}\;y5 \leq -1.15 \cdot 10^{-24}:\\
                                                                                                                                                                                                                                                                                                \;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\\
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                \mathbf{elif}\;y5 \leq 6.5 \cdot 10^{+20}:\\
                                                                                                                                                                                                                                                                                                \;\;\;\;i \cdot \left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \cdot y1\right)\right)\\
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                \mathbf{else}:\\
                                                                                                                                                                                                                                                                                                \;\;\;\;y \cdot \left(y5 \cdot \mathsf{fma}\left(i, k, \left(-a\right) \cdot y3\right)\right)\\
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                \end{array}
                                                                                                                                                                                                                                                                                                \end{array}
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                Derivation
                                                                                                                                                                                                                                                                                                1. Split input into 4 regimes
                                                                                                                                                                                                                                                                                                2. if y5 < -8.4999999999999996e102

                                                                                                                                                                                                                                                                                                  1. Initial program 26.1%

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

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

                                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)} \]
                                                                                                                                                                                                                                                                                                  5. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                    \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \left(-1 \cdot \left(k \cdot z\right) + j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                                                  6. Step-by-step derivation
                                                                                                                                                                                                                                                                                                    1. Applied rewrites23.0%

                                                                                                                                                                                                                                                                                                      \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                                                    2. Taylor expanded in t around -inf

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

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

                                                                                                                                                                                                                                                                                                      if -8.4999999999999996e102 < y5 < -1.1500000000000001e-24

                                                                                                                                                                                                                                                                                                      1. Initial program 42.3%

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

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

                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)} \]
                                                                                                                                                                                                                                                                                                      5. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                        \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \left(-1 \cdot \left(k \cdot z\right) + j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                                                      6. Step-by-step derivation
                                                                                                                                                                                                                                                                                                        1. Applied rewrites19.3%

                                                                                                                                                                                                                                                                                                          \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                                                        2. Taylor expanded in y around -inf

                                                                                                                                                                                                                                                                                                          \[\leadsto i \cdot \color{blue}{\left(y \cdot \left(-1 \cdot \left(c \cdot x\right) + k \cdot y5\right)\right)} \]
                                                                                                                                                                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                          1. Applied rewrites32.1%

                                                                                                                                                                                                                                                                                                            \[\leadsto \left(i \cdot y\right) \cdot \color{blue}{\mathsf{fma}\left(k, y5, -c \cdot x\right)} \]

                                                                                                                                                                                                                                                                                                          if -1.1500000000000001e-24 < y5 < 6.5e20

                                                                                                                                                                                                                                                                                                          1. Initial program 33.7%

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

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

                                                                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)} \]
                                                                                                                                                                                                                                                                                                          5. Taylor expanded in z around -inf

                                                                                                                                                                                                                                                                                                            \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
                                                                                                                                                                                                                                                                                                          6. Step-by-step derivation
                                                                                                                                                                                                                                                                                                            1. Applied rewrites34.8%

                                                                                                                                                                                                                                                                                                              \[\leadsto i \cdot \color{blue}{\left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \cdot y1\right)\right)} \]

                                                                                                                                                                                                                                                                                                            if 6.5e20 < y5

                                                                                                                                                                                                                                                                                                            1. Initial program 28.5%

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

                                                                                                                                                                                                                                                                                                              \[\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)} \]
                                                                                                                                                                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                              1. Applied rewrites52.7%

                                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)} \]
                                                                                                                                                                                                                                                                                                              2. Taylor expanded in y around -inf

                                                                                                                                                                                                                                                                                                                \[\leadsto y \cdot \color{blue}{\left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                              3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                1. Applied rewrites37.0%

                                                                                                                                                                                                                                                                                                                  \[\leadsto y \cdot \color{blue}{\left(y5 \cdot \mathsf{fma}\left(i, k, \left(-a\right) \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                              4. Recombined 4 regimes into one program.
                                                                                                                                                                                                                                                                                                              5. Final simplification38.5%

                                                                                                                                                                                                                                                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -8.5 \cdot 10^{+102}:\\ \;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\ \mathbf{elif}\;y5 \leq -1.15 \cdot 10^{-24}:\\ \;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\\ \mathbf{elif}\;y5 \leq 6.5 \cdot 10^{+20}:\\ \;\;\;\;i \cdot \left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(y5 \cdot \mathsf{fma}\left(i, k, \left(-a\right) \cdot y3\right)\right)\\ \end{array} \]
                                                                                                                                                                                                                                                                                                              6. Add Preprocessing

                                                                                                                                                                                                                                                                                                              Alternative 21: 24.8% accurate, 4.8× speedup?

                                                                                                                                                                                                                                                                                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\ \mathbf{if}\;t \leq -8 \cdot 10^{+77}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 2.85 \cdot 10^{-285}:\\ \;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\ \mathbf{elif}\;t \leq 1.75 \cdot 10^{+114}:\\ \;\;\;\;i \cdot \left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)\\ \mathbf{elif}\;t \leq 4.25 \cdot 10^{+260}:\\ \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                                                              (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                                               :precision binary64
                                                                                                                                                                                                                                                                                                               (let* ((t_1 (* (* (* j t) y4) b)))
                                                                                                                                                                                                                                                                                                                 (if (<= t -8e+77)
                                                                                                                                                                                                                                                                                                                   t_1
                                                                                                                                                                                                                                                                                                                   (if (<= t 2.85e-285)
                                                                                                                                                                                                                                                                                                                     (* (* (* b x) y) a)
                                                                                                                                                                                                                                                                                                                     (if (<= t 1.75e+114)
                                                                                                                                                                                                                                                                                                                       (* i (* y1 (fma (- k) z (* j x))))
                                                                                                                                                                                                                                                                                                                       (if (<= t 4.25e+260) (* (* y1 (* y3 z)) a) t_1))))))
                                                                                                                                                                                                                                                                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                              	double t_1 = ((j * t) * y4) * b;
                                                                                                                                                                                                                                                                                                              	double tmp;
                                                                                                                                                                                                                                                                                                              	if (t <= -8e+77) {
                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                              	} else if (t <= 2.85e-285) {
                                                                                                                                                                                                                                                                                                              		tmp = ((b * x) * y) * a;
                                                                                                                                                                                                                                                                                                              	} else if (t <= 1.75e+114) {
                                                                                                                                                                                                                                                                                                              		tmp = i * (y1 * fma(-k, z, (j * x)));
                                                                                                                                                                                                                                                                                                              	} else if (t <= 4.25e+260) {
                                                                                                                                                                                                                                                                                                              		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                              	} 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(Float64(Float64(j * t) * y4) * b)
                                                                                                                                                                                                                                                                                                              	tmp = 0.0
                                                                                                                                                                                                                                                                                                              	if (t <= -8e+77)
                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                              	elseif (t <= 2.85e-285)
                                                                                                                                                                                                                                                                                                              		tmp = Float64(Float64(Float64(b * x) * y) * a);
                                                                                                                                                                                                                                                                                                              	elseif (t <= 1.75e+114)
                                                                                                                                                                                                                                                                                                              		tmp = Float64(i * Float64(y1 * fma(Float64(-k), z, Float64(j * x))));
                                                                                                                                                                                                                                                                                                              	elseif (t <= 4.25e+260)
                                                                                                                                                                                                                                                                                                              		tmp = Float64(Float64(y1 * Float64(y3 * z)) * a);
                                                                                                                                                                                                                                                                                                              	else
                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                              	end
                                                                                                                                                                                                                                                                                                              	return tmp
                                                                                                                                                                                                                                                                                                              end
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t, -8e+77], t$95$1, If[LessEqual[t, 2.85e-285], N[(N[(N[(b * x), $MachinePrecision] * y), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[t, 1.75e+114], N[(i * N[(y1 * N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.25e+260], N[(N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]]
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              \\
                                                                                                                                                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                                                                                                                                                              t_1 := \left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
                                                                                                                                                                                                                                                                                                              \mathbf{if}\;t \leq -8 \cdot 10^{+77}:\\
                                                                                                                                                                                                                                                                                                              \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              \mathbf{elif}\;t \leq 2.85 \cdot 10^{-285}:\\
                                                                                                                                                                                                                                                                                                              \;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              \mathbf{elif}\;t \leq 1.75 \cdot 10^{+114}:\\
                                                                                                                                                                                                                                                                                                              \;\;\;\;i \cdot \left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)\\
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              \mathbf{elif}\;t \leq 4.25 \cdot 10^{+260}:\\
                                                                                                                                                                                                                                                                                                              \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              \mathbf{else}:\\
                                                                                                                                                                                                                                                                                                              \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              \end{array}
                                                                                                                                                                                                                                                                                                              \end{array}
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              Derivation
                                                                                                                                                                                                                                                                                                              1. Split input into 4 regimes
                                                                                                                                                                                                                                                                                                              2. if t < -7.99999999999999986e77 or 4.25e260 < t

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

                                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                                                                4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                  1. Applied rewrites37.8%

                                                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b} \]
                                                                                                                                                                                                                                                                                                                  2. Taylor expanded in t around inf

                                                                                                                                                                                                                                                                                                                    \[\leadsto \left(t \cdot \left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                  3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                    1. Applied rewrites45.3%

                                                                                                                                                                                                                                                                                                                      \[\leadsto \left(t \cdot \mathsf{fma}\left(j, y4, -a \cdot z\right)\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                    2. Taylor expanded in z around 0

                                                                                                                                                                                                                                                                                                                      \[\leadsto \left(j \cdot \left(t \cdot y4\right)\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                    3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                      1. Applied rewrites44.3%

                                                                                                                                                                                                                                                                                                                        \[\leadsto \left(\left(j \cdot t\right) \cdot y4\right) \cdot b \]

                                                                                                                                                                                                                                                                                                                      if -7.99999999999999986e77 < t < 2.85000000000000013e-285

                                                                                                                                                                                                                                                                                                                      1. Initial program 33.7%

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

                                                                                                                                                                                                                                                                                                                        \[\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)} \]
                                                                                                                                                                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                        1. Applied rewrites37.6%

                                                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                                                                                                                                        2. Taylor expanded in y around inf

                                                                                                                                                                                                                                                                                                                          \[\leadsto \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                          1. Applied rewrites34.0%

                                                                                                                                                                                                                                                                                                                            \[\leadsto \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                          2. Taylor expanded in x around inf

                                                                                                                                                                                                                                                                                                                            \[\leadsto \left(b \cdot \left(x \cdot y\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                          3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                            1. Applied rewrites28.7%

                                                                                                                                                                                                                                                                                                                              \[\leadsto \left(\left(b \cdot x\right) \cdot y\right) \cdot a \]

                                                                                                                                                                                                                                                                                                                            if 2.85000000000000013e-285 < t < 1.75e114

                                                                                                                                                                                                                                                                                                                            1. Initial program 43.6%

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

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

                                                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)} \]
                                                                                                                                                                                                                                                                                                                            5. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                              \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \left(-1 \cdot \left(k \cdot z\right) + j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                                                                            6. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                              1. Applied rewrites40.5%

                                                                                                                                                                                                                                                                                                                                \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)} \]

                                                                                                                                                                                                                                                                                                                              if 1.75e114 < t < 4.25e260

                                                                                                                                                                                                                                                                                                                              1. Initial program 34.4%

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

                                                                                                                                                                                                                                                                                                                                \[\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)} \]
                                                                                                                                                                                                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                1. Applied rewrites53.4%

                                                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                                                                                                                                                2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                  \[\leadsto \left(-1 \cdot \left(y1 \cdot \left(-1 \cdot \left(y3 \cdot z\right) + x \cdot y2\right)\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                  1. Applied rewrites45.2%

                                                                                                                                                                                                                                                                                                                                    \[\leadsto \left(-y1 \cdot \mathsf{fma}\left(-y3, z, x \cdot y2\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                  2. Taylor expanded in x around 0

                                                                                                                                                                                                                                                                                                                                    \[\leadsto \left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                  3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                    1. Applied rewrites44.8%

                                                                                                                                                                                                                                                                                                                                      \[\leadsto \left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                  4. Recombined 4 regimes into one program.
                                                                                                                                                                                                                                                                                                                                  5. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                  Alternative 22: 20.8% accurate, 5.0× speedup?

                                                                                                                                                                                                                                                                                                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\ \mathbf{if}\;t \leq -8 \cdot 10^{+77}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -8.2 \cdot 10^{-219}:\\ \;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\ \mathbf{elif}\;t \leq 7.8 \cdot 10^{+59}:\\ \;\;\;\;y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\ \mathbf{elif}\;t \leq 4.25 \cdot 10^{+260}:\\ \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                                                                                  (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                                                                   :precision binary64
                                                                                                                                                                                                                                                                                                                                   (let* ((t_1 (* (* (* j t) y4) b)))
                                                                                                                                                                                                                                                                                                                                     (if (<= t -8e+77)
                                                                                                                                                                                                                                                                                                                                       t_1
                                                                                                                                                                                                                                                                                                                                       (if (<= t -8.2e-219)
                                                                                                                                                                                                                                                                                                                                         (* (* (* b x) y) a)
                                                                                                                                                                                                                                                                                                                                         (if (<= t 7.8e+59)
                                                                                                                                                                                                                                                                                                                                           (* y1 (* (* k y2) y4))
                                                                                                                                                                                                                                                                                                                                           (if (<= t 4.25e+260) (* (* y1 (* y3 z)) a) t_1))))))
                                                                                                                                                                                                                                                                                                                                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                  	double t_1 = ((j * t) * y4) * b;
                                                                                                                                                                                                                                                                                                                                  	double tmp;
                                                                                                                                                                                                                                                                                                                                  	if (t <= -8e+77) {
                                                                                                                                                                                                                                                                                                                                  		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                  	} else if (t <= -8.2e-219) {
                                                                                                                                                                                                                                                                                                                                  		tmp = ((b * x) * y) * a;
                                                                                                                                                                                                                                                                                                                                  	} else if (t <= 7.8e+59) {
                                                                                                                                                                                                                                                                                                                                  		tmp = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                  	} else if (t <= 4.25e+260) {
                                                                                                                                                                                                                                                                                                                                  		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                  	} else {
                                                                                                                                                                                                                                                                                                                                  		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                  	}
                                                                                                                                                                                                                                                                                                                                  	return tmp;
                                                                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                  module fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                      implicit none
                                                                                                                                                                                                                                                                                                                                      private
                                                                                                                                                                                                                                                                                                                                      public fmax
                                                                                                                                                                                                                                                                                                                                      public fmin
                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                      interface fmax
                                                                                                                                                                                                                                                                                                                                          module procedure fmax88
                                                                                                                                                                                                                                                                                                                                          module procedure fmax44
                                                                                                                                                                                                                                                                                                                                          module procedure fmax84
                                                                                                                                                                                                                                                                                                                                          module procedure fmax48
                                                                                                                                                                                                                                                                                                                                      end interface
                                                                                                                                                                                                                                                                                                                                      interface fmin
                                                                                                                                                                                                                                                                                                                                          module procedure fmin88
                                                                                                                                                                                                                                                                                                                                          module procedure fmin44
                                                                                                                                                                                                                                                                                                                                          module procedure fmin84
                                                                                                                                                                                                                                                                                                                                          module procedure fmin48
                                                                                                                                                                                                                                                                                                                                      end interface
                                                                                                                                                                                                                                                                                                                                  contains
                                                                                                                                                                                                                                                                                                                                      real(8) function fmax88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                      real(4) function fmax44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                      real(8) function fmax84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                          res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                      real(8) function fmax48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                      real(8) function fmin88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                      real(4) function fmin44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                      real(8) function fmin84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                          res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                      real(8) function fmin48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                  end module
                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                  real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                  use fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                      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) * y4) * b
                                                                                                                                                                                                                                                                                                                                      if (t <= (-8d+77)) then
                                                                                                                                                                                                                                                                                                                                          tmp = t_1
                                                                                                                                                                                                                                                                                                                                      else if (t <= (-8.2d-219)) then
                                                                                                                                                                                                                                                                                                                                          tmp = ((b * x) * y) * a
                                                                                                                                                                                                                                                                                                                                      else if (t <= 7.8d+59) then
                                                                                                                                                                                                                                                                                                                                          tmp = y1 * ((k * y2) * y4)
                                                                                                                                                                                                                                                                                                                                      else if (t <= 4.25d+260) then
                                                                                                                                                                                                                                                                                                                                          tmp = (y1 * (y3 * z)) * a
                                                                                                                                                                                                                                                                                                                                      else
                                                                                                                                                                                                                                                                                                                                          tmp = t_1
                                                                                                                                                                                                                                                                                                                                      end if
                                                                                                                                                                                                                                                                                                                                      code = tmp
                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                  public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                  	double t_1 = ((j * t) * y4) * b;
                                                                                                                                                                                                                                                                                                                                  	double tmp;
                                                                                                                                                                                                                                                                                                                                  	if (t <= -8e+77) {
                                                                                                                                                                                                                                                                                                                                  		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                  	} else if (t <= -8.2e-219) {
                                                                                                                                                                                                                                                                                                                                  		tmp = ((b * x) * y) * a;
                                                                                                                                                                                                                                                                                                                                  	} else if (t <= 7.8e+59) {
                                                                                                                                                                                                                                                                                                                                  		tmp = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                  	} else if (t <= 4.25e+260) {
                                                                                                                                                                                                                                                                                                                                  		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                  	} else {
                                                                                                                                                                                                                                                                                                                                  		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                  	}
                                                                                                                                                                                                                                                                                                                                  	return tmp;
                                                                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                  def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                                                                                  	t_1 = ((j * t) * y4) * b
                                                                                                                                                                                                                                                                                                                                  	tmp = 0
                                                                                                                                                                                                                                                                                                                                  	if t <= -8e+77:
                                                                                                                                                                                                                                                                                                                                  		tmp = t_1
                                                                                                                                                                                                                                                                                                                                  	elif t <= -8.2e-219:
                                                                                                                                                                                                                                                                                                                                  		tmp = ((b * x) * y) * a
                                                                                                                                                                                                                                                                                                                                  	elif t <= 7.8e+59:
                                                                                                                                                                                                                                                                                                                                  		tmp = y1 * ((k * y2) * y4)
                                                                                                                                                                                                                                                                                                                                  	elif t <= 4.25e+260:
                                                                                                                                                                                                                                                                                                                                  		tmp = (y1 * (y3 * z)) * a
                                                                                                                                                                                                                                                                                                                                  	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(Float64(Float64(j * t) * y4) * b)
                                                                                                                                                                                                                                                                                                                                  	tmp = 0.0
                                                                                                                                                                                                                                                                                                                                  	if (t <= -8e+77)
                                                                                                                                                                                                                                                                                                                                  		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                  	elseif (t <= -8.2e-219)
                                                                                                                                                                                                                                                                                                                                  		tmp = Float64(Float64(Float64(b * x) * y) * a);
                                                                                                                                                                                                                                                                                                                                  	elseif (t <= 7.8e+59)
                                                                                                                                                                                                                                                                                                                                  		tmp = Float64(y1 * Float64(Float64(k * y2) * y4));
                                                                                                                                                                                                                                                                                                                                  	elseif (t <= 4.25e+260)
                                                                                                                                                                                                                                                                                                                                  		tmp = Float64(Float64(y1 * Float64(y3 * z)) * a);
                                                                                                                                                                                                                                                                                                                                  	else
                                                                                                                                                                                                                                                                                                                                  		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                  	end
                                                                                                                                                                                                                                                                                                                                  	return tmp
                                                                                                                                                                                                                                                                                                                                  end
                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                  function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                  	t_1 = ((j * t) * y4) * b;
                                                                                                                                                                                                                                                                                                                                  	tmp = 0.0;
                                                                                                                                                                                                                                                                                                                                  	if (t <= -8e+77)
                                                                                                                                                                                                                                                                                                                                  		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                  	elseif (t <= -8.2e-219)
                                                                                                                                                                                                                                                                                                                                  		tmp = ((b * x) * y) * a;
                                                                                                                                                                                                                                                                                                                                  	elseif (t <= 7.8e+59)
                                                                                                                                                                                                                                                                                                                                  		tmp = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                  	elseif (t <= 4.25e+260)
                                                                                                                                                                                                                                                                                                                                  		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                  	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[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t, -8e+77], t$95$1, If[LessEqual[t, -8.2e-219], N[(N[(N[(b * x), $MachinePrecision] * y), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[t, 7.8e+59], N[(y1 * N[(N[(k * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.25e+260], N[(N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]]
                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                  \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                  \\
                                                                                                                                                                                                                                                                                                                                  \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                  t_1 := \left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
                                                                                                                                                                                                                                                                                                                                  \mathbf{if}\;t \leq -8 \cdot 10^{+77}:\\
                                                                                                                                                                                                                                                                                                                                  \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                  \mathbf{elif}\;t \leq -8.2 \cdot 10^{-219}:\\
                                                                                                                                                                                                                                                                                                                                  \;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\
                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                  \mathbf{elif}\;t \leq 7.8 \cdot 10^{+59}:\\
                                                                                                                                                                                                                                                                                                                                  \;\;\;\;y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\
                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                  \mathbf{elif}\;t \leq 4.25 \cdot 10^{+260}:\\
                                                                                                                                                                                                                                                                                                                                  \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\
                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                  \mathbf{else}:\\
                                                                                                                                                                                                                                                                                                                                  \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                  \end{array}
                                                                                                                                                                                                                                                                                                                                  \end{array}
                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                  Derivation
                                                                                                                                                                                                                                                                                                                                  1. Split input into 4 regimes
                                                                                                                                                                                                                                                                                                                                  2. if t < -7.99999999999999986e77 or 4.25e260 < t

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

                                                                                                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                    4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                      1. Applied rewrites37.8%

                                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b} \]
                                                                                                                                                                                                                                                                                                                                      2. Taylor expanded in t around inf

                                                                                                                                                                                                                                                                                                                                        \[\leadsto \left(t \cdot \left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                                      3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                        1. Applied rewrites45.3%

                                                                                                                                                                                                                                                                                                                                          \[\leadsto \left(t \cdot \mathsf{fma}\left(j, y4, -a \cdot z\right)\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                                        2. Taylor expanded in z around 0

                                                                                                                                                                                                                                                                                                                                          \[\leadsto \left(j \cdot \left(t \cdot y4\right)\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                          1. Applied rewrites44.3%

                                                                                                                                                                                                                                                                                                                                            \[\leadsto \left(\left(j \cdot t\right) \cdot y4\right) \cdot b \]

                                                                                                                                                                                                                                                                                                                                          if -7.99999999999999986e77 < t < -8.2e-219

                                                                                                                                                                                                                                                                                                                                          1. Initial program 42.7%

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

                                                                                                                                                                                                                                                                                                                                            \[\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)} \]
                                                                                                                                                                                                                                                                                                                                          4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                            1. Applied rewrites45.3%

                                                                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                                                                                                                                                            2. Taylor expanded in y around inf

                                                                                                                                                                                                                                                                                                                                              \[\leadsto \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                            3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                              1. Applied rewrites34.8%

                                                                                                                                                                                                                                                                                                                                                \[\leadsto \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                              2. Taylor expanded in x around inf

                                                                                                                                                                                                                                                                                                                                                \[\leadsto \left(b \cdot \left(x \cdot y\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                              3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                1. Applied rewrites31.2%

                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \left(\left(b \cdot x\right) \cdot y\right) \cdot a \]

                                                                                                                                                                                                                                                                                                                                                if -8.2e-219 < t < 7.80000000000000043e59

                                                                                                                                                                                                                                                                                                                                                1. Initial program 36.0%

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

                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                  1. Applied rewrites43.8%

                                                                                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                                                                                                                                                  2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                    \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(j \cdot y3\right) + k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                  3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                    1. Applied rewrites38.3%

                                                                                                                                                                                                                                                                                                                                                      \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                    2. Taylor expanded in j around 0

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

                                                                                                                                                                                                                                                                                                                                                        \[\leadsto y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right) \]

                                                                                                                                                                                                                                                                                                                                                      if 7.80000000000000043e59 < t < 4.25e260

                                                                                                                                                                                                                                                                                                                                                      1. Initial program 34.1%

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

                                                                                                                                                                                                                                                                                                                                                        \[\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)} \]
                                                                                                                                                                                                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                        1. Applied rewrites50.4%

                                                                                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                                                                                                                                                                        2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                          \[\leadsto \left(-1 \cdot \left(y1 \cdot \left(-1 \cdot \left(y3 \cdot z\right) + x \cdot y2\right)\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                          1. Applied rewrites42.4%

                                                                                                                                                                                                                                                                                                                                                            \[\leadsto \left(-y1 \cdot \mathsf{fma}\left(-y3, z, x \cdot y2\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                          2. Taylor expanded in x around 0

                                                                                                                                                                                                                                                                                                                                                            \[\leadsto \left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                          3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                            1. Applied rewrites39.9%

                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                          4. Recombined 4 regimes into one program.
                                                                                                                                                                                                                                                                                                                                                          5. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                          Alternative 23: 21.8% accurate, 5.6× speedup?

                                                                                                                                                                                                                                                                                                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;j \leq -8.8 \cdot 10^{-105}:\\ \;\;\;\;y1 \cdot \left(\left(\left(-j\right) \cdot y3\right) \cdot y4\right)\\ \mathbf{elif}\;j \leq 2.8 \cdot 10^{-205}:\\ \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\ \mathbf{elif}\;j \leq 4.6 \cdot 10^{-28}:\\ \;\;\;\;\left(\left(-y\right) \cdot \left(y3 \cdot y5\right)\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                                                                                                          (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                                                                                           :precision binary64
                                                                                                                                                                                                                                                                                                                                                           (if (<= j -8.8e-105)
                                                                                                                                                                                                                                                                                                                                                             (* y1 (* (* (- j) y3) y4))
                                                                                                                                                                                                                                                                                                                                                             (if (<= j 2.8e-205)
                                                                                                                                                                                                                                                                                                                                                               (* (* y1 (* y3 z)) a)
                                                                                                                                                                                                                                                                                                                                                               (if (<= j 4.6e-28) (* (* (- y) (* y3 y5)) a) (* (* (* j t) y4) 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 (j <= -8.8e-105) {
                                                                                                                                                                                                                                                                                                                                                          		tmp = y1 * ((-j * y3) * y4);
                                                                                                                                                                                                                                                                                                                                                          	} else if (j <= 2.8e-205) {
                                                                                                                                                                                                                                                                                                                                                          		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                          	} else if (j <= 4.6e-28) {
                                                                                                                                                                                                                                                                                                                                                          		tmp = (-y * (y3 * y5)) * a;
                                                                                                                                                                                                                                                                                                                                                          	} else {
                                                                                                                                                                                                                                                                                                                                                          		tmp = ((j * t) * y4) * b;
                                                                                                                                                                                                                                                                                                                                                          	}
                                                                                                                                                                                                                                                                                                                                                          	return tmp;
                                                                                                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                          module fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                              implicit none
                                                                                                                                                                                                                                                                                                                                                              private
                                                                                                                                                                                                                                                                                                                                                              public fmax
                                                                                                                                                                                                                                                                                                                                                              public fmin
                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                              interface fmax
                                                                                                                                                                                                                                                                                                                                                                  module procedure fmax88
                                                                                                                                                                                                                                                                                                                                                                  module procedure fmax44
                                                                                                                                                                                                                                                                                                                                                                  module procedure fmax84
                                                                                                                                                                                                                                                                                                                                                                  module procedure fmax48
                                                                                                                                                                                                                                                                                                                                                              end interface
                                                                                                                                                                                                                                                                                                                                                              interface fmin
                                                                                                                                                                                                                                                                                                                                                                  module procedure fmin88
                                                                                                                                                                                                                                                                                                                                                                  module procedure fmin44
                                                                                                                                                                                                                                                                                                                                                                  module procedure fmin84
                                                                                                                                                                                                                                                                                                                                                                  module procedure fmin48
                                                                                                                                                                                                                                                                                                                                                              end interface
                                                                                                                                                                                                                                                                                                                                                          contains
                                                                                                                                                                                                                                                                                                                                                              real(8) function fmax88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                              real(4) function fmax44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                  real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                  real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                              real(8) function fmax84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                  real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                              real(8) function fmax48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                  real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                              real(8) function fmin88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                              real(4) function fmin44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                  real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                  real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                              real(8) function fmin84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                  real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                              real(8) function fmin48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                  real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                          end module
                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                          real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                          use fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                              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 (j <= (-8.8d-105)) then
                                                                                                                                                                                                                                                                                                                                                                  tmp = y1 * ((-j * y3) * y4)
                                                                                                                                                                                                                                                                                                                                                              else if (j <= 2.8d-205) then
                                                                                                                                                                                                                                                                                                                                                                  tmp = (y1 * (y3 * z)) * a
                                                                                                                                                                                                                                                                                                                                                              else if (j <= 4.6d-28) then
                                                                                                                                                                                                                                                                                                                                                                  tmp = (-y * (y3 * y5)) * a
                                                                                                                                                                                                                                                                                                                                                              else
                                                                                                                                                                                                                                                                                                                                                                  tmp = ((j * t) * y4) * 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 (j <= -8.8e-105) {
                                                                                                                                                                                                                                                                                                                                                          		tmp = y1 * ((-j * y3) * y4);
                                                                                                                                                                                                                                                                                                                                                          	} else if (j <= 2.8e-205) {
                                                                                                                                                                                                                                                                                                                                                          		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                          	} else if (j <= 4.6e-28) {
                                                                                                                                                                                                                                                                                                                                                          		tmp = (-y * (y3 * y5)) * a;
                                                                                                                                                                                                                                                                                                                                                          	} else {
                                                                                                                                                                                                                                                                                                                                                          		tmp = ((j * t) * y4) * b;
                                                                                                                                                                                                                                                                                                                                                          	}
                                                                                                                                                                                                                                                                                                                                                          	return tmp;
                                                                                                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                          def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                                                                                                          	tmp = 0
                                                                                                                                                                                                                                                                                                                                                          	if j <= -8.8e-105:
                                                                                                                                                                                                                                                                                                                                                          		tmp = y1 * ((-j * y3) * y4)
                                                                                                                                                                                                                                                                                                                                                          	elif j <= 2.8e-205:
                                                                                                                                                                                                                                                                                                                                                          		tmp = (y1 * (y3 * z)) * a
                                                                                                                                                                                                                                                                                                                                                          	elif j <= 4.6e-28:
                                                                                                                                                                                                                                                                                                                                                          		tmp = (-y * (y3 * y5)) * a
                                                                                                                                                                                                                                                                                                                                                          	else:
                                                                                                                                                                                                                                                                                                                                                          		tmp = ((j * t) * y4) * 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 (j <= -8.8e-105)
                                                                                                                                                                                                                                                                                                                                                          		tmp = Float64(y1 * Float64(Float64(Float64(-j) * y3) * y4));
                                                                                                                                                                                                                                                                                                                                                          	elseif (j <= 2.8e-205)
                                                                                                                                                                                                                                                                                                                                                          		tmp = Float64(Float64(y1 * Float64(y3 * z)) * a);
                                                                                                                                                                                                                                                                                                                                                          	elseif (j <= 4.6e-28)
                                                                                                                                                                                                                                                                                                                                                          		tmp = Float64(Float64(Float64(-y) * Float64(y3 * y5)) * a);
                                                                                                                                                                                                                                                                                                                                                          	else
                                                                                                                                                                                                                                                                                                                                                          		tmp = Float64(Float64(Float64(j * t) * y4) * 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 (j <= -8.8e-105)
                                                                                                                                                                                                                                                                                                                                                          		tmp = y1 * ((-j * y3) * y4);
                                                                                                                                                                                                                                                                                                                                                          	elseif (j <= 2.8e-205)
                                                                                                                                                                                                                                                                                                                                                          		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                          	elseif (j <= 4.6e-28)
                                                                                                                                                                                                                                                                                                                                                          		tmp = (-y * (y3 * y5)) * a;
                                                                                                                                                                                                                                                                                                                                                          	else
                                                                                                                                                                                                                                                                                                                                                          		tmp = ((j * t) * y4) * 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[j, -8.8e-105], N[(y1 * N[(N[((-j) * y3), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e-205], N[(N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[j, 4.6e-28], N[(N[((-y) * N[(y3 * y5), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision]]]]
                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                          \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                          \\
                                                                                                                                                                                                                                                                                                                                                          \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                          \mathbf{if}\;j \leq -8.8 \cdot 10^{-105}:\\
                                                                                                                                                                                                                                                                                                                                                          \;\;\;\;y1 \cdot \left(\left(\left(-j\right) \cdot y3\right) \cdot y4\right)\\
                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                          \mathbf{elif}\;j \leq 2.8 \cdot 10^{-205}:\\
                                                                                                                                                                                                                                                                                                                                                          \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\
                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                          \mathbf{elif}\;j \leq 4.6 \cdot 10^{-28}:\\
                                                                                                                                                                                                                                                                                                                                                          \;\;\;\;\left(\left(-y\right) \cdot \left(y3 \cdot y5\right)\right) \cdot a\\
                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                          \mathbf{else}:\\
                                                                                                                                                                                                                                                                                                                                                          \;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                          \end{array}
                                                                                                                                                                                                                                                                                                                                                          \end{array}
                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                          Derivation
                                                                                                                                                                                                                                                                                                                                                          1. Split input into 4 regimes
                                                                                                                                                                                                                                                                                                                                                          2. if j < -8.80000000000000016e-105

                                                                                                                                                                                                                                                                                                                                                            1. Initial program 34.9%

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

                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                              1. Applied rewrites42.6%

                                                                                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                                                                                                                                                              2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(j \cdot y3\right) + k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                              3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                1. Applied rewrites41.6%

                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                2. Taylor expanded in j around inf

                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto y1 \cdot \left(-1 \cdot \left(j \cdot \color{blue}{\left(y3 \cdot y4\right)}\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                  1. Applied rewrites34.8%

                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto y1 \cdot \left(-\left(j \cdot y3\right) \cdot y4\right) \]

                                                                                                                                                                                                                                                                                                                                                                  if -8.80000000000000016e-105 < j < 2.79999999999999991e-205

                                                                                                                                                                                                                                                                                                                                                                  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 a around inf

                                                                                                                                                                                                                                                                                                                                                                    \[\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)} \]
                                                                                                                                                                                                                                                                                                                                                                  4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                    1. Applied rewrites40.9%

                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                                                                                                                                                                                    2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto \left(-1 \cdot \left(y1 \cdot \left(-1 \cdot \left(y3 \cdot z\right) + x \cdot y2\right)\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                    3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                      1. Applied rewrites46.8%

                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \left(-y1 \cdot \mathsf{fma}\left(-y3, z, x \cdot y2\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                      2. Taylor expanded in x around 0

                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                      3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                        1. Applied rewrites32.3%

                                                                                                                                                                                                                                                                                                                                                                          \[\leadsto \left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a \]

                                                                                                                                                                                                                                                                                                                                                                        if 2.79999999999999991e-205 < j < 4.59999999999999971e-28

                                                                                                                                                                                                                                                                                                                                                                        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 a around inf

                                                                                                                                                                                                                                                                                                                                                                          \[\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)} \]
                                                                                                                                                                                                                                                                                                                                                                        4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                          1. Applied rewrites38.8%

                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                                                                                                                                                                                          2. Taylor expanded in y around inf

                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                          3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                            1. Applied rewrites36.5%

                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                            2. Taylor expanded in x around 0

                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \left(-1 \cdot \left(y \cdot \left(y3 \cdot y5\right)\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                            3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                              1. Applied rewrites33.6%

                                                                                                                                                                                                                                                                                                                                                                                \[\leadsto \left(\left(-y\right) \cdot \left(y3 \cdot y5\right)\right) \cdot a \]

                                                                                                                                                                                                                                                                                                                                                                              if 4.59999999999999971e-28 < j

                                                                                                                                                                                                                                                                                                                                                                              1. Initial program 29.3%

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

                                                                                                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                1. Applied rewrites42.0%

                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b} \]
                                                                                                                                                                                                                                                                                                                                                                                2. Taylor expanded in t around inf

                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \left(t \cdot \left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                  1. Applied rewrites40.9%

                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto \left(t \cdot \mathsf{fma}\left(j, y4, -a \cdot z\right)\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                                                                                  2. Taylor expanded in z around 0

                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto \left(j \cdot \left(t \cdot y4\right)\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                                                                                  3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                    1. Applied rewrites34.4%

                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto \left(\left(j \cdot t\right) \cdot y4\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                                                                                  4. Recombined 4 regimes into one program.
                                                                                                                                                                                                                                                                                                                                                                                  5. Final simplification33.9%

                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -8.8 \cdot 10^{-105}:\\ \;\;\;\;y1 \cdot \left(\left(\left(-j\right) \cdot y3\right) \cdot y4\right)\\ \mathbf{elif}\;j \leq 2.8 \cdot 10^{-205}:\\ \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\ \mathbf{elif}\;j \leq 4.6 \cdot 10^{-28}:\\ \;\;\;\;\left(\left(-y\right) \cdot \left(y3 \cdot y5\right)\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\ \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                                  6. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                                                  Alternative 24: 21.9% accurate, 5.6× speedup?

                                                                                                                                                                                                                                                                                                                                                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y3 \leq -3.8 \cdot 10^{+99}:\\ \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\ \mathbf{elif}\;y3 \leq -1.15 \cdot 10^{-286}:\\ \;\;\;\;y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\ \mathbf{elif}\;y3 \leq 8.4 \cdot 10^{+144}:\\ \;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(-j\right) \cdot \left(\left(y1 \cdot y3\right) \cdot y4\right)\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                                  (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                                                                                                                   :precision binary64
                                                                                                                                                                                                                                                                                                                                                                                   (if (<= y3 -3.8e+99)
                                                                                                                                                                                                                                                                                                                                                                                     (* (* y1 (* y3 z)) a)
                                                                                                                                                                                                                                                                                                                                                                                     (if (<= y3 -1.15e-286)
                                                                                                                                                                                                                                                                                                                                                                                       (* y1 (* (* k y2) y4))
                                                                                                                                                                                                                                                                                                                                                                                       (if (<= y3 8.4e+144) (* (* (* j t) y4) b) (* (- j) (* (* y1 y3) y4))))))
                                                                                                                                                                                                                                                                                                                                                                                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                                  	double tmp;
                                                                                                                                                                                                                                                                                                                                                                                  	if (y3 <= -3.8e+99) {
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                                                  	} else if (y3 <= -1.15e-286) {
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                  	} else if (y3 <= 8.4e+144) {
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = ((j * t) * y4) * b;
                                                                                                                                                                                                                                                                                                                                                                                  	} else {
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = -j * ((y1 * y3) * y4);
                                                                                                                                                                                                                                                                                                                                                                                  	}
                                                                                                                                                                                                                                                                                                                                                                                  	return tmp;
                                                                                                                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                  module fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                      implicit none
                                                                                                                                                                                                                                                                                                                                                                                      private
                                                                                                                                                                                                                                                                                                                                                                                      public fmax
                                                                                                                                                                                                                                                                                                                                                                                      public fmin
                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                      interface fmax
                                                                                                                                                                                                                                                                                                                                                                                          module procedure fmax88
                                                                                                                                                                                                                                                                                                                                                                                          module procedure fmax44
                                                                                                                                                                                                                                                                                                                                                                                          module procedure fmax84
                                                                                                                                                                                                                                                                                                                                                                                          module procedure fmax48
                                                                                                                                                                                                                                                                                                                                                                                      end interface
                                                                                                                                                                                                                                                                                                                                                                                      interface fmin
                                                                                                                                                                                                                                                                                                                                                                                          module procedure fmin88
                                                                                                                                                                                                                                                                                                                                                                                          module procedure fmin44
                                                                                                                                                                                                                                                                                                                                                                                          module procedure fmin84
                                                                                                                                                                                                                                                                                                                                                                                          module procedure fmin48
                                                                                                                                                                                                                                                                                                                                                                                      end interface
                                                                                                                                                                                                                                                                                                                                                                                  contains
                                                                                                                                                                                                                                                                                                                                                                                      real(8) function fmax88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                                      real(4) function fmax44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                                      real(8) function fmax84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                          res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                                      real(8) function fmax48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                                      real(8) function fmin88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                                      real(4) function fmin44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                                      real(8) function fmin84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                          res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                                      real(8) function fmin48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                                  end module
                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                  real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                  use fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: z
                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: t
                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: a
                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: b
                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: c
                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: i
                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: j
                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: k
                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: y0
                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: y1
                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: y2
                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: y3
                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: y4
                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: y5
                                                                                                                                                                                                                                                                                                                                                                                      real(8) :: tmp
                                                                                                                                                                                                                                                                                                                                                                                      if (y3 <= (-3.8d+99)) then
                                                                                                                                                                                                                                                                                                                                                                                          tmp = (y1 * (y3 * z)) * a
                                                                                                                                                                                                                                                                                                                                                                                      else if (y3 <= (-1.15d-286)) then
                                                                                                                                                                                                                                                                                                                                                                                          tmp = y1 * ((k * y2) * y4)
                                                                                                                                                                                                                                                                                                                                                                                      else if (y3 <= 8.4d+144) then
                                                                                                                                                                                                                                                                                                                                                                                          tmp = ((j * t) * y4) * b
                                                                                                                                                                                                                                                                                                                                                                                      else
                                                                                                                                                                                                                                                                                                                                                                                          tmp = -j * ((y1 * y3) * y4)
                                                                                                                                                                                                                                                                                                                                                                                      end if
                                                                                                                                                                                                                                                                                                                                                                                      code = tmp
                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                  public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                                  	double tmp;
                                                                                                                                                                                                                                                                                                                                                                                  	if (y3 <= -3.8e+99) {
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                                                  	} else if (y3 <= -1.15e-286) {
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                  	} else if (y3 <= 8.4e+144) {
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = ((j * t) * y4) * b;
                                                                                                                                                                                                                                                                                                                                                                                  	} else {
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = -j * ((y1 * y3) * y4);
                                                                                                                                                                                                                                                                                                                                                                                  	}
                                                                                                                                                                                                                                                                                                                                                                                  	return tmp;
                                                                                                                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                  def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                                                                                                                                  	tmp = 0
                                                                                                                                                                                                                                                                                                                                                                                  	if y3 <= -3.8e+99:
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = (y1 * (y3 * z)) * a
                                                                                                                                                                                                                                                                                                                                                                                  	elif y3 <= -1.15e-286:
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = y1 * ((k * y2) * y4)
                                                                                                                                                                                                                                                                                                                                                                                  	elif y3 <= 8.4e+144:
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = ((j * t) * y4) * b
                                                                                                                                                                                                                                                                                                                                                                                  	else:
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = -j * ((y1 * y3) * y4)
                                                                                                                                                                                                                                                                                                                                                                                  	return tmp
                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                  function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                  	tmp = 0.0
                                                                                                                                                                                                                                                                                                                                                                                  	if (y3 <= -3.8e+99)
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = Float64(Float64(y1 * Float64(y3 * z)) * a);
                                                                                                                                                                                                                                                                                                                                                                                  	elseif (y3 <= -1.15e-286)
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = Float64(y1 * Float64(Float64(k * y2) * y4));
                                                                                                                                                                                                                                                                                                                                                                                  	elseif (y3 <= 8.4e+144)
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = Float64(Float64(Float64(j * t) * y4) * b);
                                                                                                                                                                                                                                                                                                                                                                                  	else
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = Float64(Float64(-j) * Float64(Float64(y1 * y3) * y4));
                                                                                                                                                                                                                                                                                                                                                                                  	end
                                                                                                                                                                                                                                                                                                                                                                                  	return tmp
                                                                                                                                                                                                                                                                                                                                                                                  end
                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                  function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                  	tmp = 0.0;
                                                                                                                                                                                                                                                                                                                                                                                  	if (y3 <= -3.8e+99)
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                                                  	elseif (y3 <= -1.15e-286)
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                  	elseif (y3 <= 8.4e+144)
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = ((j * t) * y4) * b;
                                                                                                                                                                                                                                                                                                                                                                                  	else
                                                                                                                                                                                                                                                                                                                                                                                  		tmp = -j * ((y1 * y3) * y4);
                                                                                                                                                                                                                                                                                                                                                                                  	end
                                                                                                                                                                                                                                                                                                                                                                                  	tmp_2 = tmp;
                                                                                                                                                                                                                                                                                                                                                                                  end
                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -3.8e+99], N[(N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y3, -1.15e-286], N[(y1 * N[(N[(k * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 8.4e+144], N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision], N[((-j) * N[(N[(y1 * y3), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]]]]
                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                  \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                  \\
                                                                                                                                                                                                                                                                                                                                                                                  \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                  \mathbf{if}\;y3 \leq -3.8 \cdot 10^{+99}:\\
                                                                                                                                                                                                                                                                                                                                                                                  \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\
                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                  \mathbf{elif}\;y3 \leq -1.15 \cdot 10^{-286}:\\
                                                                                                                                                                                                                                                                                                                                                                                  \;\;\;\;y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\
                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                  \mathbf{elif}\;y3 \leq 8.4 \cdot 10^{+144}:\\
                                                                                                                                                                                                                                                                                                                                                                                  \;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                  \mathbf{else}:\\
                                                                                                                                                                                                                                                                                                                                                                                  \;\;\;\;\left(-j\right) \cdot \left(\left(y1 \cdot y3\right) \cdot y4\right)\\
                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                  \end{array}
                                                                                                                                                                                                                                                                                                                                                                                  \end{array}
                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                  Derivation
                                                                                                                                                                                                                                                                                                                                                                                  1. Split input into 4 regimes
                                                                                                                                                                                                                                                                                                                                                                                  2. if y3 < -3.8e99

                                                                                                                                                                                                                                                                                                                                                                                    1. Initial program 28.9%

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

                                                                                                                                                                                                                                                                                                                                                                                      \[\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)} \]
                                                                                                                                                                                                                                                                                                                                                                                    4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                      1. Applied rewrites38.4%

                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                                                                                                                                                                                                      2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \left(-1 \cdot \left(y1 \cdot \left(-1 \cdot \left(y3 \cdot z\right) + x \cdot y2\right)\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                      3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                        1. Applied rewrites51.8%

                                                                                                                                                                                                                                                                                                                                                                                          \[\leadsto \left(-y1 \cdot \mathsf{fma}\left(-y3, z, x \cdot y2\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                        2. Taylor expanded in x around 0

                                                                                                                                                                                                                                                                                                                                                                                          \[\leadsto \left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                          1. Applied rewrites47.6%

                                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto \left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a \]

                                                                                                                                                                                                                                                                                                                                                                                          if -3.8e99 < y3 < -1.1500000000000001e-286

                                                                                                                                                                                                                                                                                                                                                                                          1. Initial program 37.6%

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

                                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                          4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                            1. Applied rewrites37.0%

                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                                                                                                                                                                                            2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(j \cdot y3\right) + k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                            3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                              1. Applied rewrites30.2%

                                                                                                                                                                                                                                                                                                                                                                                                \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                              2. Taylor expanded in j around 0

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

                                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right) \]

                                                                                                                                                                                                                                                                                                                                                                                                if -1.1500000000000001e-286 < y3 < 8.39999999999999985e144

                                                                                                                                                                                                                                                                                                                                                                                                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

                                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                  1. Applied rewrites42.7%

                                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b} \]
                                                                                                                                                                                                                                                                                                                                                                                                  2. Taylor expanded in t around inf

                                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto \left(t \cdot \left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                                                                                                  3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                    1. Applied rewrites35.2%

                                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto \left(t \cdot \mathsf{fma}\left(j, y4, -a \cdot z\right)\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                                                                                                    2. Taylor expanded in z around 0

                                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto \left(j \cdot \left(t \cdot y4\right)\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                                                                                                    3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                      1. Applied rewrites27.8%

                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \left(\left(j \cdot t\right) \cdot y4\right) \cdot b \]

                                                                                                                                                                                                                                                                                                                                                                                                      if 8.39999999999999985e144 < y3

                                                                                                                                                                                                                                                                                                                                                                                                      1. Initial program 18.9%

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

                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                        1. Applied rewrites38.4%

                                                                                                                                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                                                                                                                                                                                                        2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                                          \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(j \cdot y3\right) + k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                          1. Applied rewrites38.8%

                                                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                          2. Taylor expanded in j around inf

                                                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto -1 \cdot \left(j \cdot \color{blue}{\left(y1 \cdot \left(y3 \cdot y4\right)\right)}\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                          3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                            1. Applied rewrites31.2%

                                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto -j \cdot \left(\left(y1 \cdot y3\right) \cdot y4\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                          4. Recombined 4 regimes into one program.
                                                                                                                                                                                                                                                                                                                                                                                                          5. Final simplification32.5%

                                                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -3.8 \cdot 10^{+99}:\\ \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\ \mathbf{elif}\;y3 \leq -1.15 \cdot 10^{-286}:\\ \;\;\;\;y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\ \mathbf{elif}\;y3 \leq 8.4 \cdot 10^{+144}:\\ \;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(-j\right) \cdot \left(\left(y1 \cdot y3\right) \cdot y4\right)\\ \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                                                          6. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                                                                          Alternative 25: 22.4% accurate, 5.9× speedup?

                                                                                                                                                                                                                                                                                                                                                                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\ \mathbf{if}\;k \leq -1.6 \cdot 10^{+59}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;k \leq 9.6 \cdot 10^{-175}:\\ \;\;\;\;\left(x \cdot \left(b \cdot y\right)\right) \cdot a\\ \mathbf{elif}\;k \leq 6 \cdot 10^{+115}:\\ \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                                                          (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                                                                                                                                           :precision binary64
                                                                                                                                                                                                                                                                                                                                                                                                           (let* ((t_1 (* y1 (* (* k y2) y4))))
                                                                                                                                                                                                                                                                                                                                                                                                             (if (<= k -1.6e+59)
                                                                                                                                                                                                                                                                                                                                                                                                               t_1
                                                                                                                                                                                                                                                                                                                                                                                                               (if (<= k 9.6e-175)
                                                                                                                                                                                                                                                                                                                                                                                                                 (* (* x (* b y)) a)
                                                                                                                                                                                                                                                                                                                                                                                                                 (if (<= k 6e+115) (* (* y1 (* y3 z)) a) t_1)))))
                                                                                                                                                                                                                                                                                                                                                                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                                                          	double t_1 = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                          	double tmp;
                                                                                                                                                                                                                                                                                                                                                                                                          	if (k <= -1.6e+59) {
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                          	} else if (k <= 9.6e-175) {
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = (x * (b * y)) * a;
                                                                                                                                                                                                                                                                                                                                                                                                          	} else if (k <= 6e+115) {
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                                                                          	} else {
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                          	}
                                                                                                                                                                                                                                                                                                                                                                                                          	return tmp;
                                                                                                                                                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                          module fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                                              implicit none
                                                                                                                                                                                                                                                                                                                                                                                                              private
                                                                                                                                                                                                                                                                                                                                                                                                              public fmax
                                                                                                                                                                                                                                                                                                                                                                                                              public fmin
                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                              interface fmax
                                                                                                                                                                                                                                                                                                                                                                                                                  module procedure fmax88
                                                                                                                                                                                                                                                                                                                                                                                                                  module procedure fmax44
                                                                                                                                                                                                                                                                                                                                                                                                                  module procedure fmax84
                                                                                                                                                                                                                                                                                                                                                                                                                  module procedure fmax48
                                                                                                                                                                                                                                                                                                                                                                                                              end interface
                                                                                                                                                                                                                                                                                                                                                                                                              interface fmin
                                                                                                                                                                                                                                                                                                                                                                                                                  module procedure fmin88
                                                                                                                                                                                                                                                                                                                                                                                                                  module procedure fmin44
                                                                                                                                                                                                                                                                                                                                                                                                                  module procedure fmin84
                                                                                                                                                                                                                                                                                                                                                                                                                  module procedure fmin48
                                                                                                                                                                                                                                                                                                                                                                                                              end interface
                                                                                                                                                                                                                                                                                                                                                                                                          contains
                                                                                                                                                                                                                                                                                                                                                                                                              real(8) function fmax88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                                                                              real(4) function fmax44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                  real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                  real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                                                                              real(8) function fmax84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                  real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                                                                              real(8) function fmax48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                  real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                                                                              real(8) function fmin88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                                                                              real(4) function fmin44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                  real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                  real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                                                                              real(8) function fmin84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                  real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                                                                              real(8) function fmin48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                  real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                                                                          end module
                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                          real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                          use fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                                              real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                              real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                              real(8), intent (in) :: z
                                                                                                                                                                                                                                                                                                                                                                                                              real(8), intent (in) :: t
                                                                                                                                                                                                                                                                                                                                                                                                              real(8), intent (in) :: a
                                                                                                                                                                                                                                                                                                                                                                                                              real(8), intent (in) :: b
                                                                                                                                                                                                                                                                                                                                                                                                              real(8), intent (in) :: c
                                                                                                                                                                                                                                                                                                                                                                                                              real(8), intent (in) :: i
                                                                                                                                                                                                                                                                                                                                                                                                              real(8), intent (in) :: j
                                                                                                                                                                                                                                                                                                                                                                                                              real(8), intent (in) :: k
                                                                                                                                                                                                                                                                                                                                                                                                              real(8), intent (in) :: y0
                                                                                                                                                                                                                                                                                                                                                                                                              real(8), intent (in) :: y1
                                                                                                                                                                                                                                                                                                                                                                                                              real(8), intent (in) :: y2
                                                                                                                                                                                                                                                                                                                                                                                                              real(8), intent (in) :: y3
                                                                                                                                                                                                                                                                                                                                                                                                              real(8), intent (in) :: y4
                                                                                                                                                                                                                                                                                                                                                                                                              real(8), intent (in) :: y5
                                                                                                                                                                                                                                                                                                                                                                                                              real(8) :: t_1
                                                                                                                                                                                                                                                                                                                                                                                                              real(8) :: tmp
                                                                                                                                                                                                                                                                                                                                                                                                              t_1 = y1 * ((k * y2) * y4)
                                                                                                                                                                                                                                                                                                                                                                                                              if (k <= (-1.6d+59)) then
                                                                                                                                                                                                                                                                                                                                                                                                                  tmp = t_1
                                                                                                                                                                                                                                                                                                                                                                                                              else if (k <= 9.6d-175) then
                                                                                                                                                                                                                                                                                                                                                                                                                  tmp = (x * (b * y)) * a
                                                                                                                                                                                                                                                                                                                                                                                                              else if (k <= 6d+115) then
                                                                                                                                                                                                                                                                                                                                                                                                                  tmp = (y1 * (y3 * z)) * a
                                                                                                                                                                                                                                                                                                                                                                                                              else
                                                                                                                                                                                                                                                                                                                                                                                                                  tmp = t_1
                                                                                                                                                                                                                                                                                                                                                                                                              end if
                                                                                                                                                                                                                                                                                                                                                                                                              code = tmp
                                                                                                                                                                                                                                                                                                                                                                                                          end function
                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                                                          	double t_1 = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                          	double tmp;
                                                                                                                                                                                                                                                                                                                                                                                                          	if (k <= -1.6e+59) {
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                          	} else if (k <= 9.6e-175) {
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = (x * (b * y)) * a;
                                                                                                                                                                                                                                                                                                                                                                                                          	} else if (k <= 6e+115) {
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                                                                          	} else {
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                          	}
                                                                                                                                                                                                                                                                                                                                                                                                          	return tmp;
                                                                                                                                                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                          def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                                                                                                                                                          	t_1 = y1 * ((k * y2) * y4)
                                                                                                                                                                                                                                                                                                                                                                                                          	tmp = 0
                                                                                                                                                                                                                                                                                                                                                                                                          	if k <= -1.6e+59:
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = t_1
                                                                                                                                                                                                                                                                                                                                                                                                          	elif k <= 9.6e-175:
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = (x * (b * y)) * a
                                                                                                                                                                                                                                                                                                                                                                                                          	elif k <= 6e+115:
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = (y1 * (y3 * z)) * a
                                                                                                                                                                                                                                                                                                                                                                                                          	else:
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = t_1
                                                                                                                                                                                                                                                                                                                                                                                                          	return tmp
                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                          function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                          	t_1 = Float64(y1 * Float64(Float64(k * y2) * y4))
                                                                                                                                                                                                                                                                                                                                                                                                          	tmp = 0.0
                                                                                                                                                                                                                                                                                                                                                                                                          	if (k <= -1.6e+59)
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                          	elseif (k <= 9.6e-175)
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = Float64(Float64(x * Float64(b * y)) * a);
                                                                                                                                                                                                                                                                                                                                                                                                          	elseif (k <= 6e+115)
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = Float64(Float64(y1 * Float64(y3 * z)) * a);
                                                                                                                                                                                                                                                                                                                                                                                                          	else
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                          	end
                                                                                                                                                                                                                                                                                                                                                                                                          	return tmp
                                                                                                                                                                                                                                                                                                                                                                                                          end
                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                          function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                          	t_1 = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                          	tmp = 0.0;
                                                                                                                                                                                                                                                                                                                                                                                                          	if (k <= -1.6e+59)
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                          	elseif (k <= 9.6e-175)
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = (x * (b * y)) * a;
                                                                                                                                                                                                                                                                                                                                                                                                          	elseif (k <= 6e+115)
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                                                                          	else
                                                                                                                                                                                                                                                                                                                                                                                                          		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                          	end
                                                                                                                                                                                                                                                                                                                                                                                                          	tmp_2 = tmp;
                                                                                                                                                                                                                                                                                                                                                                                                          end
                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y1 * N[(N[(k * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.6e+59], t$95$1, If[LessEqual[k, 9.6e-175], N[(N[(x * N[(b * y), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 6e+115], N[(N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]
                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                          \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                          \\
                                                                                                                                                                                                                                                                                                                                                                                                          \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                                          t_1 := y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\
                                                                                                                                                                                                                                                                                                                                                                                                          \mathbf{if}\;k \leq -1.6 \cdot 10^{+59}:\\
                                                                                                                                                                                                                                                                                                                                                                                                          \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                          \mathbf{elif}\;k \leq 9.6 \cdot 10^{-175}:\\
                                                                                                                                                                                                                                                                                                                                                                                                          \;\;\;\;\left(x \cdot \left(b \cdot y\right)\right) \cdot a\\
                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                          \mathbf{elif}\;k \leq 6 \cdot 10^{+115}:\\
                                                                                                                                                                                                                                                                                                                                                                                                          \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\
                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                          \mathbf{else}:\\
                                                                                                                                                                                                                                                                                                                                                                                                          \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                          \end{array}
                                                                                                                                                                                                                                                                                                                                                                                                          \end{array}
                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                          Derivation
                                                                                                                                                                                                                                                                                                                                                                                                          1. Split input into 3 regimes
                                                                                                                                                                                                                                                                                                                                                                                                          2. if k < -1.59999999999999991e59 or 6.0000000000000001e115 < k

                                                                                                                                                                                                                                                                                                                                                                                                            1. Initial program 24.8%

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

                                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                              1. Applied rewrites49.9%

                                                                                                                                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                                                                                                                                                                                                              2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                                                \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(j \cdot y3\right) + k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                              3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                1. Applied rewrites49.1%

                                                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                2. Taylor expanded in j around 0

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

                                                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right) \]

                                                                                                                                                                                                                                                                                                                                                                                                                  if -1.59999999999999991e59 < k < 9.6e-175

                                                                                                                                                                                                                                                                                                                                                                                                                  1. Initial program 35.2%

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

                                                                                                                                                                                                                                                                                                                                                                                                                    \[\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)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                  4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                    1. Applied rewrites43.0%

                                                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                                                                                                                                                                                                                                    2. Taylor expanded in x around inf

                                                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto \left(x \cdot \left(-1 \cdot \left(y1 \cdot y2\right) + b \cdot y\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                    3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                      1. Applied rewrites28.9%

                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                      2. Taylor expanded in y around inf

                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \left(x \cdot \left(b \cdot y\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                      3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                        1. Applied rewrites25.7%

                                                                                                                                                                                                                                                                                                                                                                                                                          \[\leadsto \left(x \cdot \left(b \cdot y\right)\right) \cdot a \]

                                                                                                                                                                                                                                                                                                                                                                                                                        if 9.6e-175 < k < 6.0000000000000001e115

                                                                                                                                                                                                                                                                                                                                                                                                                        1. Initial program 38.3%

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

                                                                                                                                                                                                                                                                                                                                                                                                                          \[\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)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                        4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                          1. Applied rewrites41.3%

                                                                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                                                                                                                                                                                                                                          2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto \left(-1 \cdot \left(y1 \cdot \left(-1 \cdot \left(y3 \cdot z\right) + x \cdot y2\right)\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                          3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                            1. Applied rewrites32.5%

                                                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \left(-y1 \cdot \mathsf{fma}\left(-y3, z, x \cdot y2\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                            2. Taylor expanded in x around 0

                                                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                            3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                              1. Applied rewrites25.7%

                                                                                                                                                                                                                                                                                                                                                                                                                                \[\leadsto \left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                            4. Recombined 3 regimes into one program.
                                                                                                                                                                                                                                                                                                                                                                                                                            5. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                                                                                            Alternative 26: 22.6% accurate, 5.9× speedup?

                                                                                                                                                                                                                                                                                                                                                                                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\ \mathbf{if}\;k \leq -1.6 \cdot 10^{+59}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;k \leq 1.35 \cdot 10^{-173}:\\ \;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\ \mathbf{elif}\;k \leq 6 \cdot 10^{+115}:\\ \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                                                                            (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                                                                                                                                                             :precision binary64
                                                                                                                                                                                                                                                                                                                                                                                                                             (let* ((t_1 (* y1 (* (* k y2) y4))))
                                                                                                                                                                                                                                                                                                                                                                                                                               (if (<= k -1.6e+59)
                                                                                                                                                                                                                                                                                                                                                                                                                                 t_1
                                                                                                                                                                                                                                                                                                                                                                                                                                 (if (<= k 1.35e-173)
                                                                                                                                                                                                                                                                                                                                                                                                                                   (* (* (* b x) y) a)
                                                                                                                                                                                                                                                                                                                                                                                                                                   (if (<= k 6e+115) (* (* y1 (* y3 z)) a) t_1)))))
                                                                                                                                                                                                                                                                                                                                                                                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                                                                            	double t_1 = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                                            	double tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                            	if (k <= -1.6e+59) {
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                                            	} else if (k <= 1.35e-173) {
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = ((b * x) * y) * a;
                                                                                                                                                                                                                                                                                                                                                                                                                            	} else if (k <= 6e+115) {
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                                                                                            	} else {
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                                            	}
                                                                                                                                                                                                                                                                                                                                                                                                                            	return tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                            module fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                                                                implicit none
                                                                                                                                                                                                                                                                                                                                                                                                                                private
                                                                                                                                                                                                                                                                                                                                                                                                                                public fmax
                                                                                                                                                                                                                                                                                                                                                                                                                                public fmin
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                                interface fmax
                                                                                                                                                                                                                                                                                                                                                                                                                                    module procedure fmax88
                                                                                                                                                                                                                                                                                                                                                                                                                                    module procedure fmax44
                                                                                                                                                                                                                                                                                                                                                                                                                                    module procedure fmax84
                                                                                                                                                                                                                                                                                                                                                                                                                                    module procedure fmax48
                                                                                                                                                                                                                                                                                                                                                                                                                                end interface
                                                                                                                                                                                                                                                                                                                                                                                                                                interface fmin
                                                                                                                                                                                                                                                                                                                                                                                                                                    module procedure fmin88
                                                                                                                                                                                                                                                                                                                                                                                                                                    module procedure fmin44
                                                                                                                                                                                                                                                                                                                                                                                                                                    module procedure fmin84
                                                                                                                                                                                                                                                                                                                                                                                                                                    module procedure fmin48
                                                                                                                                                                                                                                                                                                                                                                                                                                end interface
                                                                                                                                                                                                                                                                                                                                                                                                                            contains
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8) function fmax88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                    real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                    real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                end function
                                                                                                                                                                                                                                                                                                                                                                                                                                real(4) function fmax44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                    real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                    real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                end function
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8) function fmax84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                    real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                    real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                end function
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8) function fmax48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                    real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                    real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                end function
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8) function fmin88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                    real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                    real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                end function
                                                                                                                                                                                                                                                                                                                                                                                                                                real(4) function fmin44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                    real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                    real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                end function
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8) function fmin84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                    real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                    real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                end function
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8) function fmin48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                    real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                    real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                end function
                                                                                                                                                                                                                                                                                                                                                                                                                            end module
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                            real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                            use fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: z
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: t
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: a
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: b
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: c
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: i
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: j
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: k
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: y0
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: y1
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: y2
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: y3
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: y4
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: y5
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8) :: t_1
                                                                                                                                                                                                                                                                                                                                                                                                                                real(8) :: tmp
                                                                                                                                                                                                                                                                                                                                                                                                                                t_1 = y1 * ((k * y2) * y4)
                                                                                                                                                                                                                                                                                                                                                                                                                                if (k <= (-1.6d+59)) then
                                                                                                                                                                                                                                                                                                                                                                                                                                    tmp = t_1
                                                                                                                                                                                                                                                                                                                                                                                                                                else if (k <= 1.35d-173) then
                                                                                                                                                                                                                                                                                                                                                                                                                                    tmp = ((b * x) * y) * a
                                                                                                                                                                                                                                                                                                                                                                                                                                else if (k <= 6d+115) then
                                                                                                                                                                                                                                                                                                                                                                                                                                    tmp = (y1 * (y3 * z)) * a
                                                                                                                                                                                                                                                                                                                                                                                                                                else
                                                                                                                                                                                                                                                                                                                                                                                                                                    tmp = t_1
                                                                                                                                                                                                                                                                                                                                                                                                                                end if
                                                                                                                                                                                                                                                                                                                                                                                                                                code = tmp
                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                                                                            	double t_1 = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                                            	double tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                            	if (k <= -1.6e+59) {
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                                            	} else if (k <= 1.35e-173) {
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = ((b * x) * y) * a;
                                                                                                                                                                                                                                                                                                                                                                                                                            	} else if (k <= 6e+115) {
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                                                                                            	} else {
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                                            	}
                                                                                                                                                                                                                                                                                                                                                                                                                            	return tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                            def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                                                                                                                                                                            	t_1 = y1 * ((k * y2) * y4)
                                                                                                                                                                                                                                                                                                                                                                                                                            	tmp = 0
                                                                                                                                                                                                                                                                                                                                                                                                                            	if k <= -1.6e+59:
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1
                                                                                                                                                                                                                                                                                                                                                                                                                            	elif k <= 1.35e-173:
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = ((b * x) * y) * a
                                                                                                                                                                                                                                                                                                                                                                                                                            	elif k <= 6e+115:
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = (y1 * (y3 * z)) * a
                                                                                                                                                                                                                                                                                                                                                                                                                            	else:
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1
                                                                                                                                                                                                                                                                                                                                                                                                                            	return tmp
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                            function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                            	t_1 = Float64(y1 * Float64(Float64(k * y2) * y4))
                                                                                                                                                                                                                                                                                                                                                                                                                            	tmp = 0.0
                                                                                                                                                                                                                                                                                                                                                                                                                            	if (k <= -1.6e+59)
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                                            	elseif (k <= 1.35e-173)
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = Float64(Float64(Float64(b * x) * y) * a);
                                                                                                                                                                                                                                                                                                                                                                                                                            	elseif (k <= 6e+115)
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = Float64(Float64(y1 * Float64(y3 * z)) * a);
                                                                                                                                                                                                                                                                                                                                                                                                                            	else
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                                            	end
                                                                                                                                                                                                                                                                                                                                                                                                                            	return tmp
                                                                                                                                                                                                                                                                                                                                                                                                                            end
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                            function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                            	t_1 = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                                            	tmp = 0.0;
                                                                                                                                                                                                                                                                                                                                                                                                                            	if (k <= -1.6e+59)
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                                            	elseif (k <= 1.35e-173)
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = ((b * x) * y) * a;
                                                                                                                                                                                                                                                                                                                                                                                                                            	elseif (k <= 6e+115)
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                                                                                            	else
                                                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                                            	end
                                                                                                                                                                                                                                                                                                                                                                                                                            	tmp_2 = tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                            end
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y1 * N[(N[(k * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.6e+59], t$95$1, If[LessEqual[k, 1.35e-173], N[(N[(N[(b * x), $MachinePrecision] * y), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 6e+115], N[(N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                            \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                            \\
                                                                                                                                                                                                                                                                                                                                                                                                                            \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                                                            t_1 := y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\
                                                                                                                                                                                                                                                                                                                                                                                                                            \mathbf{if}\;k \leq -1.6 \cdot 10^{+59}:\\
                                                                                                                                                                                                                                                                                                                                                                                                                            \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                            \mathbf{elif}\;k \leq 1.35 \cdot 10^{-173}:\\
                                                                                                                                                                                                                                                                                                                                                                                                                            \;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                            \mathbf{elif}\;k \leq 6 \cdot 10^{+115}:\\
                                                                                                                                                                                                                                                                                                                                                                                                                            \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                            \mathbf{else}:\\
                                                                                                                                                                                                                                                                                                                                                                                                                            \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                            \end{array}
                                                                                                                                                                                                                                                                                                                                                                                                                            \end{array}
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                            Derivation
                                                                                                                                                                                                                                                                                                                                                                                                                            1. Split input into 3 regimes
                                                                                                                                                                                                                                                                                                                                                                                                                            2. if k < -1.59999999999999991e59 or 6.0000000000000001e115 < k

                                                                                                                                                                                                                                                                                                                                                                                                                              1. Initial program 24.8%

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

                                                                                                                                                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                1. Applied rewrites49.9%

                                                                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(j \cdot y3\right) + k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                  1. Applied rewrites49.1%

                                                                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                  2. Taylor expanded in j around 0

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

                                                                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right) \]

                                                                                                                                                                                                                                                                                                                                                                                                                                    if -1.59999999999999991e59 < k < 1.35e-173

                                                                                                                                                                                                                                                                                                                                                                                                                                    1. Initial program 35.2%

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

                                                                                                                                                                                                                                                                                                                                                                                                                                      \[\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)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                    4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                      1. Applied rewrites43.0%

                                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                      2. Taylor expanded in y around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                                      3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                        1. Applied rewrites31.7%

                                                                                                                                                                                                                                                                                                                                                                                                                                          \[\leadsto \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                                        2. Taylor expanded in x around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                          \[\leadsto \left(b \cdot \left(x \cdot y\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                          1. Applied rewrites25.7%

                                                                                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto \left(\left(b \cdot x\right) \cdot y\right) \cdot a \]

                                                                                                                                                                                                                                                                                                                                                                                                                                          if 1.35e-173 < k < 6.0000000000000001e115

                                                                                                                                                                                                                                                                                                                                                                                                                                          1. Initial program 38.3%

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

                                                                                                                                                                                                                                                                                                                                                                                                                                            \[\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)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                          4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                            1. Applied rewrites41.3%

                                                                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                            2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \left(-1 \cdot \left(y1 \cdot \left(-1 \cdot \left(y3 \cdot z\right) + x \cdot y2\right)\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                                            3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                              1. Applied rewrites32.5%

                                                                                                                                                                                                                                                                                                                                                                                                                                                \[\leadsto \left(-y1 \cdot \mathsf{fma}\left(-y3, z, x \cdot y2\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                                              2. Taylor expanded in x around 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                \[\leadsto \left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                                              3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                1. Applied rewrites25.7%

                                                                                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                                              4. Recombined 3 regimes into one program.
                                                                                                                                                                                                                                                                                                                                                                                                                                              5. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                                                                                                              Alternative 27: 22.7% accurate, 5.9× speedup?

                                                                                                                                                                                                                                                                                                                                                                                                                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\ \mathbf{if}\;k \leq -2 \cdot 10^{+95}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;k \leq 9.8 \cdot 10^{-175}:\\ \;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\ \mathbf{elif}\;k \leq 6 \cdot 10^{+115}:\\ \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                              (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                               :precision binary64
                                                                                                                                                                                                                                                                                                                                                                                                                                               (let* ((t_1 (* y1 (* (* k y2) y4))))
                                                                                                                                                                                                                                                                                                                                                                                                                                                 (if (<= k -2e+95)
                                                                                                                                                                                                                                                                                                                                                                                                                                                   t_1
                                                                                                                                                                                                                                                                                                                                                                                                                                                   (if (<= k 9.8e-175)
                                                                                                                                                                                                                                                                                                                                                                                                                                                     (* i (* (* j x) y1))
                                                                                                                                                                                                                                                                                                                                                                                                                                                     (if (<= k 6e+115) (* (* y1 (* y3 z)) a) t_1)))))
                                                                                                                                                                                                                                                                                                                                                                                                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                                                                                              	double t_1 = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                                                              	double tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                              	if (k <= -2e+95) {
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                                                              	} else if (k <= 9.8e-175) {
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = i * ((j * x) * y1);
                                                                                                                                                                                                                                                                                                                                                                                                                                              	} else if (k <= 6e+115) {
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                                                                                                              	} else {
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                                                              	}
                                                                                                                                                                                                                                                                                                                                                                                                                                              	return tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                              module fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                                                                                  implicit none
                                                                                                                                                                                                                                                                                                                                                                                                                                                  private
                                                                                                                                                                                                                                                                                                                                                                                                                                                  public fmax
                                                                                                                                                                                                                                                                                                                                                                                                                                                  public fmin
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                  interface fmax
                                                                                                                                                                                                                                                                                                                                                                                                                                                      module procedure fmax88
                                                                                                                                                                                                                                                                                                                                                                                                                                                      module procedure fmax44
                                                                                                                                                                                                                                                                                                                                                                                                                                                      module procedure fmax84
                                                                                                                                                                                                                                                                                                                                                                                                                                                      module procedure fmax48
                                                                                                                                                                                                                                                                                                                                                                                                                                                  end interface
                                                                                                                                                                                                                                                                                                                                                                                                                                                  interface fmin
                                                                                                                                                                                                                                                                                                                                                                                                                                                      module procedure fmin88
                                                                                                                                                                                                                                                                                                                                                                                                                                                      module procedure fmin44
                                                                                                                                                                                                                                                                                                                                                                                                                                                      module procedure fmin84
                                                                                                                                                                                                                                                                                                                                                                                                                                                      module procedure fmin48
                                                                                                                                                                                                                                                                                                                                                                                                                                                  end interface
                                                                                                                                                                                                                                                                                                                                                                                                                                              contains
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8) function fmax88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(4) function fmax44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8) function fmax84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                      res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8) function fmax48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                      res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8) function fmin88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(4) function fmin44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8) function fmin84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                      res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8) function fmin48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                      res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                                                                              end module
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                              real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                              use fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: z
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: t
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: a
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: b
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: c
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: i
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: j
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: k
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y0
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y1
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y2
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y3
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y4
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y5
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8) :: t_1
                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8) :: tmp
                                                                                                                                                                                                                                                                                                                                                                                                                                                  t_1 = y1 * ((k * y2) * y4)
                                                                                                                                                                                                                                                                                                                                                                                                                                                  if (k <= (-2d+95)) then
                                                                                                                                                                                                                                                                                                                                                                                                                                                      tmp = t_1
                                                                                                                                                                                                                                                                                                                                                                                                                                                  else if (k <= 9.8d-175) then
                                                                                                                                                                                                                                                                                                                                                                                                                                                      tmp = i * ((j * x) * y1)
                                                                                                                                                                                                                                                                                                                                                                                                                                                  else if (k <= 6d+115) then
                                                                                                                                                                                                                                                                                                                                                                                                                                                      tmp = (y1 * (y3 * z)) * a
                                                                                                                                                                                                                                                                                                                                                                                                                                                  else
                                                                                                                                                                                                                                                                                                                                                                                                                                                      tmp = t_1
                                                                                                                                                                                                                                                                                                                                                                                                                                                  end if
                                                                                                                                                                                                                                                                                                                                                                                                                                                  code = tmp
                                                                                                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                                                                                              	double t_1 = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                                                              	double tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                              	if (k <= -2e+95) {
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                                                              	} else if (k <= 9.8e-175) {
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = i * ((j * x) * y1);
                                                                                                                                                                                                                                                                                                                                                                                                                                              	} else if (k <= 6e+115) {
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                                                                                                              	} else {
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                                                              	}
                                                                                                                                                                                                                                                                                                                                                                                                                                              	return tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                              def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                                                                                                                                                                                              	t_1 = y1 * ((k * y2) * y4)
                                                                                                                                                                                                                                                                                                                                                                                                                                              	tmp = 0
                                                                                                                                                                                                                                                                                                                                                                                                                                              	if k <= -2e+95:
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = t_1
                                                                                                                                                                                                                                                                                                                                                                                                                                              	elif k <= 9.8e-175:
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = i * ((j * x) * y1)
                                                                                                                                                                                                                                                                                                                                                                                                                                              	elif k <= 6e+115:
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = (y1 * (y3 * z)) * a
                                                                                                                                                                                                                                                                                                                                                                                                                                              	else:
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = t_1
                                                                                                                                                                                                                                                                                                                                                                                                                                              	return tmp
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                              function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                              	t_1 = Float64(y1 * Float64(Float64(k * y2) * y4))
                                                                                                                                                                                                                                                                                                                                                                                                                                              	tmp = 0.0
                                                                                                                                                                                                                                                                                                                                                                                                                                              	if (k <= -2e+95)
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                                                              	elseif (k <= 9.8e-175)
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = Float64(i * Float64(Float64(j * x) * y1));
                                                                                                                                                                                                                                                                                                                                                                                                                                              	elseif (k <= 6e+115)
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = Float64(Float64(y1 * Float64(y3 * z)) * a);
                                                                                                                                                                                                                                                                                                                                                                                                                                              	else
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                                                              	end
                                                                                                                                                                                                                                                                                                                                                                                                                                              	return tmp
                                                                                                                                                                                                                                                                                                                                                                                                                                              end
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                              	t_1 = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                                                              	tmp = 0.0;
                                                                                                                                                                                                                                                                                                                                                                                                                                              	if (k <= -2e+95)
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                                                              	elseif (k <= 9.8e-175)
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = i * ((j * x) * y1);
                                                                                                                                                                                                                                                                                                                                                                                                                                              	elseif (k <= 6e+115)
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                                                                                                              	else
                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                                                                              	end
                                                                                                                                                                                                                                                                                                                                                                                                                                              	tmp_2 = tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                              end
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y1 * N[(N[(k * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -2e+95], t$95$1, If[LessEqual[k, 9.8e-175], N[(i * N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 6e+115], N[(N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                              \\
                                                                                                                                                                                                                                                                                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                                                                              t_1 := y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\
                                                                                                                                                                                                                                                                                                                                                                                                                                              \mathbf{if}\;k \leq -2 \cdot 10^{+95}:\\
                                                                                                                                                                                                                                                                                                                                                                                                                                              \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                              \mathbf{elif}\;k \leq 9.8 \cdot 10^{-175}:\\
                                                                                                                                                                                                                                                                                                                                                                                                                                              \;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                              \mathbf{elif}\;k \leq 6 \cdot 10^{+115}:\\
                                                                                                                                                                                                                                                                                                                                                                                                                                              \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                              \mathbf{else}:\\
                                                                                                                                                                                                                                                                                                                                                                                                                                              \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                              \end{array}
                                                                                                                                                                                                                                                                                                                                                                                                                                              \end{array}
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                              Derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                              1. Split input into 3 regimes
                                                                                                                                                                                                                                                                                                                                                                                                                                              2. if k < -2.00000000000000004e95 or 6.0000000000000001e115 < k

                                                                                                                                                                                                                                                                                                                                                                                                                                                1. Initial program 25.7%

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                  1. Applied rewrites49.3%

                                                                                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                  2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(j \cdot y3\right) + k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                  3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                    1. Applied rewrites49.6%

                                                                                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                    2. Taylor expanded in j around 0

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right) \]

                                                                                                                                                                                                                                                                                                                                                                                                                                                      if -2.00000000000000004e95 < k < 9.79999999999999996e-175

                                                                                                                                                                                                                                                                                                                                                                                                                                                      1. Initial program 34.1%

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

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                      5. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \left(-1 \cdot \left(k \cdot z\right) + j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                      6. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                        1. Applied rewrites23.1%

                                                                                                                                                                                                                                                                                                                                                                                                                                                          \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                        2. Taylor expanded in x around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                                          \[\leadsto i \cdot \left(j \cdot \left(x \cdot \color{blue}{y1}\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                          1. Applied rewrites21.1%

                                                                                                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto i \cdot \left(\left(j \cdot x\right) \cdot y1\right) \]

                                                                                                                                                                                                                                                                                                                                                                                                                                                          if 9.79999999999999996e-175 < k < 6.0000000000000001e115

                                                                                                                                                                                                                                                                                                                                                                                                                                                          1. Initial program 38.3%

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                            \[\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)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                          4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                            1. Applied rewrites41.3%

                                                                                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                            2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \left(-1 \cdot \left(y1 \cdot \left(-1 \cdot \left(y3 \cdot z\right) + x \cdot y2\right)\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                            3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                              1. Applied rewrites32.5%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                \[\leadsto \left(-y1 \cdot \mathsf{fma}\left(-y3, z, x \cdot y2\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                              2. Taylor expanded in x around 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                \[\leadsto \left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                              3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                1. Applied rewrites25.7%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                              4. Recombined 3 regimes into one program.
                                                                                                                                                                                                                                                                                                                                                                                                                                                              5. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Alternative 28: 22.2% accurate, 7.2× speedup?

                                                                                                                                                                                                                                                                                                                                                                                                                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;k \leq -2 \cdot 10^{+95} \lor \neg \left(k \leq 1.48 \cdot 10^{-65}\right):\\ \;\;\;\;y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                              (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                               :precision binary64
                                                                                                                                                                                                                                                                                                                                                                                                                                                               (if (or (<= k -2e+95) (not (<= k 1.48e-65)))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 (* y1 (* (* k y2) y4))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 (* i (* (* j x) y1))))
                                                                                                                                                                                                                                                                                                                                                                                                                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	double tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	if ((k <= -2e+95) || !(k <= 1.48e-65)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	} else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = i * ((j * x) * y1);
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	}
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	return tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                              module fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  implicit none
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  private
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  public fmax
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  public fmin
                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  interface fmax
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      module procedure fmax88
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      module procedure fmax44
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      module procedure fmax84
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      module procedure fmax48
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  end interface
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  interface fmin
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      module procedure fmin88
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      module procedure fmin44
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      module procedure fmin84
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      module procedure fmin48
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  end interface
                                                                                                                                                                                                                                                                                                                                                                                                                                                              contains
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8) function fmax88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(4) function fmax44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8) function fmax84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8) function fmax48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8) function fmin88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(4) function fmin44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8) function fmin84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8) function fmin48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                              end module
                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                              real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                              use fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: z
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: t
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: a
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: b
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: c
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: i
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: j
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: k
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y2
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y3
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y4
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8), intent (in) :: y5
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8) :: tmp
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  if ((k <= (-2d+95)) .or. (.not. (k <= 1.48d-65))) then
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      tmp = y1 * ((k * y2) * y4)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  else
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      tmp = i * ((j * x) * y1)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  end if
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  code = tmp
                                                                                                                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	double tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	if ((k <= -2e+95) || !(k <= 1.48e-65)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	} else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = i * ((j * x) * y1);
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	}
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	return tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                              def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	tmp = 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	if (k <= -2e+95) or not (k <= 1.48e-65):
                                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = y1 * ((k * y2) * y4)
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	else:
                                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = i * ((j * x) * y1)
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	return tmp
                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                              function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	tmp = 0.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	if ((k <= -2e+95) || !(k <= 1.48e-65))
                                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = Float64(y1 * Float64(Float64(k * y2) * y4));
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	else
                                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = Float64(i * Float64(Float64(j * x) * y1));
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	end
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	return tmp
                                                                                                                                                                                                                                                                                                                                                                                                                                                              end
                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	tmp = 0.0;
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	if ((k <= -2e+95) || ~((k <= 1.48e-65)))
                                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = y1 * ((k * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	else
                                                                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = i * ((j * x) * y1);
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	end
                                                                                                                                                                                                                                                                                                                                                                                                                                                              	tmp_2 = tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                                              end
                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[k, -2e+95], N[Not[LessEqual[k, 1.48e-65]], $MachinePrecision]], N[(y1 * N[(N[(k * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]]
                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                              \\
                                                                                                                                                                                                                                                                                                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                                                                                              \mathbf{if}\;k \leq -2 \cdot 10^{+95} \lor \neg \left(k \leq 1.48 \cdot 10^{-65}\right):\\
                                                                                                                                                                                                                                                                                                                                                                                                                                                              \;\;\;\;y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\
                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                              \mathbf{else}:\\
                                                                                                                                                                                                                                                                                                                                                                                                                                                              \;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\
                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                              \end{array}
                                                                                                                                                                                                                                                                                                                                                                                                                                                              \end{array}
                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                              Derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                              1. Split input into 2 regimes
                                                                                                                                                                                                                                                                                                                                                                                                                                                              2. if k < -2.00000000000000004e95 or 1.4800000000000001e-65 < k

                                                                                                                                                                                                                                                                                                                                                                                                                                                                1. Initial program 28.5%

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  1. Applied rewrites47.6%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(j \cdot y3\right) + k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    1. Applied rewrites42.5%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    2. Taylor expanded in j around 0

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right) \]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      if -2.00000000000000004e95 < k < 1.4800000000000001e-65

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

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      5. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \left(-1 \cdot \left(k \cdot z\right) + j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      6. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        1. Applied rewrites20.4%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        2. Taylor expanded in x around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          \[\leadsto i \cdot \left(j \cdot \left(x \cdot \color{blue}{y1}\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          1. Applied rewrites18.9%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto i \cdot \left(\left(j \cdot x\right) \cdot y1\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        4. Recombined 2 regimes into one program.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        5. Final simplification27.5%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq -2 \cdot 10^{+95} \lor \neg \left(k \leq 1.48 \cdot 10^{-65}\right):\\ \;\;\;\;y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\ \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        6. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Alternative 29: 19.5% accurate, 7.2× speedup?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;k \leq -4 \cdot 10^{+110} \lor \neg \left(k \leq 1.48 \cdot 10^{-65}\right):\\ \;\;\;\;k \cdot \left(\left(y1 \cdot y2\right) \cdot y4\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                         :precision binary64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                         (if (or (<= k -4e+110) (not (<= k 1.48e-65)))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                           (* k (* (* y1 y2) y4))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                           (* i (* (* j x) y1))))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	double tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	if ((k <= -4e+110) || !(k <= 1.48e-65)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        		tmp = k * ((y1 * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	} else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        		tmp = i * ((j * x) * y1);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	return tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        module fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            implicit none
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            private
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            public fmax
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            public fmin
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            interface fmax
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                module procedure fmax88
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                module procedure fmax44
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                module procedure fmax84
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                module procedure fmax48
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end interface
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            interface fmin
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                module procedure fmin88
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                module procedure fmin44
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                module procedure fmin84
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                module procedure fmin48
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end interface
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        contains
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8) function fmax88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(4) function fmax44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8) function fmax84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8) function fmax48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8) function fmin88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(4) function fmin44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8) function fmin84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8) function fmin48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end module
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        use fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: z
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: t
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: a
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: b
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: c
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: i
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: j
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: k
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: y0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: y1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: y2
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: y3
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: y4
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: y5
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8) :: tmp
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            if ((k <= (-4d+110)) .or. (.not. (k <= 1.48d-65))) then
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                tmp = k * ((y1 * y2) * y4)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            else
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                tmp = i * ((j * x) * y1)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end if
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            code = tmp
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	double tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	if ((k <= -4e+110) || !(k <= 1.48e-65)) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        		tmp = k * ((y1 * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	} else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        		tmp = i * ((j * x) * y1);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	return tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	tmp = 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	if (k <= -4e+110) or not (k <= 1.48e-65):
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        		tmp = k * ((y1 * y2) * y4)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	else:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        		tmp = i * ((j * x) * y1)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	return tmp
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	tmp = 0.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	if ((k <= -4e+110) || !(k <= 1.48e-65))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        		tmp = Float64(k * Float64(Float64(y1 * y2) * y4));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	else
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        		tmp = Float64(i * Float64(Float64(j * x) * y1));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	end
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	return tmp
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	tmp = 0.0;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	if ((k <= -4e+110) || ~((k <= 1.48e-65)))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        		tmp = k * ((y1 * y2) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	else
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        		tmp = i * ((j * x) * y1);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	end
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	tmp_2 = tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[k, -4e+110], N[Not[LessEqual[k, 1.48e-65]], $MachinePrecision]], N[(k * N[(N[(y1 * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \\
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \mathbf{if}\;k \leq -4 \cdot 10^{+110} \lor \neg \left(k \leq 1.48 \cdot 10^{-65}\right):\\
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \;\;\;\;k \cdot \left(\left(y1 \cdot y2\right) \cdot y4\right)\\
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \mathbf{else}:\\
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \end{array}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \end{array}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        1. Split input into 2 regimes
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        2. if k < -4.0000000000000001e110 or 1.4800000000000001e-65 < k

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          1. Initial program 29.0%

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            1. Applied rewrites48.4%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(j \cdot y3\right) + k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              1. Applied rewrites42.3%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              2. Taylor expanded in j around 0

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

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                if -4.0000000000000001e110 < k < 1.4800000000000001e-65

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                1. Initial program 35.6%

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

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                5. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \left(-1 \cdot \left(k \cdot z\right) + j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                6. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  1. Applied rewrites20.8%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  2. Taylor expanded in x around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto i \cdot \left(j \cdot \left(x \cdot \color{blue}{y1}\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    1. Applied rewrites18.7%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto i \cdot \left(\left(j \cdot x\right) \cdot y1\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  4. Recombined 2 regimes into one program.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  5. Final simplification23.8%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq -4 \cdot 10^{+110} \lor \neg \left(k \leq 1.48 \cdot 10^{-65}\right):\\ \;\;\;\;k \cdot \left(\left(y1 \cdot y2\right) \cdot y4\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\ \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  6. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Alternative 30: 21.3% accurate, 7.2× speedup?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;j \leq -8.8 \cdot 10^{-105}:\\ \;\;\;\;y1 \cdot \left(\left(\left(-j\right) \cdot y3\right) \cdot y4\right)\\ \mathbf{elif}\;j \leq 9.4 \cdot 10^{-79}:\\ \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   :precision binary64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   (if (<= j -8.8e-105)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     (* y1 (* (* (- j) y3) y4))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     (if (<= j 9.4e-79) (* (* y1 (* y3 z)) a) (* (* (* j t) y4) 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 (j <= -8.8e-105) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  		tmp = y1 * ((-j * y3) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	} else if (j <= 9.4e-79) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	} else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  		tmp = ((j * t) * y4) * b;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	return tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  module fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      implicit none
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      private
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      public fmax
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      public fmin
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      interface fmax
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          module procedure fmax88
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          module procedure fmax44
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          module procedure fmax84
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          module procedure fmax48
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      end interface
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      interface fmin
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          module procedure fmin88
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          module procedure fmin44
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          module procedure fmin84
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          module procedure fmin48
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      end interface
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  contains
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8) function fmax88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4) function fmax44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8) function fmax84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8) function fmax48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8) function fmin88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(4) function fmin44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8) function fmin84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      real(8) function fmin48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  end module
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  use fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      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 (j <= (-8.8d-105)) then
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          tmp = y1 * ((-j * y3) * y4)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      else if (j <= 9.4d-79) then
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          tmp = (y1 * (y3 * z)) * a
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      else
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          tmp = ((j * t) * y4) * 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 (j <= -8.8e-105) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  		tmp = y1 * ((-j * y3) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	} else if (j <= 9.4e-79) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	} else {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  		tmp = ((j * t) * y4) * b;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	return tmp;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	tmp = 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	if j <= -8.8e-105:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  		tmp = y1 * ((-j * y3) * y4)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	elif j <= 9.4e-79:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  		tmp = (y1 * (y3 * z)) * a
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	else:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  		tmp = ((j * t) * y4) * 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 (j <= -8.8e-105)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  		tmp = Float64(y1 * Float64(Float64(Float64(-j) * y3) * y4));
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	elseif (j <= 9.4e-79)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  		tmp = Float64(Float64(y1 * Float64(y3 * z)) * a);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	else
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  		tmp = Float64(Float64(Float64(j * t) * y4) * 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 (j <= -8.8e-105)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  		tmp = y1 * ((-j * y3) * y4);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	elseif (j <= 9.4e-79)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  		tmp = (y1 * (y3 * z)) * a;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	else
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  		tmp = ((j * t) * y4) * 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[j, -8.8e-105], N[(y1 * N[(N[((-j) * y3), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9.4e-79], N[(N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision]]]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \\
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \mathbf{if}\;j \leq -8.8 \cdot 10^{-105}:\\
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \;\;\;\;y1 \cdot \left(\left(\left(-j\right) \cdot y3\right) \cdot y4\right)\\
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \mathbf{elif}\;j \leq 9.4 \cdot 10^{-79}:\\
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \mathbf{else}:\\
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \end{array}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \end{array}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  1. Split input into 3 regimes
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  2. if j < -8.80000000000000016e-105

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    1. Initial program 34.9%

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{y4 \cdot \left(\left(b \cdot \left(j \cdot t - k \cdot y\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      1. Applied rewrites42.6%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \left(-1 \cdot \left(j \cdot y3\right) + k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        1. Applied rewrites41.6%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          \[\leadsto y1 \cdot \color{blue}{\left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        2. Taylor expanded in j around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          \[\leadsto y1 \cdot \left(-1 \cdot \left(j \cdot \color{blue}{\left(y3 \cdot y4\right)}\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          1. Applied rewrites34.8%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto y1 \cdot \left(-\left(j \cdot y3\right) \cdot y4\right) \]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          if -8.80000000000000016e-105 < j < 9.4000000000000003e-79

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          1. Initial program 33.8%

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            \[\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)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            1. Applied rewrites42.6%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) - \left(-y5\right) \cdot \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\right) \cdot a} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            2. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \left(-1 \cdot \left(y1 \cdot \left(-1 \cdot \left(y3 \cdot z\right) + x \cdot y2\right)\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              1. Applied rewrites41.0%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                \[\leadsto \left(-y1 \cdot \mathsf{fma}\left(-y3, z, x \cdot y2\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              2. Taylor expanded in x around 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                \[\leadsto \left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                1. Applied rewrites28.6%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a \]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                if 9.4000000000000003e-79 < j

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                1. Initial program 28.9%

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  1. Applied rewrites40.6%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  2. Taylor expanded in t around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto \left(t \cdot \left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    1. Applied rewrites39.8%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto \left(t \cdot \mathsf{fma}\left(j, y4, -a \cdot z\right)\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    2. Taylor expanded in z around 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto \left(j \cdot \left(t \cdot y4\right)\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      1. Applied rewrites32.2%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \left(\left(j \cdot t\right) \cdot y4\right) \cdot b \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    4. Recombined 3 regimes into one program.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    5. Final simplification32.0%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -8.8 \cdot 10^{-105}:\\ \;\;\;\;y1 \cdot \left(\left(\left(-j\right) \cdot y3\right) \cdot y4\right)\\ \mathbf{elif}\;j \leq 9.4 \cdot 10^{-79}:\\ \;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\ \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    6. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Alternative 31: 17.1% accurate, 12.6× speedup?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    \[\begin{array}{l} \\ i \cdot \left(\left(j \cdot x\right) \cdot y1\right) \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     :precision binary64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     (* i (* (* j x) y1)))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	return i * ((j * x) * y1);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    module fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        implicit none
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        private
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        public fmax
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        public fmin
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        interface fmax
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            module procedure fmax88
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            module procedure fmax44
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            module procedure fmax84
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            module procedure fmax48
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end interface
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        interface fmin
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            module procedure fmin88
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            module procedure fmin44
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            module procedure fmin84
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            module procedure fmin48
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end interface
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    contains
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        real(8) function fmax88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        real(4) function fmax44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        real(8) function fmax84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        real(8) function fmax48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        real(8) function fmin88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        real(4) function fmin44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        real(8) function fmin84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        real(8) function fmin48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end module
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    use fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        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 = i * ((j * x) * y1)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    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 i * ((j * x) * y1);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	return i * ((j * x) * y1)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	return Float64(i * Float64(Float64(j * x) * y1))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	tmp = i * ((j * x) * y1);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(i * N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    \\
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    i \cdot \left(\left(j \cdot x\right) \cdot y1\right)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    \end{array}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    1. Initial program 32.5%

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

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    5. Taylor expanded in y1 around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \left(-1 \cdot \left(k \cdot z\right) + j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    6. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      1. Applied rewrites26.7%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto i \cdot \color{blue}{\left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      2. Taylor expanded in x around inf

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto i \cdot \left(j \cdot \left(x \cdot \color{blue}{y1}\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        1. Applied rewrites15.4%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          \[\leadsto i \cdot \left(\left(j \cdot x\right) \cdot y1\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        2. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Developer Target 1: 27.7% 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;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        module fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            implicit none
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            private
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            public fmax
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            public fmin
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            interface fmax
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                module procedure fmax88
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                module procedure fmax44
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                module procedure fmax84
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                module procedure fmax48
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end interface
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            interface fmin
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                module procedure fmin88
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                module procedure fmin44
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                module procedure fmin84
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                module procedure fmin48
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end interface
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        contains
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8) function fmax88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(4) function fmax44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8) function fmax84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8) function fmax48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8) function fmin88(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(4) function fmin44(x, y) result (res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8) function fmin84(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(4), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            real(8) function fmin48(x, y) result(res)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(4), intent (in) :: x
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                real(8), intent (in) :: y
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end module
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        use fmin_fmax_functions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            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 2025026 
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        (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)))))